aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-02-05 14:50:29 +0000
committerMatthew Somerville <matthew@mysociety.org>2013-02-05 14:50:29 +0000
commit81caf2f758251eef817ac2bd0debf02794ed663c (patch)
tree68e177225a5200286628db7bfbe1a689ff1d11d3 /templates
parent7308f6582e239d8e83ac6399df1474734c7eab4a (diff)
Show admin users on Users page by default.
Diffstat (limited to 'templates')
-rw-r--r--templates/web/default/admin/users.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/web/default/admin/users.html b/templates/web/default/admin/users.html
index de0b74746..70833ff85 100644
--- a/templates/web/default/admin/users.html
+++ b/templates/web/default/admin/users.html
@@ -5,7 +5,7 @@
<p><label for="search">[% loc('Search:') %]</label> <input type="text" name="search" size="30" id="search" value="[% searched | html %]">
</form>
-[% IF searched %]
+[% IF users.size %]
<table cellspacing="0" cellpadding="2" border="1">
<tr>
@@ -30,10 +30,11 @@
[%- END -%]
</table>
-[% ELSE %]
+[% END %]
+[% IF NOT searched %]
<h2>[% loc('Add user') %]</h2>
-[% INCLUDE 'admin/user-form.html' %]
+[% INCLUDE 'admin/user-form.html', user = '' %]
[% END %]