mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 01:47:22 +08:00
UX: Cleaning up staff counters on user profiles
This commit is contained in:
parent
bb9281de39
commit
55c019f776
|
@ -5,27 +5,27 @@
|
|||
{{#unless collapsedInfo}}
|
||||
<div class='staff-counters'>
|
||||
{{#if model.number_of_flags_given}}
|
||||
<div><span class="helpful-flags">{{model.number_of_flags_given}}</span> {{i18n 'user.staff_counters.flags_given'}}</div>
|
||||
<div><span class="helpful-flags">{{model.number_of_flags_given}}</span>{{i18n 'user.staff_counters.flags_given'}}</div>
|
||||
{{/if}}
|
||||
{{#if model.number_of_flagged_posts}}
|
||||
<div>
|
||||
{{#link-to 'user.flaggedPosts' model}}
|
||||
<span class="flagged-posts">{{model.number_of_flagged_posts}}</span> {{i18n 'user.staff_counters.flagged_posts'}}
|
||||
<span class="flagged-posts">{{model.number_of_flagged_posts}}</span>{{i18n 'user.staff_counters.flagged_posts'}}
|
||||
{{/link-to}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if model.number_of_deleted_posts}}
|
||||
<div>
|
||||
{{#link-to 'user.deletedPosts' model}}
|
||||
<span class="deleted-posts">{{model.number_of_deleted_posts}}</span> {{i18n 'user.staff_counters.deleted_posts'}}
|
||||
<span class="deleted-posts">{{model.number_of_deleted_posts}}</span>{{i18n 'user.staff_counters.deleted_posts'}}
|
||||
{{/link-to}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{#if model.number_of_suspensions}}
|
||||
<div><span class="suspensions">{{model.number_of_suspensions}}</span> {{i18n 'user.staff_counters.suspensions'}}</div>
|
||||
<div><span class="suspensions">{{model.number_of_suspensions}}</span>{{i18n 'user.staff_counters.suspensions'}}</div>
|
||||
{{/if}}
|
||||
{{#if model.warnings_received_count}}
|
||||
<div><span class="warnings-received">{{model.warnings_received_count}}</span> {{i18n 'user.staff_counters.warnings_received'}}</div>
|
||||
<div><span class="warnings-received">{{model.warnings_received_count}}</span>{{i18n 'user.staff_counters.warnings_received'}}</div>
|
||||
{{/if}}
|
||||
</div>
|
||||
{{/unless}}
|
||||
|
|
|
@ -181,21 +181,21 @@
|
|||
}
|
||||
|
||||
.staff-counters {
|
||||
text-align: left;
|
||||
background: $primary;
|
||||
|
||||
> div {
|
||||
color: $secondary;
|
||||
display: flex;
|
||||
padding: 10px;
|
||||
> div, > div a {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
flex: 0 1 auto;
|
||||
margin: 0 10px 0 0;
|
||||
display: inline-block;
|
||||
padding: 5px 0;
|
||||
&:first-of-type {
|
||||
padding-left: 10px;
|
||||
}
|
||||
span {
|
||||
padding: 1px 5px;
|
||||
padding: 1px 6px;
|
||||
border-radius: 10px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
a {
|
||||
color: $secondary;
|
||||
|
|
|
@ -242,7 +242,6 @@
|
|||
}
|
||||
|
||||
.staff-counters {
|
||||
color: $secondary;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
|
|
|
@ -175,11 +175,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
.staff-counters {
|
||||
padding: 7px 0;
|
||||
display: inline;
|
||||
}
|
||||
|
||||
.user-field {
|
||||
label {
|
||||
width: auto;
|
||||
|
|
Loading…
Reference in New Issue
Block a user