This repository has been archived by the owner on Oct 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d384b54
commit dd5e1fd
Showing
2 changed files
with
15 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
{% extends "jmbo/inclusion_tags/modelbase_detail.html" %} | ||
{% load cache %} | ||
|
||
{% block content %} | ||
{% if '<img' not in object.content %} | ||
<div class="image"> | ||
<img src="{{ object.image_detail_url }}" /> | ||
</div> | ||
{% endif %} | ||
<div class="content"> | ||
{{ object.content|safe }} | ||
</div> | ||
{% cache 3600 'object_detail_inclusion' object.id object.modified %} | ||
{% if '<img' not in object.content %} | ||
<div class="image"> | ||
<img src="{{ object.image_detail_url }}" /> | ||
</div> | ||
{% endif %} | ||
<div class="content"> | ||
{{ object.content|safe }} | ||
</div> | ||
{% endcache %} | ||
{% endblock %} |