Browse Source

display links

master
j 7 years ago
parent
commit
39993a165e
  1. 1
      content/templates/events.html
  2. 12
      content/templates/links.html
  3. 1
      content/templates/projects.html

1
content/templates/events.html

@ -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

@ -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 %}

1
content/templates/projects.html

@ -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…
Cancel
Save