Added test for $currentPage. If login widget is being rendered on the home page, don't use the <noscript> element. Will need to update the test once Rebecca resolves NIHVIVO-2051 to ensure currentPage value is consistent for home page requests.

This commit is contained in:
nac26 2011-02-08 13:23:59 +00:00
parent 2874d610c1
commit 1fafef06ba

View file

@ -15,12 +15,15 @@
</#macro>
<#macro loginForm>
<noscript>
<section id="error-alert">
<img src="${urls.images}/iconAlertBig.png" alt="Alert Icon"/>
<p>In order to edit VIVO content, you'll need to enable JavaScript.</p>
</section>
</noscript>
<#-- Don't display the JavaScript required to edit message on the home page even if JavaScript is unavailable -->
<#if ( currentPage != 'home' && currentPage != 'index.jsp')>
<noscript>
<section id="error-alert">
<img src="${urls.images}/iconAlertBig.png" alt="Alert Icon"/>
<p>In order to edit VIVO content, you'll need to enable JavaScript.</p>
</section>
</noscript>
</#if>
<section id="login" class="hidden">
<h2>Log in</h2>