2023-02-21 13:18:57 +01:00
|
|
|
{{#each profile_fields}}
|
|
|
|
<li data-type="{{this.type}}" class="field-section custom_user_field" data-field-id="{{this.id}}">
|
2023-09-14 17:23:46 +02:00
|
|
|
{{#unless ../for_user_card_popover}}
|
2023-02-21 13:18:57 +01:00
|
|
|
<div class="name">{{this.name}}</div>
|
|
|
|
{{/unless}}
|
|
|
|
{{#if this.is_link}}
|
2023-09-14 17:23:46 +02:00
|
|
|
<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>
|
2023-02-21 13:18:57 +01:00
|
|
|
{{else if this.is_external_account}}
|
2023-09-14 17:23:46 +02:00
|
|
|
<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}}">
|
2023-02-23 10:31:17 +01:00
|
|
|
{{#if (eq this.subtype "github") }}
|
|
|
|
<i class="fa fa-github" aria-hidden="true"></i>
|
|
|
|
{{else if (eq this.subtype "twitter") }}
|
|
|
|
<i class="fa fa-twitter" aria-hidden="true"></i>
|
2023-02-21 13:18:57 +01:00
|
|
|
{{/if}}
|
|
|
|
{{this.value}}
|
|
|
|
</a>
|
|
|
|
{{else if this.is_user_field}}
|
|
|
|
<div class="pill-container not-editable" data-field-id="{{this.id}}">
|
|
|
|
<div class="input" contenteditable="false" style="display: none;"></div>
|
|
|
|
</div>
|
|
|
|
{{else}}
|
|
|
|
{{#if this.rendered_value}}
|
2023-09-14 17:23:46 +02:00
|
|
|
<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>
|
2023-02-21 13:18:57 +01:00
|
|
|
{{else}}
|
2023-09-14 17:23:46 +02:00
|
|
|
<span class="value {{#if ../for_user_card_popover}}tippy-zulip-tooltip"{{/if}} data-tippy-content="{{this.name}}">{{this.value}}</span>
|
2023-02-21 13:18:57 +01:00
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</li>
|
|
|
|
{{/each}}
|