display links
This commit is contained in:
parent
9400e4a5e3
commit
39993a165e
|
@ -13,6 +13,7 @@
|
|||
<p> {{events.formatted_header|safe}} </p>
|
||||
<p> {{events.formatted_body|safe}} </p>
|
||||
{% include "opt.html" with content=events %}
|
||||
{% include "links.html" with content=events %}
|
||||
{% include "gallery.html" with gallery=gallery %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
12
content/templates/links.html
Normal file
12
content/templates/links.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
{% if content.links.exists %}
|
||||
<div class="links">
|
||||
<b>Links:</b>
|
||||
<ul>
|
||||
{% for res in content.links %}
|
||||
<li>
|
||||
<a href="{{res.get_absolute_url}}">{{res.description|default:res.href}}</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
|
@ -13,6 +13,7 @@
|
|||
<p> {{projects.formatted_header|safe}} </p>
|
||||
<p> {{projects.formatted_body|safe}} </p>
|
||||
{% include "opt.html" with content=projects %}
|
||||
{% include "links.html" with content=projects %}
|
||||
{% include "gallery.html" with gallery=gallery %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue
Block a user