user status: Style status message in user popover.

This commit is contained in:
Rishi Gupta 2019-02-05 13:12:31 -08:00 committed by Tim Abbott
parent a4b294da98
commit a7a5188030
2 changed files with 41 additions and 32 deletions

View File

@ -334,3 +334,8 @@ ul.remind_me_popover .remind_icon {
font-size: small; font-size: small;
text-align: justify; text-align: justify;
} }
.user_info_status_text {
opacity: 0.8;
padding: 2px 0px 3px 0px;
}

View File

@ -24,18 +24,48 @@
<li class="user_popover_email half-opacity italic">{{#tr this}}(This user has been deactivated){{/tr}}</li> <li class="user_popover_email half-opacity italic">{{#tr this}}(This user has been deactivated){{/tr}}</li>
{{/if}} {{/if}}
{{#if status_text}}
<li class="user_info_status_text">
{{status_text}}
</li>
{{/if}}
{{#if user_time}} {{#if user_time}}
<li>{{ user_time }} {{#tr this}}Local time{{/tr}}</li> <li>{{ user_time }} {{#tr this}}Local time{{/tr}}</li>
{{/if}} {{/if}}
<li>{{ user_type }}</li> <li>{{ user_type }}</li>
</div> </div>
{{#if is_me}}
<hr />
{{#if can_set_away}}
<li>
<a href="#" class="set_away_status">
<i class="fa fa-sign-out" aria-hidden="true"></i> {{#tr this}}Set yourself to away{{/tr}}
</a>
</li>
{{/if}}
{{#if can_revoke_away}}
<li>
<a href="#" class="revoke_away_status">
<i class="fa fa-sign-out" aria-hidden="true"></i> {{#tr this}}Set yourself to active{{/tr}}
</a>
</li>
{{/if}}
<li>
<a href="#" class="update_status_text">
<i class="fa fa-comments" aria-hidden="true"></i>
{{#if status_text}}
{{#tr this}}Edit status message{{/tr}}
{{else}}
{{#tr this}}Set a status message{{/tr}}
{{/if}}
</a>
</li>
{{/if}}
{{#if status_text}}
{{#unless is_me}}<hr />{{/unless}}
<li class="user_info_status_text">
{{status_text}}
</li>
{{/if}}
<hr /> <hr />
{{#if show_user_profile}} {{#if show_user_profile}}
<li> <li>
@ -87,30 +117,4 @@
<i class="fa fa-bullhorn" aria-hidden="true"></i> {{#tr this}}View messages sent{{/tr}} <i class="fa fa-bullhorn" aria-hidden="true"></i> {{#tr this}}View messages sent{{/tr}}
</a> </a>
</li> </li>
{{#if can_set_away}}
<li>
<a href="#" class="set_away_status">
<i class="fa fa-sign-out" aria-hidden="true"></i> {{#tr this}}Set yourself to away{{/tr}}
</a>
</li>
{{/if}}
{{#if can_revoke_away}}
<li>
<a href="#" class="revoke_away_status">
<i class="fa fa-sign-out" aria-hidden="true"></i> {{#tr this}}Set yourself to active{{/tr}}
</a>
</li>
{{/if}}
{{#if is_me}}
<li>
<a href="#" class="update_status_text">
<i class="fa fa-comments" aria-hidden="true"></i>
{{#if status_text}}
{{#tr this}}Edit status message{{/tr}}
{{else}}
{{#tr this}}Set a status message{{/tr}}
{{/if}}
</a>
</li>
{{/if}}
</ul> </ul>