mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
Ever since we started bundling the app with webpack, there’s been less and less overlap between our ‘static’ directory (files belonging to the frontend app) and Django’s interpretation of the ‘static’ directory (files served directly to the web). Split the app out to its own ‘web’ directory outside of ‘static’, and remove all the custom collectstatic --ignore rules. This makes it much clearer what’s actually being served to the web, and what’s being bundled by webpack. It also shrinks the release tarball by 3%. Signed-off-by: Anders Kaseorg <anders@zulip.com>
30 lines
1.8 KiB
Handlebars
30 lines
1.8 KiB
Handlebars
{{#each profile_fields}}
|
|
<li data-type="{{this.type}}" class="field-section custom_user_field" data-field-id="{{this.id}}">
|
|
{{#unless ../for_user_info_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>
|
|
{{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}}">
|
|
{{#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>
|
|
{{/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}}
|
|
<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>
|
|
{{else}}
|
|
<span class="value {{#if ../for_user_info_popover}}tippy-zulip-tooltip"{{/if}} data-tippy-content="{{this.name}}">{{this.value}}</span>
|
|
{{/if}}
|
|
{{/if}}
|
|
</li>
|
|
{{/each}}
|