2022-01-22 00:45:11 +01:00
|
|
|
<div class="micromodal" id="user-profile-modal" data-user-id="{{user_id}}" aria-hidden="true">
|
2021-07-22 17:50:59 +02:00
|
|
|
<div class="modal__overlay" tabindex="-1" data-micromodal-close>
|
|
|
|
<div class="modal__container new-style{{#unless profile_data.length}} no-fields{{/unless}}" role="dialog" aria-modal="true" aria-labelledby="dialog_title">
|
|
|
|
<main class="modal__body" id="body" data-simplebar data-simplebar-auto-hide="false">
|
|
|
|
<button class="modal__close" aria-label="{{t 'Close modal' }}" data-micromodal-close></button>
|
|
|
|
<div id="name">
|
|
|
|
{{full_name}}
|
|
|
|
{{#if is_me}}
|
|
|
|
<a href="/#settings/profile">
|
|
|
|
<i class="fa fa-edit" id="edit-button" aria-hidden="true"></i>
|
|
|
|
</a>
|
2021-06-03 09:36:43 +02:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2021-07-22 17:50:59 +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}}
|
2021-11-21 16:17:01 +01:00
|
|
|
style="background-image: url('{{user_avatar}}');">
|
|
|
|
</div>
|
2021-07-22 17:50:59 +02:00
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
<div id="user-type" class="default-field">
|
|
|
|
<span class="name">{{#tr}}Role{{/tr}}</span>
|
|
|
|
<span class="value">{{user_type}}</span>
|
|
|
|
</div>
|
2022-03-10 14:43:17 +01:00
|
|
|
<div id="date-joined" class="default-field">
|
|
|
|
<span class="name">{{#tr}}Joined{{/tr}}</span>
|
|
|
|
<span class="value">{{date_joined}}</span>
|
|
|
|
</div>
|
2021-07-22 17:50:59 +02:00
|
|
|
<span class="value">{{last_seen}}</span>
|
|
|
|
{{#if user_time}}
|
|
|
|
<div class="default-field">
|
|
|
|
<span class="name">{{#tr}}Local time{{/tr}}</span>
|
|
|
|
<span class="value">{{user_time}}</span>
|
2021-06-03 09:36:43 +02:00
|
|
|
</div>
|
|
|
|
{{/if}}
|
2021-07-22 17:50:59 +02:00
|
|
|
</div>
|
|
|
|
<div id="content">
|
|
|
|
{{#each profile_data}}
|
2021-12-04 15:39:38 +01:00
|
|
|
<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>
|
2021-07-22 17:50:59 +02:00
|
|
|
{{else}}
|
2021-12-04 15:39:38 +01:00
|
|
|
{{#if this.rendered_value}}
|
|
|
|
<div class="value rendered_markdown">{{rendered_markdown this.rendered_value}}</div>
|
|
|
|
{{else}}
|
|
|
|
<div class="value">{{this.value}}</div>
|
|
|
|
{{/if}}
|
2021-07-22 17:50:59 +02:00
|
|
|
{{/if}}
|
2021-12-04 15:39:38 +01:00
|
|
|
</div>
|
2021-07-22 17:50:59 +02:00
|
|
|
{{/each}}
|
|
|
|
</div>
|
2021-06-03 09:36:43 +02:00
|
|
|
</div>
|
|
|
|
|
2021-07-22 17:50:59 +02:00
|
|
|
<div class="tabcontent" id="user-profile-streams-tab">
|
|
|
|
<div class="stream-list-top-section">
|
|
|
|
<div class="header-section">
|
|
|
|
<h3 class="stream-list-header">{{t 'Subscribed streams' }}</h3>
|
|
|
|
</div>
|
|
|
|
<input type="text" class="stream-search" placeholder="{{t 'Filter streams' }}" />
|
|
|
|
<button type="button" class="clear_search_button" id="clear_stream_search">
|
|
|
|
<i class="fa fa-remove" aria-hidden="true"></i>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="alert stream_list_info"></div>
|
|
|
|
<div class="subscription-stream-list">
|
|
|
|
<table class="user-stream-list" data-empty="{{t 'No stream subscriptions.'}}"></table>
|
|
|
|
</div>
|
2021-06-30 18:47:04 +02:00
|
|
|
</div>
|
2021-06-23 09:55:13 +02:00
|
|
|
|
2021-07-22 17:50:59 +02:00
|
|
|
<div class="tabcontent" id="user-profile-groups-tab">
|
|
|
|
<div class="subscription-group-list">
|
|
|
|
<table class="user-group-list" data-empty="{{t 'No user group subscriptions.'}}"></table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-23 09:55:13 +02:00
|
|
|
</div>
|
2021-07-22 17:50:59 +02:00
|
|
|
</main>
|
2018-04-23 20:41:35 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|