Merge "update the huawei's lab"
[pharos.git] / tools / pharos-dashboard / src / dashboard / templatetags / jira_filters.py
1 ##############################################################################
2 # Copyright (c) 2016 Max Breitenfeldt and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10
11 from django.template.defaultfilters import register
12
13 from django.conf import settings
14
15
16 @register.filter
17 def jira_issue_url(issue):
18     return settings.JIRA_URL + '/browse/' + str(issue)