Skip to content

Commit

Permalink
PEP8 details_link
Browse files Browse the repository at this point in the history
  • Loading branch information
jelly committed Jul 22, 2020
1 parent 5e09c6a commit 227562a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/templatetags/details_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,13 @@ def wiki_link(package):
}
return link_encode(url, data)


@register.simple_tag
def sec_link(package):
url = "https://security.archlinux.org/package/{}"
return url.format(package.pkgname)


@register.simple_tag
def pgp_key_link(key_id, link_text=None):
return pgp.pgp_key_link(key_id, link_text)
Expand Down

0 comments on commit 227562a

Please sign in to comment.