summaryrefslogtreecommitdiff
path: root/main/templatetags/bugs.py
diff options
context:
space:
mode:
Diffstat (limited to 'main/templatetags/bugs.py')
-rw-r--r--main/templatetags/bugs.py6
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..b548859a
--- /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/{0}\">FS#{0}</a>".format(bugid)