UX: display staged status on user summary page

This commit is contained in:
Régis Hanol 2018-04-20 17:42:06 +02:00
parent 76474f3156
commit b489edac1d
5 changed files with 17 additions and 14 deletions
app/assets
javascripts/discourse/templates
stylesheets

View File

@ -86,6 +86,9 @@
<div class="primary-textual">
<h1 class="{{if nameFirst "full-name" "username"}}">{{if nameFirst model.name (format-username model.username)}} {{user-status model currentUser=currentUser}}</h1>
<h2 class="{{if nameFirst "username" "full-name"}}">{{#if nameFirst}}{{model.username}}{{else}}{{model.name}}{{/if}}</h2>
{{#if model.staged}}
<h2 class="staged">{{i18n 'user.staged'}}</h2>
{{/if}}
{{#if model.title}}
<h3>{{model.title}}</h3>
{{/if}}

View File

@ -168,7 +168,6 @@ aside.quote {
opacity: 0.4;
}
.quote-controls {
float: right;
display: flex;

View File

@ -72,3 +72,8 @@
}
}
}
.primary-textual .staged,
#user-card .staged {
font-style: italic;
}

View File

@ -41,9 +41,6 @@ $user_card_background: $secondary;
a.card-huge-avatar {
outline: none;
}
.staged {
font-style: italic;
}
}
&.no-bg {

View File

@ -79,7 +79,6 @@ margin-top: 10px;
.secondary {
dl {
padding: 5px 0;
}
}