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'>
23 FOR type IN ac_types.keys;
25 SET tab_class = tab_class _ ' ac_tab_selected' IF type == selected_type;
26 IF ctx.added_content.$type.status != '2'; # no content
28 IF ctx.added_content.$type.status == '3' AND want_dojo; # status unknown
29 tab_class = tab_class _ ' hidden';
31 <div class="[% tab_class %]" id="ac:[% type %]">
32 <a href="[% mkurl('', {ac => type}) _ '#addedcontent' %]" rel="nofollow" vocab="">[% ac_types.$type %]</a>
43 content = ctx.added_content.$selected_type.content;
47 l('No Content Available');
50 l('No Content Available');