Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_card_popover: Rename for_user_info_popover template variable.
Daniil Fadeev7ce1ee784ca6
diff --git a/web/templates/user_card_popover_content.hbs b/web/templates/user_card_popover_content.hbsindex 4a1afa35db1..72a00add8f9 100644--- a/web/templates/user_card_popover_content.hbs+++ b/web/templates/user_card_popover_content.hbs@@ -50,7 +50,7 @@<li>{{ user_type }}</li>{{/if}}{{!-- Display selected custom profile fields in this popover. --}}- {{> user_custom_profile_fields profile_fields=display_profile_fields for_user_info_popover=true}}+ {{> user_custom_profile_fields profile_fields=display_profile_fields for_user_card_popover=true}}<li class="only-visible-for-spectators">{{t "Joined {date_joined}" }}</li>diff --git a/web/templates/user_custom_profile_fields.hbs b/web/templates/user_custom_profile_fields.hbsindex ec563f45566..4edb33d1d2e 100644--- a/web/templates/user_custom_profile_fields.hbs+++ b/web/templates/user_custom_profile_fields.hbs@@ -1,12 +1,12 @@{{#each profile_fields}}<li data-type="{{this.type}}" class="field-section custom_user_field" data-field-id="{{this.id}}">- {{#unless ../for_user_info_popover}}+ {{#unless ../for_user_card_popover}}<div class="name">{{this.name}}</div>{{/unless}}{{#if this.is_link}}- <a tabindex="0" href="{{this.value}}" target="_blank" rel="noopener noreferrer" class="value custom_profile_fields_link {{#if ../for_user_info_popover}}tippy-zulip-tooltip{{/if}}" data-tippy-content="{{this.name}}">{{this.value}}</a>+ <a tabindex="0" href="{{this.value}}" target="_blank" rel="noopener noreferrer" class="value custom_profile_fields_link {{#if ../for_user_card_popover}}tippy-zulip-tooltip{{/if}}" data-tippy-content="{{this.name}}">{{this.value}}</a>{{else if this.is_external_account}}- <a tabindex="0" href="{{this.link}}" target="_blank" rel="noopener noreferrer" class="value custom_profile_fields_link {{#if ../for_user_info_popover}}tippy-zulip-tooltip{{/if}}" data-tippy-content="{{this.name}}">+ <a tabindex="0" href="{{this.link}}" target="_blank" rel="noopener noreferrer" class="value custom_profile_fields_link {{#if ../for_user_card_popover}}tippy-zulip-tooltip{{/if}}" data-tippy-content="{{this.name}}">{{#if (eq this.subtype "github") }}<i class="fa fa-github" aria-hidden="true"></i>{{else if (eq this.subtype "twitter") }}@@ -20,9 +20,9 @@</div>{{else}}{{#if this.rendered_value}}- <span class="value rendered_markdown {{#if ../for_user_info_popover}}tippy-zulip-tooltip{{/if}}" data-tippy-content="{{this.name}}">{{rendered_markdown this.rendered_value}}</span>+ <span class="value rendered_markdown {{#if ../for_user_card_popover}}tippy-zulip-tooltip{{/if}}" data-tippy-content="{{this.name}}">{{rendered_markdown this.rendered_value}}</span>{{else}}- <span class="value {{#if ../for_user_info_popover}}tippy-zulip-tooltip"{{/if}} data-tippy-content="{{this.name}}">{{this.value}}</span>+ <span class="value {{#if ../for_user_card_popover}}tippy-zulip-tooltip"{{/if}} data-tippy-content="{{this.name}}">{{this.value}}</span>{{/if}}{{/if}}</li>