NIHVIVO-1965 Better message for authenticated users with access to the site admin when accessing the site with little or no content. Also refactored BrowseController so that it doesn't attempt to override template and provide it's own message if no content is found.

This commit is contained in:
nac26 2011-02-05 17:24:40 +00:00
parent 2e9cd79352
commit 20ab4cc157
4 changed files with 45 additions and 38 deletions

View file

@ -90,9 +90,13 @@ ${stylesheets.add("/css/browseClassGroups.css")}
<#-- <#include "classgroups-checkForData.ftl"> -->
<h3>There is currently no content in the system</h3>
<#if !user.loggedIn>
<#if user.loggedIn>
<#if user.hasSiteAdminAccess>
<p>You can <a href="${urls.siteAdmin}" title="Manage content">add content and manage this site</a> from the Site Administration page.</p>
</#if>
<#else>
<p>Please <a href="${urls.login}" title="log in to manage this site">log in</a> to manage content.</p>
</#if>
</#if>
</#if>
</#macro>

View file

@ -17,7 +17,11 @@
<#assign noDataNotification>
<h3>There is currently no content in the system</h3>
<#if !user.loggedIn>
<#if user.loggedIn>
<#if user.hasSiteAdminAccess>
<p>You can <a href="${urls.siteAdmin}" title="Manage content">add content and manage this site</a> from the Site Administration page.</p>
</#if>
<#else>
<p>Please <a href="${urls.login}" title="log in to manage this site">log in</a> to manage content.</p>
</#if>
</#assign>

View file

@ -19,7 +19,11 @@
<#assign noDataNotification>
<h3>There is currently no ${page.title} content in the system</h3>
<#if !user.loggedIn>
<#if user.loggedIn>
<#if user.hasSiteAdminAccess>
<p>You can <a href="${urls.siteAdmin}" title="Manage content">add content and manage this site</a> from the Site Administration page.</p>
</#if>
<#else>
<p>Please <a href="${urls.login}" title="log in to manage this site">log in</a> to manage content.</p>
</#if>