From ea1ecdb43b879ce3355aa11167ae11f5f444bd65 Mon Sep 17 00:00:00 2001 From: Dave Whiteland Date: Sun, 4 Aug 2013 18:20:46 +0100 Subject: show "no bodies" hint on empty body db --- templates/web/default/admin/index.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'templates/web/default/admin/index.html') diff --git a/templates/web/default/admin/index.html b/templates/web/default/admin/index.html index 2c5ee55db..d88897872 100644 --- a/templates/web/default/admin/index.html +++ b/templates/web/default/admin/index.html @@ -1,5 +1,13 @@ [% INCLUDE 'admin/header.html' title=loc('Summary') -%] +[% IF c.config.SHOW_ADMIN_HINTS AND total_bodies == 0 %] +

+ [% loc('Currently no bodies have been created.') %] +
+ [% tprintf( loc('You need to add some bodies (such as councils or departments) before any reports can be sent.'), c.uri_for('bodies')) %] +

+[% END %] + [%- BLOCK states -%]

[% title %]

-- cgit v1.2.3 From db265d6814d3a3ab05ad3eea7ae2442433db05b7 Mon Sep 17 00:00:00 2001 From: Dave Whiteland Date: Wed, 14 Aug 2013 16:10:02 +0100 Subject: remove SHOW_ADMIN_HINTS config admin hints are displayed *like it or not* (actually, could hide for a given cobrand with CSS setting display:none) --- templates/web/default/admin/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/web/default/admin/index.html') diff --git a/templates/web/default/admin/index.html b/templates/web/default/admin/index.html index d88897872..5415222ab 100644 --- a/templates/web/default/admin/index.html +++ b/templates/web/default/admin/index.html @@ -1,6 +1,6 @@ [% INCLUDE 'admin/header.html' title=loc('Summary') -%] -[% IF c.config.SHOW_ADMIN_HINTS AND total_bodies == 0 %] +[% IF total_bodies == 0 %]

[% loc('Currently no bodies have been created.') %]
-- cgit v1.2.3