|
@@ -28,14 +28,16 @@
|
|
{% for post, user in posts.items %}
|
|
{% for post, user in posts.items %}
|
|
<div id="{{ post.id }}" class="row post-row clearfix">
|
|
<div id="{{ post.id }}" class="row post-row clearfix">
|
|
|
|
|
|
- <div class="author col-md-2 col-sm-2 col-xs-12">
|
|
|
|
|
|
+ <div class="author col-md-2 col-sm-3 col-xs-12">
|
|
<!-- Registered User -->
|
|
<!-- Registered User -->
|
|
{% if post.user_id %}
|
|
{% if post.user_id %}
|
|
<div class="author-name"><h4><a href="{{ user.url }}">{{ user.username }}</a></h4></div>
|
|
<div class="author-name"><h4><a href="{{ user.url }}">{{ user.username }}</a></h4></div>
|
|
|
|
+
|
|
|
|
+ <!-- check if user is online or not -->
|
|
{% if user|is_online %}
|
|
{% if user|is_online %}
|
|
- <div class="author-online" data-toggle="tooltip" data-placement="top" title="online"></div>
|
|
|
|
|
|
+ <div class="author-online" data-toggle="tooltip" data-placement="top" title="online"></div>
|
|
{% else %}
|
|
{% else %}
|
|
- <div class="author-offline" data-toggle="tooltip" data-placement="top" title="offline"></div>
|
|
|
|
|
|
+ <div class="author-offline" data-toggle="tooltip" data-placement="top" title="offline"></div>
|
|
{% endif %}
|
|
{% endif %}
|
|
<div class="author-title"><h5>{{ user.primary_group.name }}</h5></div>
|
|
<div class="author-title"><h5>{{ user.primary_group.name }}</h5></div>
|
|
|
|
|
|
@@ -43,34 +45,37 @@
|
|
<div class="author-avatar"><img src="{{ user.avatar }}" alt="avatar"></div>
|
|
<div class="author-avatar"><img src="{{ user.avatar }}" alt="avatar"></div>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
|
|
- <div class="author-field author-registered">{% trans %}Joined{% endtrans %}: {{ user.date_joined|format_date('%b %d %Y') }}</div>
|
|
|
|
- <div class="author-field author-posts">{% trans %}Posts{% endtrans %}: {{ user.post_count }}</div>
|
|
|
|
- <div class="author-field author-email">
|
|
|
|
|
|
+ <div class="author-registered">{% trans %}Joined{% endtrans %}: {{ user.date_joined|format_date('%b %d %Y') }}</div>
|
|
|
|
+ <div class="author-posts">{% trans %}Posts{% endtrans %}: {{ user.post_count }}</div>
|
|
|
|
+ <div class="author-pm">
|
|
{% if current_user.is_authenticated() and post.user_id %}
|
|
{% if current_user.is_authenticated() and post.user_id %}
|
|
- <a href="{{ url_for('message.new_conversation') }}?to_user={{ user.username }}">{% trans %}PM{% endtrans %}</a>
|
|
|
|
|
|
+ <a href="{{ url_for('message.new_conversation') }}?to_user={{ user.username }}">{% trans %}Message{% endtrans %}</a>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
{% if user.website %}
|
|
{% if user.website %}
|
|
- <div class="author-field author-website"><a href="{{ user.website }}" rel="nofollow">{% trans %}Website{% endtrans %}</a></div>
|
|
|
|
|
|
+ <div class="author-website"><a href="{{ user.website }}" rel="nofollow">{% trans %}Website{% endtrans %}</a></div>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
|
|
{% else %}
|
|
{% else %}
|
|
|
|
+ <!-- user deleted or guest -->
|
|
<div class="author-name"><h4><a href="{{ user.url }}">{{ post.username }}</a></h4></div>
|
|
<div class="author-name"><h4><a href="{{ user.url }}">{{ post.username }}</a></h4></div>
|
|
<div class="author-title"><h5>{% trans %}Guest{% endtrans %}</h5></div>
|
|
<div class="author-title"><h5>{% trans %}Guest{% endtrans %}</h5></div>
|
|
{% endif %}
|
|
{% endif %}
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div class="post-box col-md-10 col-sm-10 col-xs-12">
|
|
|
|
|
|
+ <div class="post-box col-md-10 col-sm-9 col-xs-12">
|
|
|
|
|
|
<div class="post-meta clearfix">
|
|
<div class="post-meta clearfix">
|
|
<div class="pull-left">
|
|
<div class="pull-left">
|
|
<!-- Creation date / Date modified -->
|
|
<!-- Creation date / Date modified -->
|
|
<a href="{{ generate_post_url(topic, post, posts.page) }}">
|
|
<a href="{{ generate_post_url(topic, post, posts.page) }}">
|
|
- {{ post.date_created|format_date('%d %B %Y') }}
|
|
|
|
|
|
+ {{ post.date_created|format_date('%d %B %Y - %H:%M') }}
|
|
</a>
|
|
</a>
|
|
{% if post.user_id and post.date_modified %}
|
|
{% if post.user_id and post.date_modified %}
|
|
<small>
|
|
<small>
|
|
- (Last modified: {{ post.date_modified|format_date }} by
|
|
|
|
|
|
+ (Last modified: {{ post.date_modified|format_date('%d %B %Y - %H:%M') }} by
|
|
<a href="{{ url_for('user.profile', username=post.modified_by) }}">{{ post.modified_by }}</a>.)
|
|
<a href="{{ url_for('user.profile', username=post.modified_by) }}">{{ post.modified_by }}</a>.)
|
|
</small>
|
|
</small>
|
|
{% endif %}
|
|
{% endif %}
|