2012-12-16 08:40:47 +00:00
|
|
|
<table class="table table-hover">
|
|
|
|
<tr>
|
|
|
|
<td width="70px"><a href="{{url_for('user', nickname = post.author.nickname)}}"><img src="{{post.author.avatar(70)}}" /></a></td>
|
|
|
|
<td>
|
2013-02-01 05:48:20 +00:00
|
|
|
{% autoescape false %}
|
|
|
|
<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>
|
|
|
|
{% endautoescape %}
|
2013-02-20 06:59:54 +00:00
|
|
|
<p><strong><span id="post{{post.id}}">{{post.body}}</span></strong></p>
|
|
|
|
{% if post.language != None and post.language != '' and post.language != g.locale %}
|
|
|
|
<div>
|
|
|
|
<span id="translation{{post.id}}">
|
|
|
|
<a href="javascript:translate('{{post.language}}', '{{g.locale}}', '#post{{post.id}}', '#translation{{post.id}}', '#loading{{post.id}}');">{{ _('Translate') }}</a>
|
|
|
|
</span>
|
|
|
|
<img id="loading{{post.id}}" style="display: none" src="/static/img/loading.gif">
|
|
|
|
</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>
|