Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
{{#each profile_fields}}
{{#unless this.is_long_text}}
<li role="none" class="popover-menu-list-item text-item custom_user_field" data-type="{{this.type}}" data-field-id="{{this.id}}">
{{#if this.is_link}}
<a href="{{this.value}}" target="_blank" rel="noopener noreferrer" class="custom-profile-field-value custom-profile-field-link" data-tippy-content="{{this.name}}" tabindex="0">
<span class="custom-profile-field-text">{{this.value}}</span>
</a>
<span role="menuitem" tabindex="0" class="popover-menu-link copy-button copy-custom-profile-field-link" aria-label="{{t 'Copy URL' }}" data-tippy-content="{{t 'Copy URL' }}">
<i class="zulip-icon zulip-icon-copy" aria-hidden="true"></i>
</span>
{{else if this.is_external_account}}
{{#if this.link}}
<a href="{{this.link}}" target="_blank" rel="noopener noreferrer" class="custom-profile-field-value custom-profile-field-link" data-tippy-content="{{this.name}}" tabindex="0">
{{> ../../default_external_account_icon subtype=this.subtype}}
<span class="custom-profile-field-text">{{this.value}}</span>
</a>
{{else}}
{{> ../../default_external_account_icon subtype=this.subtype}}
<span class="custom-profile-field-text">{{this.value}}</span>
{{/if}}
{{else if this.rendered_value}}
<div class="custom-profile-field-value rendered_markdown" data-tippy-content="{{this.name}}">
{{rendered_markdown this.rendered_value}}
</div>
{{else}}
<div class="custom-profile-field-value" data-tippy-content="{{this.name}}">
<span class="custom-profile-field-text">{{this.value}}</span>
</div>
{{/if}}
</li>
{{/unless}}
{{/each}}
{{!-- Long text custom profile fields are rendered after all other custom profile fields --}}
{{#each profile_fields}}
{{#if this.is_long_text}}
<li role="none" class="popover-menu-list-item link-item custom_user_field" data-type="{{this.type}}" data-field-id="{{this.id}}">
<div class="popover-menu-link view_full_user_profile" tabindex="0">
<i class="popover-menu-icon zulip-icon zulip-icon-id-card" aria-hidden="true"></i>
<span class="popover-menu-label">{{this.name}}</span>
<span role="menuitem" tabindex="0" class="copy-button copy-custom-profile-field-long-text" aria-label="{{t 'Copy'}}" data-tippy-content="{{t 'Copy'}}" data-clipboard-text="{{this.value}}">
<i class="zulip-icon zulip-icon-copy" aria-hidden="true"></i>
</span>
</div>
</li>
{{/if}}
{{/each}}