PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/src/main/resources/template/simple/yuitabview-close.ftl

http://struts2yuiplugin.googlecode.com/
Freemarker Template | 18 lines | 18 code | 0 blank | 0 comment | 6 complexity | c9031f9ae845e5a8618613b36e6b3474 MD5 | raw file
 1  <ul class="yui-nav">
 2    <#list parameters.tabs as tab>
 3      <li <#if tab.selected?default(false) || (tab==parameters.tabs?first && parameters.noTabSelected)>class="selected"</#if>><a href="#${tab.id}"><em>${tab.label}</em></a></li>
 4    </#list>
 5  </ul>
 6  <div class="yui-content">
 7    <#list parameters.tabs as tab>
 8      <div id="${tab.id}" <#if tab.cssClass?exists>class="${tab.cssClass}"</#if>>${tab.body}</div>
 9   </#list>
10  </div>
11</div>
12<#if parameters.noscript?default(false) == false>
13<script type="text/javascript">
14  YAHOO.util.Event.onDOMReady(function() {
15      var ${parameters.widget} = new YAHOO.widget.TabView("${parameters.id}");
16  });
17</script>
18</#if>