Refactored approach for inserting visualization links on menu pages. Still hoping to remove JavaScript altogether based on outcome of NIHVIVO-1681. Also introduced the initial version of application-wide styles with vitro.css.

This commit is contained in:
nac26 2011-01-13 14:05:14 +00:00
parent cde5de7217
commit 6b47329954
3 changed files with 31 additions and 2 deletions

26
webapp/web/css/vitro.css Normal file
View file

@ -0,0 +1,26 @@
/* $This file is distributed under the terms of the license in /doc/license.txt$ */
/****************************************
Vitro base styles
Styles declared here are intended for
application-wide use.
Original version
2011-01-12 UI Team
Last updated
2011-01-13
*****************************************/
/************************
Miscellaneous
************************/
.clear {
clear: both;
}
.hidden {
display: none !important;
}

View file

@ -4,12 +4,12 @@
<h3>${page.title}</h3> <h3>${page.title}</h3>
<section id="content-generic-class" role="region"> <section id="content-generic-class" role="region">
<h4>Visual Graph</h4>
<#-- This will allow us to keep menupage.ftl generic and keep vivo-specific extensions in VIVO --> <#-- This will allow us to keep menupage.ftl generic and keep vivo-specific extensions in VIVO -->
<#if visualizationLink??> <#if visualizationLink??>
${visualizationLink} ${visualizationLink}
</#if> </#if>
<h4>Visual Graph</h4>
<#include "menupage-vClassesInClassgroup.ftl"> <#include "menupage-vClassesInClassgroup.ftl">

View file

@ -2,4 +2,7 @@
<#-- Template for loading stylesheets in the head --> <#-- Template for loading stylesheets in the head -->
${stylesheets.add("/css/edit.css")} <#--temporary until edit controller can include this when needed --> ${stylesheets.add("/css/edit.css")} <#--temporary until edit controller can include this when needed -->
<!-- vitro base styles (application-wide) -->
<link rel="stylesheet" href="${urls.base}/css/vitro.css" />
${stylesheets.tags} ${stylesheets.tags}