2020-08-12 00:36:09 +00:00
|
|
|
<ul class="navbar-nav ml-auto">
|
|
|
|
<li class="nav-item dropdown">
|
2020-12-06 20:42:49 +00:00
|
|
|
<a class="nav-link count-indicator">
|
2020-09-23 01:42:41 +00:00
|
|
|
<i class="fas fa-broadcast-tower
|
|
|
|
{% if data.get('update_available') %}
|
|
|
|
text-danger
|
|
|
|
{% end %}
|
|
|
|
"></i>
|
2020-09-22 20:17:17 +00:00
|
|
|
<!-- <span class="count bg-success">3</span>-->
|
2020-08-12 00:36:09 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
2020-12-06 20:42:49 +00:00
|
|
|
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a class="nav-link count-indicator" href="/panel/panel_config">
|
|
|
|
<i class="fas fa-cogs"></i>
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
|
2020-09-17 22:49:08 +00:00
|
|
|
<li class="nav-item dropdown user-dropdown">
|
2020-08-12 00:36:09 +00:00
|
|
|
<a class="nav-link dropdown-toggle" id="UserDropdown" href="#" data-toggle="dropdown" aria-expanded="false">
|
2022-01-18 21:44:36 +00:00
|
|
|
<img class="img-xs rounded-circle profile-picture" src="{{ data['user_image'] }}" alt="Profile image"> </a>
|
2020-08-12 00:36:09 +00:00
|
|
|
<div class="dropdown-menu dropdown-menu-right navbar-dropdown" aria-labelledby="UserDropdown">
|
|
|
|
<div class="dropdown-header text-center">
|
2022-01-18 21:44:36 +00:00
|
|
|
<img class="img-md rounded-circle profile-picture" src="{{ data['user_image'] }}" alt="Profile image">
|
2020-08-13 14:38:36 +00:00
|
|
|
<p class="mb-1 mt-3 font-weight-semibold">{{ data['user_data']['username'] }}</p>
|
2021-03-13 22:12:42 +00:00
|
|
|
<p class="font-weight-light text-muted mb-0">Roles: </p>
|
|
|
|
{% for r in data['user_role'] %}
|
|
|
|
<p class="font-weight-light text-muted mb-0">{{ r }}</p>
|
|
|
|
{% end %}
|
2022-01-15 15:38:08 +00:00
|
|
|
{% if data.get('api_key') %}
|
2022-01-15 00:23:50 +00:00
|
|
|
<p class="mt-3">Logged in as API key "{{ data['api_key']['name'] }}"</p>
|
|
|
|
{% end %}
|
2022-01-08 23:03:45 +00:00
|
|
|
<p class="font-weight-light text-muted mb-0">Email: {{ data['user_data']['email'] }}</p>
|
2020-08-12 00:36:09 +00:00
|
|
|
</div>
|
2022-03-14 21:39:19 +00:00
|
|
|
{% if data['user_data']['preparing'] %}
|
2022-03-13 12:29:26 +00:00
|
|
|
<span class="dropdown-item" id="support_progress"><i class="dropdown-item-icon mdi mdi-download-outline text-primary"></i>{{ translate('notify', 'supportLogs', data['lang']) }}<br><br></span>
|
|
|
|
<span class="dropdown-item" id="support_progress"><div class="support_progress" style="height: 15px; width: 100%;">
|
|
|
|
<div class="progress-bar progress-bar-striped progress-bar-animated" id="logs_progress_bar" role="progressbar" style="width:0%;" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100">0%</div>
|
|
|
|
</div></span>
|
|
|
|
{% else %}
|
2022-01-15 04:53:44 +00:00
|
|
|
<a class="dropdown-item" id="support_logs" ><i class="dropdown-item-icon mdi mdi-download-outline text-primary"></i>{{ translate('notify', 'supportLogs', data['lang']) }}</i></a>
|
2022-03-13 12:29:26 +00:00
|
|
|
{% end %}
|
2022-01-15 00:23:50 +00:00
|
|
|
{% if data['superuser'] %}
|
2022-01-15 04:53:44 +00:00
|
|
|
<a class="dropdown-item" href="/panel/activity_logs"><i class="dropdown-item-icon mdi mdi-calendar-check-outline text-primary"></i>{{ translate('notify', 'activityLog', data['lang']) }}</a>
|
2021-09-14 02:02:57 +00:00
|
|
|
{% end %}
|
2022-01-15 04:53:44 +00:00
|
|
|
<a class="dropdown-item" href="/public/logout"><i class="dropdown-item-icon mdi mdi-power text-primary"></i>{{ translate('notify', 'logout', data['lang']) }}</a>
|
2020-08-12 00:36:09 +00:00
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|