only show the view active grants link on academic department pages if the department has any active grants
This commit is contained in:
parent
883cbea941
commit
d9de65e4c8
4 changed files with 42 additions and 4 deletions
|
@ -17,7 +17,7 @@
|
|||
<#include "individual-affiliated-research-areas.ftl">
|
||||
</#assign>
|
||||
|
||||
<#if individual.mostSpecificTypes?seq_contains("Academic Department")>
|
||||
<#if individual.mostSpecificTypes?seq_contains("Academic Department") && getGrantResults?has_content>
|
||||
<#assign departmentalGrantsExtension>
|
||||
<div id="activeGrantsLink">
|
||||
<img src="${urls.base}/images/individual/arrow-green.gif">
|
||||
|
|
|
@ -4,7 +4,14 @@
|
|||
<#if deptGrants?has_content>
|
||||
<section id="pageList">
|
||||
<#list deptGrants as firstRow>
|
||||
<h2>${i18n().active_grants_for} ${firstRow["deptLabel"]}</h2>
|
||||
<#assign firstDeptLabel = firstRow["deptLabel"]?upper_case />
|
||||
<#assign i18TextString = "" />
|
||||
<#if ( firstDeptLabel?index_of("THE") == 0 ) >
|
||||
<#assign i18TextString = "${i18n().active_grants_for?replace('the','')}" />
|
||||
<#else>
|
||||
<#assign i18TextString = "${i18n().active_grants_for}" />
|
||||
</#if>
|
||||
<h2>${i18TextString} ${firstRow["deptLabel"]} ${i18n().department}</h2>
|
||||
<#break>
|
||||
</#list>
|
||||
<table id="pageList" >
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue