dont make link if there is no file in biblio

This commit is contained in:
Sanj 2011-12-16 23:49:12 +05:30
parent 104c88517b
commit afdcc73bf9

View File

@ -1,5 +1,11 @@
{% for d in documents %}
<div class="orangeInnerRight"><a href="{{ d.file }} target="_blank"> {{ d.title }}</a></div>
<div class="orangeInnerRight">
{% if d.file %}
<a href="{{ d.file }} target="_blank"> {{ d.title }}</a>
{% else %}
{{ d.title }}
{% endif %}
</div>
{{ d.intro|safe }}
<br />
{% endfor %}