2021-06-03 09:36:43 +02:00
|
|
|
<div id="user-profile-modal" class="modal new-style modal-bg fade{{#unless profile_data.length}} no-fields{{/unless}}"
|
|
|
|
tabindex="-1" 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>
|
2021-06-03 09:36:43 +02:00
|
|
|
<div id="name">
|
|
|
|
{{full_name}}
|
|
|
|
{{#if is_me}}
|
|
|
|
<a href="/#settings/your-account">
|
|
|
|
<i class="fa fa-edit" id="edit-button" aria-hidden="true"></i>
|
|
|
|
</a>
|
2018-10-05 05:29:44 +02:00
|
|
|
{{/if}}
|
2018-04-23 20:41:35 +02:00
|
|
|
</div>
|
2021-06-03 09:36:43 +02:00
|
|
|
<div id="tab-toggle" class="center"></div>
|
|
|
|
<div class="tab-data">
|
|
|
|
<div class="tabcontent active" id="profile-tab">
|
|
|
|
<div id="avatar" {{#if user_is_guest}} class="guest-avatar" {{/if}}
|
|
|
|
style="background-image: url('{{user_avatar}}');"></div>
|
|
|
|
<div id="default-section">
|
|
|
|
{{#if show_email}}
|
|
|
|
<div id="email" class="default-field">
|
|
|
|
<span class="name">{{#tr}}Email{{/tr}}</span>
|
|
|
|
<span class="value">{{email}}</span>
|
2018-12-31 07:45:33 +01:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2021-06-03 09:36:43 +02:00
|
|
|
<div id="date-joined" class="default-field">
|
|
|
|
<span class="name">{{#tr}}Joined{{/tr}}</span>
|
|
|
|
<span class="value">{{date_joined}}</span>
|
|
|
|
</div>
|
|
|
|
<div id="user-type" class="default-field">
|
|
|
|
<span class="name">{{#tr}}Role{{/tr}}</span>
|
|
|
|
<span class="value">{{user_type}}</span>
|
|
|
|
</div>
|
2021-06-11 16:58:11 +02:00
|
|
|
<span class="value">{{last_seen}}</span>
|
2021-06-03 09:36:43 +02:00
|
|
|
{{#if user_time}}
|
|
|
|
<div class="default-field">
|
|
|
|
<span class="name">{{#tr}}Local time{{/tr}}</span>
|
|
|
|
<span class="value">{{user_time}}</span>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
<div id="content">
|
|
|
|
{{#each profile_data}}
|
|
|
|
<div data-type="{{this.type}}" class="field-section custom_user_field" data-field-id="{{this.id}}">
|
|
|
|
<div class="name">{{this.name}}</div>
|
|
|
|
{{#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.is_link}}
|
|
|
|
<a href="{{this.value}}" target="_blank" rel="noopener noreferrer" class="value">{{this.value}}</a>
|
|
|
|
{{else if this.is_external_account}}
|
|
|
|
<a href="{{this.link}}" target="_blank" rel="noopener noreferrer" class="value">{{this.value}}</a>
|
|
|
|
{{else}}
|
|
|
|
{{#if this.rendered_value}}
|
|
|
|
<div class="value rendered_markdown">{{rendered_markdown this.rendered_value}}</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="value">{{this.value}}</div>
|
|
|
|
{{/if}}
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
{{/each}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="subscription-group-list">
|
|
|
|
<div class="tabcontent" id="groups-tab">
|
|
|
|
<table class="user-group-list" data-empty="{{t 'No user group subscriptions.'}}"></table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="tabcontent" id="streams-tab">
|
|
|
|
<table class="user-stream-list" data-empty="{{t 'No stream subscriptions.'}}"></table>
|
|
|
|
</div>
|
2018-10-15 21:58:01 +02:00
|
|
|
</div>
|
2021-06-03 09:36:43 +02:00
|
|
|
|
2018-04-23 20:41:35 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|