<nav class="tabs self-tabs" id="self-tabs">
  <a href="/self" class="nav-link tab-link {% if request.url.path.endswith('self/') %}current{% endif %}">Profile</a>
  {% if current_account.has_scope("review") %}
    <a href="/self/review" class="nav-link tab-link {% if 'review' in request.url.path %}current{% endif %}">Review</a>
  {% endif %}
  {% if current_account.has_scope("admin") %}
    <a href="/self/admin" class="nav-link tab-link {% if 'admin' in request.url.path %}current{% endif %}">Admin</a>
  {% endif %}
  {% if current_account.has_scope("review") %}
  <a href="/self/log" class="nav-link tab-link {% if 'log' in request.url.path %}current{% endif %}">Audit Log</a>
  {% endif %}
</nav>