# content, do not render the link if it's known to not have content. If
# the content status is unknown, render the link, but hide the link via CSS
# if dojo is enabled. If dojo is not enabled, render and display the link.
--%]
- [%-
- all_hidden = 1;
- FOR type IN ac_types.keys;
- tab_class = '';
- SET tab_class = 'ac_tab_selected' IF type == selected_type;
- IF ctx.added_content.$type.status != '2'; # no content
- all_hidden = 0;
- IF ctx.added_content.$type.status == '3' AND want_dojo; # status unknown
- tab_class = tab_class _ ' hidden';
- END %]
- <a class="[% tab_class %]" id="ac:[% type %]" href="[% mkurl('', {ac => type}) _ '#addedcontent' %]">[% ac_types.$type %]</a>
- [% END;
- END;
- %]
+ all_hidden = 1;
+ FOR type IN ac_types.keys;
+ tab_class = '';
+ SET tab_class = 'ac_tab_selected' IF type == selected_type;
+ IF ctx.added_content.$type.status != '2'; # no content
+ all_hidden = 0;
+ IF ctx.added_content.$type.status == '3' AND want_dojo; # status unknown
+ tab_class = tab_class _ ' hidden';
+ END %]
+ <a class="[% tab_class %]" id="ac:[% type %]" href="[% mkurl('', {ac => type}) _ '#addedcontent' %]">[% ac_types.$type %]</a>
+ [% END;
+ END %]
+
<div class="clear"> </div>
</div>