2012-12-16 08:40:47 +00:00
|
|
|
<table class="table table-hover">
|
|
|
|
<tr>
|
2014-09-19 14:47:13 +00:00
|
|
|
<td width="70px"><a href="{{ url_for('user', nickname=post.author.nickname) }}"><img src="{{ post.author.avatar(70) }}" /></a></td>
|
2012-12-16 08:40:47 +00:00
|
|
|
<td>
|
2013-02-01 05:48:20 +00:00
|
|
|
{% autoescape false %}
|
2014-09-19 14:47:13 +00:00
|
|
|
<p>{{ _('%(nickname)s said %(when)s:', nickname='<a href="%s">%s</a>' % (url_for('user', nickname=post.author.nickname), post.author.nickname), when=momentjs(post.timestamp).fromNow()) }}</p>
|
2013-02-01 05:48:20 +00:00
|
|
|
{% endautoescape %}
|
2014-09-19 14:47:13 +00:00
|
|
|
<p><strong><span id="post{{ post.id }}">{{ post.body }}</span></strong></p>
|
2013-02-20 06:59:54 +00:00
|
|
|
{% if post.language != None and post.language != '' and post.language != g.locale %}
|
|
|
|
<div>
|
2014-09-19 14:47:13 +00:00
|
|
|
<span id="translation{{ post.id }}">
|
|
|
|
<a href="javascript:translate('{{ post.language }}', '{{ g.locale }}', '#post{{ post.id }}', '#translation{{ post.id }}', '#loading{{ post.id }}');">{{ _('Translate') }}</a>
|
2013-02-20 06:59:54 +00:00
|
|
|
</span>
|
2014-09-19 14:47:13 +00:00
|
|
|
<img id="loading{{ post.id }}" style="display: none" src="/static/img/loading.gif">
|
2013-02-20 06:59:54 +00:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2013-03-10 04:17:06 +00:00
|
|
|
{% if post.author.id == g.user.id %}
|
|
|
|
<div><a href="{{ url_for('delete', id = post.id) }}">{{ _('Delete') }}</a></div>
|
|
|
|
{% endif %}
|
2012-12-16 08:40:47 +00:00
|
|
|
</td>
|
2012-12-16 08:31:21 +00:00
|
|
|
</tr>
|
2012-12-31 21:07:54 +00:00
|
|
|
</table>
|