Combine addition of scripts and stylesheets into a single macro in the login widget

This commit is contained in:
rjy7 2010-11-03 02:26:48 +00:00
parent b1567facdc
commit a7a5c821fb

View file

@ -2,18 +2,12 @@
<#-- Login widget -->
<#-- Question for Nick and Manolo: can we use this in Vitro, where html 5 is not being used, or should it be moved
to the wilma theme? Please do whatever's appropriate. -->
<#macro styles>
<#macro assets>
<#if ! loginName??>
${stylesheets.add("/css/login.css")}
</#if>
</#macro>
<#macro scripts>
<#if ! loginName??>
<#-- define any js files needed for the login widget -->
<#-- define any js files needed for the login widget
${scripts.add("")}
${headScripts.add("")} -->
</#if>
</#macro>