changeset 616:e9650ea2ca2f

For BB issue 19, make download title a link to detail page.
author Brian Neal <bgneal@gmail.com>
date Sat, 22 Sep 2012 10:53:24 -0500 (2012-09-22)
parents 639af9e6bd78
children 95a80c1fe87b
files sg101/templates/downloads/download.html sg101/templates/downloads/download_detail.html
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/sg101/templates/downloads/download.html	Sat Sep 22 10:31:05 2012 -0500
+++ b/sg101/templates/downloads/download.html	Sat Sep 22 10:53:24 2012 -0500
@@ -3,7 +3,7 @@
 {% load bio_tags %}
 {% get_comment_count for download as comment_count %}
 <dt>
-{{ download.title }}
+<a href="{{ download.get_absolute_url }}">{{ download.title }}</a>
 </dt>
 <dd>
 {{ download.html|safe }}
@@ -21,7 +21,7 @@
 <tr>
     <th>Rating:</th><td><div class="rating" id="rating-{{ download.id }}">{{ download.average_score|floatformat }}</div></td>
     <th><img src="{{ STATIC_URL }}icons/comments.png" alt="Comments" title="Comments" />
-       <a href="{% url 'downloads-details' download.id %}">Comments</a>:</th><td>{{ comment_count }}</td>
+       <a href="{{ download.get_absolute_url }}">Comments</a>:</th><td>{{ comment_count }}</td>
 </tr>
 </table>
 <div id="link-{{ download.id }}"><button type="button" class="dl-button" id="dl-{{ download.id }}">Download</button></div>
--- a/sg101/templates/downloads/download_detail.html	Sat Sep 22 10:31:05 2012 -0500
+++ b/sg101/templates/downloads/download_detail.html	Sat Sep 22 10:53:24 2012 -0500
@@ -16,7 +16,7 @@
 {% block content %}
 <h2>Downloads</h2>
 {% include 'downloads/navigation.html' %}
-<h3>Download Details For {{ download.title }}</h3>
+<h3>Download Details For &ldquo;{{ download.title }}&rdquo;</h3>
 
 <dl>
 {% include 'downloads/download.html' %}