1 <div class='rdetail_extras_div'>
5 reviews => l('Reviews'),
6 anotes => l('Author Notes'),
7 toc => l('Table of Contents'),
8 excerpt => l('Excerpt'),
9 summary => l('Summary')
12 selected_type = CGI.param('ac');
14 # For each type of added content, render the link if it's known to have
15 # content, do not render the link if it's known to not have content. If
16 # the content status is unknown, render the link, but hide the link via CSS
17 # if dojo is enabled. If dojo is not enabled, render and display the link.
20 <div id='ac_tab_wrapper'>
21 [% FOR type IN ac_types.keys;
23 IF ctx.added_content.$type.status != '2'; # no content
24 IF ctx.added_content.$type.status == '3' AND want_dojo; # status unknown
25 tab_class = tab_class _ ' hidden';
27 <div class="[% tab_class %]" id="ac:[% type %]">
28 <a href="[% mkurl('', {ac => type}) _ '#addedcontent' %]">[% ac_types.$type %]</a>
38 content = ctx.added_content.$selected_type.content;
42 l('No Content Available');