diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-05-07 14:08:40 +1000 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-05-07 14:08:40 +1000 |
| commit | e132e4c2b3dc62c2ddb6bdbcc562e67fa61c9fa8 (patch) | |
| tree | 166609239b13a39305de03f2dbacbdff6bfcb978 /templates/mod | |
| parent | 8ea20109fe9f4f971ebf2c54b6a4f5ac4d9dd663 (diff) | |
a few permissions-related bugs
Diffstat (limited to 'templates/mod')
| -rw-r--r-- | templates/mod/pm.html | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/templates/mod/pm.html b/templates/mod/pm.html index c66dc883..c62cae58 100644 --- a/templates/mod/pm.html +++ b/templates/mod/pm.html @@ -20,7 +20,8 @@ {% endif %} <tr> <th>{% trans 'Date' %}</th> - <td>{{ time|date(config.post_date) }}</td> + <td>{{ time|date(config.post_date) }} <small>({{ time|ago }} ago)</small></td> + </tr> <tr> <th>{% trans 'Message' %}</th> @@ -32,10 +33,12 @@ <li style="padding:5px 0"> <input type="submit" name="delete" value="{% trans 'Delete forever' %}"> </li> - <li style="padding:5px 0"> - <a href="?/PM/{{ id }}/reply"> - {% trans 'Reply with quote' %} - </a> - </li> + {% if mod|hasPermission(config.mod.create_pm) %} + <li style="padding:5px 0"> + <a href="?/PM/{{ id }}/reply"> + {% trans 'Reply with quote' %} + </a> + </li> + {% endif %} </ul> </form> |
