2019-05-21 04:25:21 +02:00
|
|
|
<div id="user-profile-modal" class="modal modal-bg fade{{#unless profile_data.length}} no-fields{{/unless}}" tabindex="-1"
|
2018-10-05 05:29:44 +02:00
|
|
|
role="dialog" aria-labelledby="user_profile_modal label" aria-hidden="true">
|
2019-05-29 22:07:05 +02:00
|
|
|
<div class="modal-body" id="body" data-simplebar data-simplebar-auto-hide="false">
|
2018-04-23 20:41:35 +02:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="{{t 'Close' }}">
|
2018-10-05 05:29:44 +02:00
|
|
|
<span aria-hidden="true" id="exit-sign">×</span>
|
2018-04-23 20:41:35 +02:00
|
|
|
</button>
|
2018-12-18 02:25:07 +01:00
|
|
|
<div id="avatar"{{#if user_is_guest}} class="guest-avatar"{{/if}} style="background-image: url('{{user_avatar}}');" ></div>
|
2018-10-05 05:29:44 +02:00
|
|
|
<div id="default-section">
|
|
|
|
<div id="name">
|
2018-05-24 20:56:53 +02:00
|
|
|
{{full_name}}
|
|
|
|
{{#if is_me}}
|
|
|
|
<a href="/#settings/your-account">
|
2018-10-05 05:29:44 +02:00
|
|
|
<i class="fa fa-edit" id="edit-button" aria-hidden="true"></i>
|
2018-05-24 20:56:53 +02:00
|
|
|
</a>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
2021-04-21 00:46:14 +02:00
|
|
|
<br />
|
2019-04-20 18:08:29 +02:00
|
|
|
{{#if show_email}}
|
2018-10-05 05:29:44 +02:00
|
|
|
<div id="email" class="default-field">
|
2021-04-14 03:04:02 +02:00
|
|
|
<span class="name">{{#tr}}Email{{/tr}}</span>
|
2018-10-05 05:29:44 +02:00
|
|
|
<span class="value">{{email}}</span>
|
2018-05-24 20:56:53 +02:00
|
|
|
</div>
|
2019-04-20 18:08:29 +02:00
|
|
|
{{/if}}
|
2018-10-05 05:29:44 +02:00
|
|
|
<div id="date-joined" class="default-field">
|
2021-04-14 03:04:02 +02:00
|
|
|
<span class="name">{{#tr}}Joined{{/tr}}</span>
|
2018-10-05 05:29:44 +02:00
|
|
|
<span class="value">{{date_joined}}</span>
|
|
|
|
</div>
|
2018-11-02 19:54:58 +01:00
|
|
|
<div id="user-type" class="default-field">
|
2021-04-14 03:04:02 +02:00
|
|
|
<span class="name">{{#tr}}Role{{/tr}}</span>
|
2018-11-02 19:54:58 +01:00
|
|
|
<span class="value">{{user_type}}</span>
|
|
|
|
</div>
|
2018-10-05 05:29:44 +02:00
|
|
|
<div class="default-field">
|
2021-04-14 03:04:02 +02:00
|
|
|
<span class="name">{{#tr}}Last active{{/tr}}</span>
|
2018-10-05 05:29:44 +02:00
|
|
|
<span class="value">{{last_seen}}</span>
|
|
|
|
</div>
|
|
|
|
{{#if user_time}}
|
|
|
|
<div class="default-field">
|
2021-04-14 03:04:02 +02:00
|
|
|
<span class="name">{{#tr}}Local time{{/tr}}</span>
|
2018-10-05 05:29:44 +02:00
|
|
|
<span class="value">{{user_time}}</span>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-04-23 20:41:35 +02:00
|
|
|
</div>
|
2021-04-21 00:46:14 +02:00
|
|
|
<hr />
|
2018-10-05 05:29:44 +02:00
|
|
|
<div id="content">
|
2018-04-23 20:41:35 +02:00
|
|
|
{{#each profile_data}}
|
2018-09-07 12:58:34 +02:00
|
|
|
<div data-type="{{this.type}}" class="field-section custom_user_field" data-field-id="{{this.id}}">
|
2018-10-15 21:58:01 +02:00
|
|
|
<div class="name">{{this.name}}</div>
|
|
|
|
{{#if this.is_user_field}}
|
2018-12-31 07:45:33 +01:00
|
|
|
<div class="pill-container not-editable" data-field-id="{{this.id}}">
|
|
|
|
<div class="input" contenteditable="false" style="display: none;"></div>
|
|
|
|
</div>
|
|
|
|
{{else if this.is_link}}
|
2020-05-26 05:15:21 +02:00
|
|
|
<a href="{{this.value}}" target="_blank" rel="noopener noreferrer" class="value">{{this.value}}</a>
|
2019-05-27 10:59:55 +02:00
|
|
|
{{else if this.is_external_account}}
|
2020-05-26 05:15:21 +02:00
|
|
|
<a href="{{this.link}}" target="_blank" rel="noopener noreferrer" class="value">{{this.value}}</a>
|
2018-10-15 21:58:01 +02:00
|
|
|
{{else}}
|
2018-12-31 07:45:33 +01:00
|
|
|
{{#if this.rendered_value}}
|
2020-02-28 23:59:07 +01:00
|
|
|
<div class="value rendered_markdown">{{rendered_markdown this.rendered_value}}</div>
|
2018-12-31 07:45:33 +01:00
|
|
|
{{else}}
|
|
|
|
<div class="value">{{this.value}}</div>
|
|
|
|
{{/if}}
|
2018-04-23 20:41:35 +02:00
|
|
|
{{/if}}
|
2018-10-15 21:58:01 +02:00
|
|
|
</div>
|
2018-04-23 20:41:35 +02:00
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|