diff options
author | Dan McGee <dan@archlinux.org> | 2014-10-18 15:36:56 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2014-10-18 15:36:56 -0500 |
commit | 122302e9e5fb9752a942abe5691ad3dd6d186196 (patch) | |
tree | 7b7ac68ef68d52808b9d48b0eddf88c89612d00a /templates/packages | |
parent | e5e5632fb3432e153d0677b4bf145bc2eb72ef65 (diff) |
Move maintainer/packager link code back into template
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages')
-rw-r--r-- | templates/packages/details.html.jinja | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/templates/packages/details.html.jinja b/templates/packages/details.html.jinja index 7ca5629c..52d13f14 100644 --- a/templates/packages/details.html.jinja +++ b/templates/packages/details.html.jinja @@ -149,11 +149,10 @@ <tr> <th>Maintainers:</th> {% with maints = pkg.maintainers %} - <td>{% if maints %} - {% for m in maints %} - {{ maintainer_link(m)|safe }}<br/> - {% endfor %} - {% else %}Orphan{% endif %} + <td>{% if maints %}{% for m in maints %} + <a href="/packages/?maintainer={{ m.username }}" + title="View packages maintained by {{ m.get_full_name() }}">{{ m.get_full_name() }}</a><br/> + {% endfor %}{% else %}Orphan{% endif %} </td> {% endwith %} </tr><tr> @@ -164,7 +163,10 @@ <td>{{ pkg.installed_size|filesizeformat }}</td> </tr><tr> <th>Last Packager:</th> - <td>{% with pkgr = pkg.packager %}{% if pkgr %}{{ packager_link(pkgr)|safe }}{% else %}{{ pkg.packager_str }}{% endif %}{% endwith %}</td> + <td>{% with pkgr = pkg.packager %}{% if pkgr %} + <a href="/packages/?packager={{ pkgr.username }}" + title="View packages packaged by {{ pkgr.get_full_name() }}">{{ pkgr.get_full_name() }}</a> + {% else %}{{ pkg.packager_str }}{% endif %}{% endwith %}</td> </tr><tr> <th>Build Date:</th> <td>{{ pkg.build_date|date("DATETIME_FORMAT") }} UTC</td> |