Merged r7057 from nihvivo-rel-1.2-maint branch

This commit is contained in:
nac26 2011-01-16 22:53:21 +00:00
parent f6676d58b7
commit 9d9a900d33
2 changed files with 43 additions and 15 deletions

View file

@ -1,26 +1,32 @@
<#-- $This file is distributed under the terms of the license in /doc/license.txt$ -->
<section id="intro-menupage" role="region">
<h3>${page.title}</h3>
<#include "menupage-checkForData.ftl">
<#if (!noData)>
<section id="intro-menupage" role="region">
<h3>${page.title}</h3>
<section id="content-generic-class" role="region">
<#-- This will allow us to keep menupage.ftl generic and keep vivo-specific extensions in VIVO -->
<#if visualizationLink??>
${visualizationLink}
</#if>
<section id="content-generic-class" role="region">
<#-- This will allow us to keep menupage.ftl generic and keep vivo-specific extensions in VIVO -->
<#if visualizationLink??>
${visualizationLink}
</#if>
<h4>Visual Graph</h4>
<h4>Visual Graph</h4>
<#include "menupage-vClassesInClassgroup.ftl">
<#include "menupage-vClassesInClassgroup.ftl">
<section id="generic-class-graph" role="region">
<img src="${urls.images}/menupage/visual-graph-generic-class.jpg" width="500" height="283" alt ="" />
<section id="generic-class-graph" role="region">
<img src="${urls.images}/menupage/visual-graph-generic-class.jpg" width="500" height="283" alt ="" />
</section>
</section>
</section>
</section>
<#include "menupage-browse.ftl">
<#include "menupage-browse.ftl">
${stylesheets.add("/css/menupage/menupage.css")}
${stylesheets.add("/css/menupage/menupage.css")}
<#include "menupage-scripts.ftl">
<#include "menupage-scripts.ftl">
<#else>
${noDataNotification}
</#if>

View file

@ -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>