~sircmpwn/meta.sr.ht

ref: 72548bd7545f78670878667674cc7645835a17bd meta.sr.ht/metasrht/templates/tabs.html -rw-r--r-- 1.0 KiB
72548bd7Drew DeVault API: Updates per core-go auth changes 1 year, 1 month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{% macro link(path, title, cls="") %}
<a
  class="nav-link {% if request.path.startswith(path) %}active{% endif %} {{cls}}"
  href="{{ path }}">{{ title }}</a>
{% endmacro %}

<li class="nav-item">
  {{ link("/profile", "profile") }}
</li>
<li class="nav-item">
  {{ link("/security", "security") }}
</li>
<li class="nav-item">
  {{ link("/keys", "keys") }}
</li>
<li class="nav-item">
  {{ link("/privacy", "privacy") }}
</li>
<li class="nav-item">
  {{ link("/oauth", "oauth") }}
</li>
{% if cfg("meta.sr.ht::billing", "enabled") == "yes" %}
<li class="nav-item">
  {% if current_user.user_type == UserType.active_non_paying %}
  {{ link("/billing/initial", "billing") }}
  {% else %}
  {{ link("/billing", "billing") }}
  {% endif %}
</li>
{% endif %}
{% if not allow_registration() %}
<li class="nav-item invite-tab">
  {{ link("/invites", "invites ({})".format(current_user.invites)) }}
</li>
{% endif %}
{% if current_user.user_type == UserType.admin %}
<li class="nav-item">
  {{link("/users", "user admin", cls="text-danger")}}
</li>
{% endif %}