microblog/app/templates/post.html

20 lines
1.1 KiB
HTML
Raw Normal View History

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 %}
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>