Add classes to user stats, move likes received (#15892)

This commit is contained in:
Kris 2022-02-10 16:18:55 -05:00 committed by GitHub
parent 3170577ee1
commit 35697c6076
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,48 +4,48 @@
<div class="top-section stats-section">
<h3 class="stats-title">{{i18n "user.summary.stats"}}</h3>
<ul>
<li>
<li class="stats-days-visited">
{{user-stat value=model.days_visited label="user.summary.days_visited"}}
</li>
<li>
<li class="stats-time-read">
{{user-stat value=timeRead label="user.summary.time_read" type="string"}}
</li>
{{#if showRecentTimeRead}}
<li>
<li class="stats-recent-read">
{{user-stat value=recentTimeRead label="user.summary.recent_time_read" type="string"}}
</li>
{{/if}}
<li>
<li class="stats-topics-entered">
{{user-stat value=model.topics_entered label="user.summary.topics_entered"}}
</li>
<li>
<li class="stats-posts-read">
{{user-stat value=model.posts_read_count label="user.summary.posts_read"}}
</li>
<li class="linked-stat">
<li class="stats-likes-given linked-stat">
{{#link-to "userActivity.likesGiven"}}
{{user-stat value=model.likes_given icon="heart" label="user.summary.likes_given"}}
{{/link-to}}
</li>
<li class="stats-likes-received">
{{user-stat value=model.likes_received icon="heart" label="user.summary.likes_received"}}
</li>
{{#if model.bookmark_count}}
<li class="linked-stat">
<li class="stats-bookmark-count linked-stat">
{{#link-to "userActivity.bookmarks"}}
{{user-stat value=model.bookmark_count label="user.summary.bookmark_count"}}
{{/link-to}}
</li>
{{/if}}
<li class="linked-stat">
<li class="stats-topic-count linked-stat">
{{#link-to "userActivity.topics"}}
{{user-stat value=model.topic_count label="user.summary.topic_count"}}
{{/link-to}}
</li>
<li class="linked-stat">
<li class="stats-post-count linked-stat">
{{#link-to "userActivity.replies"}}
{{user-stat value=model.post_count label="user.summary.post_count"}}
{{/link-to}}
</li>
<li>
{{user-stat value=model.likes_received icon="heart" label="user.summary.likes_received"}}
</li>
{{plugin-outlet name="user-summary-stat" connectorTagName="li" args=(hash model=model)}}
</ul>
</div>