From 6d352bc62361edd4ce15189e31fccff5f0eb5e9a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 22 Dec 2013 21:47:41 -0500 Subject: Pull the bug link generation into a templatetag --- main/templatetags/bugs.py | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 main/templatetags/bugs.py (limited to 'main') 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 "FS#"+bugid+"" -- cgit v1.2.3