2017-09-27 06:43:28 +00:00
|
|
|
<table class="table table-hover">
|
|
|
|
<tr>
|
|
|
|
<td width="70px">
|
2017-10-09 07:09:22 +00:00
|
|
|
<a href="{{ url_for('main.user', username=post.author.username) }}">
|
2017-09-27 06:43:28 +00:00
|
|
|
<img src="{{ post.author.avatar(70) }}" />
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
2017-09-30 07:21:17 +00:00
|
|
|
{% set user_link %}
|
2017-11-10 03:20:27 +00:00
|
|
|
<a class="user_popup" href="{{ url_for('main.user', username=post.author.username) }}">
|
2017-09-30 07:21:17 +00:00
|
|
|
{{ post.author.username }}
|
|
|
|
</a>
|
|
|
|
{% endset %}
|
|
|
|
{{ _('%(username)s said %(when)s',
|
|
|
|
username=user_link, when=moment(post.timestamp).fromNow()) }}
|
2017-09-27 06:43:28 +00:00
|
|
|
<br>
|
2017-10-05 22:34:15 +00:00
|
|
|
<span id="post{{ post.id }}">{{ post.body }}</span>
|
|
|
|
{% if post.language and post.language != g.locale %}
|
|
|
|
<br><br>
|
|
|
|
<span id="translation{{ post.id }}">
|
|
|
|
<a href="javascript:translate(
|
|
|
|
'post{{ post.id }}',
|
|
|
|
'translation{{ post.id }}',
|
|
|
|
'{{ post.language }}',
|
|
|
|
'{{ g.locale }}');">{{ _('Translate') }}</a>
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
2017-09-27 06:43:28 +00:00
|
|
|
</td>
|
2017-09-14 17:48:56 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|