lainchan/templates/mod/pm.html

45 lines
1.1 KiB
HTML
Raw Normal View History

2012-04-16 02:40:24 -04:00
<form action="" method="post">
<table>
<tr>
2012-05-05 11:33:10 -04:00
<th>{% trans 'From' %}</th>
2012-04-16 02:40:24 -04:00
{% if username %}
<td><a href="?/new_PM/{{ username|e }}">{{ username|e }}</a></td>
{% else %}
2012-05-05 11:33:10 -04:00
<td><em>{% trans 'deleted?' %}</em></td>
2012-04-16 02:40:24 -04:00
{% endif %}
</tr>
{% if to != mod.id %}
<tr>
<th>To</th>
{% if to_username %}
<td><a href="?/new_PM/{{ to_username|e }}">{{ to_username|e }}</a></td>
{% else %}
2012-05-05 11:33:10 -04:00
<td><em>{% trans 'deleted?' %}</em></td>
2012-04-16 02:40:24 -04:00
{% endif %}
</tr>
{% endif %}
<tr>
2012-05-05 11:33:10 -04:00
<th>{% trans 'Date' %}</th>
2012-05-07 00:08:40 -04:00
<td>{{ time|date(config.post_date) }} <small>({{ time|ago }} ago)</small></td>
2012-04-16 02:40:24 -04:00
</tr>
<tr>
2012-05-05 11:33:10 -04:00
<th>{% trans 'Message' %}</th>
2012-04-16 02:40:24 -04:00
<td>{{ message }}</td>
</tr>
</table>
<ul style="list-style:none;text-align:center;padding:0">
<li style="padding:5px 0">
2012-05-05 11:33:10 -04:00
<input type="submit" name="delete" value="{% trans 'Delete forever' %}">
2012-04-16 02:40:24 -04:00
</li>
2012-05-07 00:08:40 -04:00
{% if mod|hasPermission(config.mod.create_pm) %}
<li style="padding:5px 0">
<a href="?/PM/{{ id }}/reply">
{% trans 'Reply with quote' %}
</a>
</li>
{% endif %}
2012-04-16 02:40:24 -04:00
</ul>
</form>