i18n on the web
This commit is contained in:
@@ -47,6 +47,7 @@ mod tests {
|
||||
// The admin page is only reachable with a session, so the navbar
|
||||
// shows the role badge and the log-out button.
|
||||
let nav = Nav {
|
||||
locale: Default::default(),
|
||||
authenticated: true,
|
||||
role: "admin".to_string(),
|
||||
can_admin: true,
|
||||
|
||||
@@ -42,6 +42,7 @@ mod tests {
|
||||
fn page() -> GrantsPage {
|
||||
GrantsPage {
|
||||
nav: Nav {
|
||||
locale: Default::default(),
|
||||
authenticated: true,
|
||||
role: "admin".to_string(),
|
||||
can_admin: true,
|
||||
|
||||
@@ -31,6 +31,7 @@ mod tests {
|
||||
fn the_role_list_offers_creation_and_holds_back_deletion_of_a_role_in_use() {
|
||||
let page = RolesPage {
|
||||
nav: Nav {
|
||||
locale: Default::default(),
|
||||
authenticated: true,
|
||||
role: "admin".to_string(),
|
||||
can_admin: true,
|
||||
|
||||
@@ -31,6 +31,7 @@ mod tests {
|
||||
fn a_user_the_caller_does_not_outrank_gets_no_controls() {
|
||||
let page = UsersPage {
|
||||
nav: Nav {
|
||||
locale: Default::default(),
|
||||
authenticated: true,
|
||||
role: "admin".to_string(),
|
||||
can_admin: true,
|
||||
|
||||
Reference in New Issue
Block a user