diff options
author | Dan McGee <dan@archlinux.org> | 2011-04-19 06:26:10 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-04-19 06:26:13 +0200 |
commit | f1f01ecf0216441dd66f3bc6afc14fe104de291f (patch) | |
tree | e9cb94fdbbc92c29f40bde47b05b6f1020e4549b /templates | |
parent | d8022fd5720a8367a03bbff58668ed701a0bebcf (diff) | |
download | archweb-f1f01ecf0216441dd66f3bc6afc14fe104de291f.tar.gz archweb-f1f01ecf0216441dd66f3bc6afc14fe104de291f.tar.xz |
Reimplement links code as template tags
These were starting to get a bit too much inside the model itself, and
they don't really belong there as they are view layer concerns anyway.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/packages/details.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html index 4c66989..1926abc 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -15,10 +15,10 @@ <div id="actionlist"> <h4>Package Actions</h4> <ul class="small"> - <li><a href="{{ pkg.get_arch_svn_link }}" title="View SVN entries in the {{pkg.repo|lower}}-{{pkg.arch}} branch">SVN Entries ({{pkg.repo|lower}}-{{pkg.arch}})</a></li> - <li><a href="{{ pkg.get_trunk_svn_link }}" title="View SVN entries on trunk">SVN Entries (trunk)</a></li> - <li><a href="{{ pkg.get_bugs_link }}" title="View existing bug tickets for {{ pkg.pkgname }}">Bug Reports</a></li> - <li><a href="{{ pkg.get_bug_report_link }}" title="Report bug for {{ pkg.pkgname }}">Report a Bug</a></li> + <li><a href="{% svn_arch pkg %}" title="View SVN entries in the {{pkg.repo|lower}}-{{pkg.arch}} branch">SVN Entries ({{pkg.repo|lower}}-{{pkg.arch}})</a></li> + <li><a href="{% svn_trunk pkg %}" title="View SVN entries on trunk">SVN Entries (trunk)</a></li> + <li><a href="{% bugs_list pkg %}" title="View existing bug tickets for {{ pkg.pkgname }}">Bug Reports</a></li> + <li><a href="{% bug_report pkg %}" title="Report bug for {{ pkg.pkgname }}">Report a Bug</a></li> {% if pkg.flag_date %} <li><span class="flagged">Flagged out-of-date on {{ pkg.flag_date|date }}</span></li> {% with pkg.in_testing as tp %}{% if tp %} |