diff --git a/app/static/css/widgets.css b/app/static/css/widgets.css index 4f6a9d8..b28f970 100644 --- a/app/static/css/widgets.css +++ b/app/static/css/widgets.css @@ -3,6 +3,13 @@ align-items: center; width: 265px; } +.profile.minimal { + width: 176px; +} +.profile.minimal .profile-avatar { + width: 64px; + height: 64px; +} .profile-avatar { width: 128px; height: 128px; diff --git a/app/static/less/widgets.less b/app/static/less/widgets.less index 31a2f0f..28ebc7b 100644 --- a/app/static/less/widgets.less +++ b/app/static/less/widgets.less @@ -8,6 +8,15 @@ width: 265px; } +.profile.minimal { + width: 176px; + + .profile-avatar { + width: 64px; + height: 64px; + } + } + .profile-avatar { width: 128px; height: 128px; diff --git a/app/templates/forum/topic.html b/app/templates/forum/topic.html index 86db5ea..e492923 100644 --- a/app/templates/forum/topic.html +++ b/app/templates/forum/topic.html @@ -20,13 +20,10 @@ {% endif %} {% if t.thread.top_comment %} - {% call widget_thread.thread_leader(t.thread.top_comment) %} + {% call widget_thread.thread_leader(t.thread.top_comment, t) %}
{{ widget_user.profile(leader.author) }} | +
+ {% if thread.author_id != leader.author_id %}
+ Auteur de la page:
+ {{ widget_user.profile(thread.author, minimal = True) }}
+ + Auteur du post principal: + {% endif %} + {{ widget_user.profile(leader.author) }} + |