handle null files in document template

This commit is contained in:
sanj 2011-01-19 15:46:26 +05:30
parent 497d0f5197
commit 7ea11616ce

View File

@ -41,7 +41,9 @@
{{ r.intro }}
{% endautoescape %}
<br />
{% if r.file %}
<a href="/static/{{r.file}}" target="_blank">Download Full Text</a>
{% endif %}
</div>
</div>
{% endfor %}