Merged r7057 from nihvivo-rel-1.2-maint branch
This commit is contained in:
parent
f6676d58b7
commit
9d9a900d33
2 changed files with 43 additions and 15 deletions
|
@ -1,5 +1,8 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#include "menupage-checkForData.ftl">
|
||||
|
||||
<#if (!noData)>
|
||||
<section id="intro-menupage" role="region">
|
||||
<h3>${page.title}</h3>
|
||||
|
||||
|
@ -24,3 +27,6 @@
|
|||
${stylesheets.add("/css/menupage/menupage.css")}
|
||||
|
||||
<#include "menupage-scripts.ftl">
|
||||
<#else>
|
||||
${noDataNotification}
|
||||
</#if>
|
|
@ -0,0 +1,22 @@
|
|||
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
|
||||
|
||||
<#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 />
|
||||
</#if>
|
||||
</#list>
|
||||
<#if (populatedClasses == 0)>
|
||||
<#assign noData = true />
|
||||
<#else>
|
||||
<#assign noData = false />
|
||||
</#if>
|
||||
|
||||
<#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">login</a> to manage content.</p>
|
||||
|
||||
<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