summaryrefslogtreecommitdiff
path: root/templates/packages/details.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/packages/details.html')
-rw-r--r--templates/packages/details.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html
index 1721dc56..f7680593 100644
--- a/templates/packages/details.html
+++ b/templates/packages/details.html
@@ -108,7 +108,13 @@
title="Visit the website for {{ pkg.pkgname }}">{{ pkg.url }}</a>{% endif %}</td>
</tr><tr>
<th>License:</th>
- <td>{{ pkg.license }}</td>
+ {% if pkg.license = 'GPL' %}
+ <td><a href="http://www.gnu.org/licenses/gpl.txt">{{ pkg.license }}</a></td>
+ {% else %}{% if pkg.license = 'GPL3' %}
+ <td><a href="http://www.gnu.org/licenses/gpl.txt">{{ pkg.license }}</a></td>
+ {% else %}
+ <td>{{ pkg.license }}</td>
+ {% endif %}
</tr><tr>
<th>Groups:</th>
{% with pkg.packagegroup_set.all as groups %}
@@ -207,6 +213,7 @@
</div><!-- #pkgfiles -->
</div><!-- #metadata -->
+ {% endif %}
{% endcache %}
</div><!-- #pkgdetails -->