camp/content/templates/links.html
2017-12-19 13:34:46 +00:00

25 lines
515 B
HTML

{% if content.link_set.exists %}
<div class="links">
<b>Links:</b>
<ul>
{% for link in content.link_set.all %}
<li>
<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>
</li>
{% endfor %}
</ul>
</div>
{% endif %}