diff options
author | Dan McGee <dan@archlinux.org> | 2012-02-12 01:53:23 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-12 01:53:23 +0100 |
commit | c3ebf7deae0bb04f1637e9a52e7f9f38d454fec7 (patch) | |
tree | 927f6e4703d6576f0de198e42d93914a9f400b0a /templates/todolists | |
parent | 2ac90512fd17012208d34c4b86ac56d39e3cecd2 (diff) | |
download | archweb-c3ebf7deae0bb04f1637e9a52e7f9f38d454fec7.tar.gz archweb-c3ebf7deae0bb04f1637e9a52e7f9f38d454fec7.tar.xz |
Show current version in todolist details view
This also reorders the columns to be in the same order as package search
for consistency.
Addresses FS#28369.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/todolists')
-rw-r--r-- | templates/todolists/view.html | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/templates/todolists/view.html b/templates/todolists/view.html index d45905e..8c9361c 100644 --- a/templates/todolists/view.html +++ b/templates/todolists/view.html @@ -31,9 +31,10 @@ <table id="dev-todo-pkglist" class="results todo-table"> <thead> <tr> - <th>Name</th> <th>Arch</th> - <th>Repo</th> + <th>Repository</th> + <th>Name</th> + <th>Current Version</th> <th>Maintainers</th> <th>Status</th> </tr> @@ -41,9 +42,14 @@ <tbody> {% for pkg in list.packages %} <tr class="{% cycle 'odd' 'even' %}"> - <td>{% pkg_details_link pkg.pkg %}</td> <td>{{ pkg.pkg.arch.name }}</td> <td>{{ pkg.pkg.repo.name|capfirst }}</td> + <td>{% pkg_details_link pkg.pkg %}</td> + {% if pkg.pkg.flag_date %} + <td><span class="flagged">{{ pkg.pkg.full_version }}</span></td> + {% else %} + <td>{{ pkg.pkg.full_version }}</td> + {% endif %} <td>{{ pkg.pkg.maintainers|join:', ' }}</td> <td> {% if perms.main.change_todolistpkg %} @@ -71,7 +77,7 @@ $(document).ready(function() { $('a.status-link').click(todolist_flag); $(".results").tablesorter({ widgets: ['zebra'], - sortList: [[0,0], [1,0]], + sortList: [[2,0], [0,0]], headers: { 4: { sorter: 'todostatus' } } }); }); |