diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-12-22 21:47:41 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-12-22 21:47:41 -0500 |
commit | 6d352bc62361edd4ce15189e31fccff5f0eb5e9a (patch) | |
tree | aa84f7b59a48d7ce5cd644756b11a4b1d5f10dbf /main/templatetags | |
parent | bad36ff78ead3ad4868227f8120a9ef0cefd1365 (diff) |
Pull the bug link generation into a templatetag
Diffstat (limited to 'main/templatetags')
-rw-r--r-- | main/templatetags/bugs.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/main/templatetags/bugs.py b/main/templatetags/bugs.py new file mode 100644 index 00000000..d5764435 --- /dev/null +++ b/main/templatetags/bugs.py @@ -0,0 +1,6 @@ +from django import template +register = template.Library() + +@register.simple_tag +def bug_link(bugid): + return "<a href=\"https://bugs.archlinux.org/task/"+bugid+"\">FS#"+bugid+"</a>" |