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:
parent
2874d610c1
commit
1fafef06ba
1 changed files with 9 additions and 6 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue