1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-14 08:33:01 +01:00
vichan/templates/mod/pm.html

45 lines
1.1 KiB
HTML
Raw Normal View History

2012-04-16 08:40:24 +02:00
<form action="" method="post">
<table>
<tr>
2012-05-05 17:33:10 +02:00
<th>{% trans 'From' %}</th>
2012-04-16 08:40:24 +02:00
{% if username %}
<td><a href="?/new_PM/{{ username|e }}">{{ username|e }}</a></td>
{% else %}
2012-05-05 17:33:10 +02:00
<td><em>{% trans 'deleted?' %}</em></td>
2012-04-16 08:40:24 +02: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 17:33:10 +02:00
<td><em>{% trans 'deleted?' %}</em></td>
2012-04-16 08:40:24 +02:00
{% endif %}
</tr>
{% endif %}
<tr>
2012-05-05 17:33:10 +02:00
<th>{% trans 'Date' %}</th>
2012-05-07 06:08:40 +02:00
<td>{{ time|date(config.post_date) }} <small>({{ time|ago }} ago)</small></td>
2012-04-16 08:40:24 +02:00
</tr>
<tr>
2012-05-05 17:33:10 +02:00
<th>{% trans 'Message' %}</th>
2012-04-16 08:40:24 +02:00
<td>{{ message }}</td>
</tr>
</table>
<ul style="list-style:none;text-align:center;padding:0">
<li style="padding:5px 0">
2012-05-05 17:33:10 +02:00
<input type="submit" name="delete" value="{% trans 'Delete forever' %}">
2012-04-16 08:40:24 +02:00
</li>
2012-05-07 06:08:40 +02: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 08:40:24 +02:00
</ul>
</form>