Skip to content

Commit

Permalink
update to quoteme template
Browse files Browse the repository at this point in the history
  • Loading branch information
montylounge committed Jan 30, 2010
1 parent af57640 commit ecc5b9e
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion docs/CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Note: I neglected to keep a CHANGELOG until 0.9 release which is noted below.

* small change to loaddata instructions in docs
* bumped django-proxy and django-quoteme versions

* update to quoteme template

1.30.10
-------
Expand Down
44 changes: 22 additions & 22 deletions mingus/templates/quotes/quote_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ <h2>{{ object.title }}</h2>

<div class="body">
{% if object.quote %}
<blockquote cite="object.url_source">{{ object.quote }}</blockquote>
<blockquote cite="{{ object.url_source }}">{{ object.quote }}</blockquote>
{% endif %}
</div>

<div class="source">
{% if object.author %}
{% if object.url_source %}
<span>&mdash; <a href="{{ object.url_source }}">{{ object.author }}</a></span>
{% else %}
<span>- {{ object.author }} {% if object.circa %}, {{ object.circa }}{% endif %}</span>
{% endif %}

{% endif %}
{% if object.url_source %}
<span>&mdash; <a href="{{ object.url_source }}">{{ object.author }}</a></span>
{% else %}
<span>- {{ object.author }} {% if object.circa %}, {{ object.circa }}{% endif %}</span>
{% endif %}
{% endif %}
</div>

{% cache 1800 "quote.quote_detail.tag_list" object.pk %}
Expand All @@ -37,21 +37,21 @@ <h2>{{ object.title }}</h2>
</ul>
</div>
{% endif %}
{% endcache %}

{% cache 1800 "quoteme.quote_detail.related_list" object.pk %}
{% tagged_get_related object in quoteme.Quote as quote_list with num=3 %}
{% if quote_list %}
<div class="related">
<strong>Related quotes:</strong>
<ol class="quote inline">
{% for quote in quote_list %}
{% endcache %}

{% cache 1800 "quoteme.quote_detail.related_list" object.pk %}
{% tagged_get_related object in quoteme.Quote as quote_list with num=3 %}
{% if quote_list %}
<div class="related">
<strong>Related quotes:</strong>
<ol class="quote inline">
{% for quote in quote_list %}
<li><a href="{{ quote.get_absolute_url }}">{{ quote.title }}</a></li>
{% endfor %}
</ol>
</div>
{% endif %}
{% endcache %}
{% endfor %}
</ol>
</div>
{% endif %}
{% endcache %}

</div>
{% endcache %}
Expand Down

0 comments on commit ecc5b9e

Please sign in to comment.