Last reply in topics now has an avatar!
This commit is contained in:
parent
14424687d6
commit
7d4126443c
2 changed files with 37 additions and 12 deletions
|
@ -89,18 +89,33 @@
|
|||
text-align: center;
|
||||
padding-left: 1px;
|
||||
min-width: 70px;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
&__activity {
|
||||
min-width: 200px;
|
||||
padding-left: 3px;
|
||||
align-items: center;
|
||||
|
||||
&__info {
|
||||
flex-grow: 1;
|
||||
flex-shrink: 1;
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
&__avatar {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
flex-grow: 0;
|
||||
flex-shrink: 0;
|
||||
margin-right: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
&__stats,
|
||||
&__activity {
|
||||
display: inline-flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
display: flex;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
border-left: 1px solid #9475b2;
|
||||
|
|
|
@ -173,17 +173,27 @@
|
|||
</div>
|
||||
|
||||
<div class="forum__topics__entry__activity">
|
||||
<div class="forum__topics__entry__activity__datetime">
|
||||
<a href="/forum/topic.php?p={{ topic.response_id }}#p{{ topic.response_id }}" class="forum__topics__entry__activity__datetime__link">
|
||||
{{ topic.response_created }}
|
||||
</a>
|
||||
</div>
|
||||
{% if topic.respondent_id is not null %}
|
||||
<div class="forum__topics__entry__activity__author">
|
||||
by <a href="/profile.php?u={{ topic.respondent_id }}" class="forum__topics__entry__activity__author__name" style="color:{{ topic.respondent_colour|colour_get_css }}">
|
||||
{{ topic.respondent_name }}
|
||||
<div class="forum__topics__entry__activity__info">
|
||||
<div class="forum__topics__entry__activity__datetime">
|
||||
<a href="/forum/topic.php?p={{ topic.response_id }}#p{{ topic.response_id }}" class="forum__topics__entry__activity__datetime__link">
|
||||
{{ topic.response_created }}
|
||||
</a>
|
||||
</div>
|
||||
{% if topic.respondent_id is not null %}
|
||||
<div class="forum__topics__entry__activity__author">
|
||||
by <a href="/profile.php?u={{ topic.respondent_id }}" class="forum__topics__entry__activity__author__name" style="color:{{ topic.respondent_colour|colour_get_css }}">
|
||||
{{ topic.respondent_name }}
|
||||
</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if topic.respondent_id is not null %}
|
||||
<a
|
||||
href="/profile.php?u={{ topic.respondent_id }}"
|
||||
class="avatar forum__topics__entry__activity__avatar"
|
||||
style="background-image:url('/profile.php?u={{ topic.respondent_id }}&m=avatar')">
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Reference in a new issue