mirror of https://github.com/zulip/zulip.git
settings: Add guest avatar marker to account settings.
This commit is contained in:
parent
053c4a2250
commit
55c1a2e525
|
@ -78,7 +78,7 @@ exports.update_person = function update(person) {
|
|||
page_params.avatar_source = person.avatar_source;
|
||||
page_params.avatar_url = url;
|
||||
page_params.avatar_url_medium = person.avatar_url_medium;
|
||||
$("#user-avatar-block").attr("src", person.avatar_url_medium);
|
||||
$("#user-avatar-block").attr("style", "background-image:url(" + person.avatar_url_medium + ")");
|
||||
}
|
||||
|
||||
message_live_update.update_avatar(person_obj.user_id, person.avatar_url);
|
||||
|
|
|
@ -1058,6 +1058,15 @@ input[type=checkbox].inline-block {
|
|||
height: 200px;
|
||||
|
||||
transition: all 0.3s ease;
|
||||
|
||||
#user-avatar-block {
|
||||
background-size: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
.guest-avatar::after {
|
||||
outline: 9px solid hsl(0, 0%, 100%);
|
||||
}
|
||||
}
|
||||
|
||||
#user-settings-avatar:hover #user-avatar-block {
|
||||
|
|
|
@ -160,7 +160,7 @@
|
|||
|
||||
<div class="inline-block">
|
||||
<div id="user-settings-avatar">
|
||||
<img id="user-avatar-block" src="{{ page_params.avatar_url_medium }}" />
|
||||
<div id="user-avatar-block" style="background-image: url({{ page_params.avatar_url_medium }})" {{#if page_params.is_guest}} class="guest-avatar"{{/if}}/>
|
||||
<div id="user-avatar-source">
|
||||
<a href="https://en.gravatar.com/" target="_blank" class="white-color">{{t "Avatar from Gravatar" }}</a>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue