diff options
author | Dan McGee <dan@archlinux.org> | 2012-02-03 01:29:35 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-02-07 07:47:21 +0100 |
commit | b2cfd30094b07546bbbdd2c83499cfd3d03f2161 (patch) | |
tree | d2a86ecad4fa30a1b3e0712528eb97e088025b11 /templates/packages/details.html | |
parent | 087aca5cceb2dc8ac4625eb61f95b57b704bd30f (diff) | |
download | archweb-b2cfd30094b07546bbbdd2c83499cfd3d03f2161.tar.gz archweb-b2cfd30094b07546bbbdd2c83499cfd3d03f2161.tar.xz |
Show the latest flag request on package details if out of date
This only shows up for logged in users, but might be helpful for
developers browsing around the site, especially if they did not receive
the email themselves, or in the case of orphan packages.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/packages/details.html')
-rw-r--r-- | templates/packages/details.html | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/packages/details.html b/templates/packages/details.html index f68aefa..fd7bea4 100644 --- a/templates/packages/details.html +++ b/templates/packages/details.html @@ -161,6 +161,11 @@ <th>Last Updated:</th> <td>{{ pkg.last_update|date }}</td> </tr> + {% if user.is_authenticated %}{% with pkg.flag_request as flag_request %}{% if flag_request %}<tr> + <th>Last Flag Request:</th> + <td>From {{ flag_request.who }} on {{ flag_request.created|date }}:<br/> + <div class="userdata">{{ flag_request.message|linebreaksbr|default:"{no message}" }}</div></td> + </tr>{% endif %}{% endwith %}{% endif %} </table> <div id="metadata"> |