admin home and user last active viewing

remotes/1693176582716663532/tmp_refs/heads/watchparty
justcool393 2022-10-05 23:27:34 -07:00
parent 039fa606d6
commit 98397e7d3f
2 changed files with 3 additions and 3 deletions

View File

@ -114,7 +114,7 @@
{% endif %}
{% if not err %}
{% if v and v.admin_level > 1 %}
{% if v and v.admin_level >= PERMS['ADMIN_HOME_VISIBLE'] %}
<a class="mobile-nav-icon d-md-none" href="/admin"><i class="fas fa-crown align-middle text-gray-500 black"></i></a>
{% endif %}
@ -159,7 +159,7 @@
</li>
{% endif %}
{% if v.admin_level > 1 %}
{% if v.admin_level >= PERMS['ADMIN_HOME_VISIBLE'] %}
<li class="nav-item d-flex align-items-center justify-content-center text-center mx-1">
<a class="nav-link" href="/admin" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Admin Tools"><i class="fas fa-crown"></i></a>
</li>

View File

@ -29,7 +29,7 @@
<div id="profile--joined">Joined on <span id="profile--joined--time" data-time="{{u.created_utc}}"></span></div>
{% if v.admin_level >= 2 -%}
{% if v.admin_level >= PERMS['VIEW_LAST_ACTIVE'] -%}
<div id="profile--lastactive" class="mt-3">Last active on <span id="profile--lastactive--time" data-time="{{u.last_active}}"></span></div>
{%- endif %}