NIHVIVO-1760 Updated logic for data checking templates. Will only suggest logging in if no authenticated session exists.
This commit is contained in:
parent
3bcb46de1b
commit
1d2b6b821f
3 changed files with 11 additions and 5 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
<#include "menupage-checkForData.ftl">
|
||||
|
||||
<#if (!noData)>
|
||||
<#if !noData>
|
||||
<section id="intro-menupage" role="region">
|
||||
<h3>${page.title}</h3>
|
||||
|
||||
|
|
|
@ -1,7 +1,8 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#assign populatedClassGroups = 0 />
|
||||
|
||||
<#list classGroups as classGroup>
|
||||
<#assign populatedClassGroups = 0 />
|
||||
<#-- Check to see if any of the class groups have individuals -->
|
||||
<#if (classGroup.individualCount > 0)>
|
||||
<#assign populatedClassGroups = populatedClassGroups + 1 />
|
||||
|
@ -16,5 +17,7 @@
|
|||
<#assign noDataNotification>
|
||||
<h3>There is currently no content in the system</h3>
|
||||
|
||||
<p>Please <a href="${urls.login}" title="log in to manage this site">login</a> to manage content.</p>
|
||||
<#if !user.loggedIn>
|
||||
<p>Please <a href="${urls.login}" title="log in to manage this site">log in</a> to manage content.</p>
|
||||
</#if>
|
||||
</#assign>
|
|
@ -1,7 +1,8 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#assign populatedClasses = 0 />
|
||||
|
||||
<#list vClassGroup as vClass>
|
||||
<#assign populatedClasses = 0 />
|
||||
<#-- Check to see if any of the classes in this class group have individuals -->
|
||||
<#if (vClass.entityCount > 0)>
|
||||
<#assign populatedClasses = populatedClasses + 1 />
|
||||
|
@ -16,7 +17,9 @@
|
|||
<#assign noDataNotification>
|
||||
<h3>There are currently no ${page.title?lower_case} in the system</h3>
|
||||
|
||||
<p>Please <a href="${urls.login}" title="log in to manage this site">log in</a> to manage content.</p>
|
||||
<#if !user.loggedIn>
|
||||
<p>Please <a href="${urls.login}" title="log in to manage this site">log in</a> to manage content.</p>
|
||||
</#if>
|
||||
|
||||
<p>You can browse all of the public content currently in the system using the <a href="${urls.index}" title="browse all content">index page</a>.</p>
|
||||
</#assign>
|
Loading…
Add table
Reference in a new issue