Skip to content

Commit

Permalink
Update git.archlinux.org links to Github.com/archlinux
Browse files Browse the repository at this point in the history
  • Loading branch information
jelly committed Jul 22, 2020
1 parent db10dd5 commit c20aba6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions main/templatetags/details_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ def details_link(pkg):
@register.simple_tag
def scm_link(package, operation):
parts = (package.repo.svn_root, operation, package.pkgbase)
linkbase = (
"https://projects.archlinux.org/svntogit/%s.git/%s/trunk?"
"h=packages/%s")
linkbase = ("https://github.com/archlinux/svntogit-%s/%s/master/%s/trunk")
return linkbase % tuple(urlquote(part.encode('utf-8')) for part in parts)


Expand Down
2 changes: 1 addition & 1 deletion templates/packages/package_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ <h4>Package Actions</h4>
<ul class="small">
<li>
<a href="{% scm_link pkg 'tree' %}" title="View source files for {{ pkg.pkgname }}">Source Files</a> /
<a href="{% scm_link pkg 'log' %}" title="View changes for {{ pkg.pkgname }}">View Changes</a>
<a href="{% scm_link pkg 'commits' %}" title="View changes for {{ pkg.pkgname }}">View Changes</a>
</li>
<li>
<a href="{% bugs_list pkg %}" title="View existing bug tickets for {{ pkg.pkgname }}">Bug Reports</a> /
Expand Down

0 comments on commit c20aba6

Please sign in to comment.