2018-10-15 21:58:01 +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">
|
|
|
|
<div class="modal-body" id="body">
|
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>
|
2018-10-05 05:29:44 +02:00
|
|
|
<br>
|
|
|
|
<div id="email" class="default-field">
|
|
|
|
<span class="name">{{#tr this}}Email{{/tr}}</span>
|
|
|
|
<span class="value">{{email}}</span>
|
2018-05-24 20:56:53 +02:00
|
|
|
</div>
|
2018-10-05 05:29:44 +02:00
|
|
|
<div id="date-joined" class="default-field">
|
|
|
|
<span class="name">{{#tr this}}Joined{{/tr}}</span>
|
|
|
|
<span class="value">{{date_joined}}</span>
|
|
|
|
</div>
|
2018-11-02 19:54:58 +01:00
|
|
|
<div id="user-type" class="default-field">
|
|
|
|
<span class="name">{{#tr this}}Role{{/tr}}</span>
|
|
|
|
<span class="value">{{user_type}}</span>
|
|
|
|
</div>
|
2018-10-05 05:29:44 +02:00
|
|
|
<div class="default-field">
|
2019-03-13 19:19:51 +01:00
|
|
|
<span class="name">{{#tr this}}Last online{{/tr}}</span>
|
2018-10-05 05:29:44 +02:00
|
|
|
<span class="value">{{last_seen}}</span>
|
|
|
|
</div>
|
|
|
|
{{#if user_time}}
|
|
|
|
<div class="default-field">
|
|
|
|
<span class="name">{{#tr this}}Local time{{/tr}}</span>
|
|
|
|
<span class="value">{{user_time}}</span>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2018-04-23 20:41:35 +02:00
|
|
|
</div>
|
2018-10-05 05:29:44 +02:00
|
|
|
<hr>
|
|
|
|
<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}}
|
|
|
|
<a href={{this.value}} target="_blank" 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}}
|
|
|
|
<div class="value">{{{this.rendered_value}}}</div>
|
|
|
|
{{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>
|