-
Notifications
You must be signed in to change notification settings - Fork 5
/
footnote_list.html
35 lines (29 loc) · 926 Bytes
/
footnote_list.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{% load sekizai_tags %}
{% addtoblock 'css' %}
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}css/cmsplugin-footnote.css" />
{% endaddtoblock %}
{% spaceless %}
{% for footnote_plugin in footnote_plugins %}
{% if forloop.first %}
<div class="cms-footnote-list-hline"></div>
<table class="cms-footnote-list">
<tbody>
{% endif %}
{% with counter=forloop.counter %}
<tr class="footnote" id="{{ placeholder_name }}_footnote_{{ counter }}">
<td class="footnote-symbol">
<a href="#{{ placeholder_name }}_footnote_{{ counter }}_symbol">
{{ footnote_plugin.symbol|default:counter }}.
</a>
</td>
<td class="footnote-body">
{{ footnote_plugin.body|safe }}
</td>
</tr>
{% endwith %}
{% if forloop.last %}
</tbody>
</table>
{% endif %}
{% endfor %}
{% endspaceless %}