camp/content/templates/links.html

25 lines
515 B
HTML
Raw Permalink Normal View History

2017-12-19 13:34:43 +00:00
{% if content.link_set.exists %}
2017-12-19 11:49:08 +00:00
<div class="links">
<b>Links:</b>
<ul>
2017-12-19 13:34:43 +00:00
{% for link in content.link_set.all %}
2017-12-19 11:49:08 +00:00
<li>
2017-12-19 13:34:43 +00:00
<a href="{{link.url}}">{{link.description|default:link.url}}</a>
</li>
{% endfor %}
</ul>
</div>
{% endif %}
{% if content.file_set.exists %}
<div class="files">
<b>Resources:</b>
<ul>
{% for file in content.file_set.all %}
<li>
<a href="{{file.get_absolute_url}}">{{file.name}}</a>
2017-12-19 11:49:08 +00:00
</li>
{% endfor %}
</ul>
</div>
{% endif %}