nginx-proxy-manager/frontend/js/app/ui/header/main.ejs

32 lines
1.6 KiB
Plaintext
Raw Normal View History

2018-06-19 18:48:14 -04:00
<div class="container">
<div class="d-flex">
<a class="navbar-brand" href="/">
2018-07-18 00:28:41 -04:00
<img src="/images/favicons/favicon-32x32.png" border="0"> &nbsp; <%- i18n('main', 'app') %>
2018-06-19 18:48:14 -04:00
</a>
<div class="d-flex align-items-center order-lg-2 ml-auto">
2018-06-19 18:48:14 -04:00
<div class="dropdown">
<a href="#" class="nav-link pr-0 leading-none" data-toggle="dropdown">
<span class="avatar" style="background-image: url(<%- getUserField('avatar', '/images/default-avatar.jpg') %>)"></span>
<span class="ml-2 d-none d-lg-block">
2018-07-18 00:28:41 -04:00
<span class="text-default"><%- getUserField('nickname', null) || getUserField('name', i18n('main', 'unknown-user')) %></span>
2018-06-19 18:48:14 -04:00
<small class="text-muted d-block mt-1"><%- getRole() %></small>
</span>
</a>
<div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow">
<a class="dropdown-item edit-details" href="#">
2018-07-18 02:55:09 -04:00
<i class="dropdown-icon fe fe-user"></i> <%- i18n('users', 'edit-details') %>
</a>
<a class="dropdown-item change-password" href="#">
2018-07-18 02:55:09 -04:00
<i class="dropdown-icon fe fe-lock"></i> <%- i18n('users', 'change-password') %>
2018-06-19 18:48:14 -04:00
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item logout" href="/logout">
<i class="dropdown-icon fe fe-log-out"></i> <%- getLogoutText() %>
</a>
</div>
</div>
</div>
</div>
</div>