:: members section looked like trash.

This commit is contained in:
hexlocation 2024-10-05 01:25:24 +02:00
parent 775cbae281
commit c539c98191
3 changed files with 24 additions and 10 deletions

View file

@ -8,3 +8,13 @@
<p class="service-description">{{description}}</p>
</div>
{% endmacro service %}
{% macro user_display(username, role=0) %}
{% if role == 0 %}
{% set_global prefix = "<p class='prefix' style='color:gray;'>member</p>" %}
{% elif role == 1 %}
{% set_global prefix = "<p class='prefix' style='color:pink;'>friend</p>" %}
{% elif role == 2 %}
{% set_global prefix = "<p class='prefix' style='color:red;'>admin</p>" %}
{% endif %}
<li class="user-display">{{prefix | safe}}<a href="/assets/pgp/{{username}}.txt">{{username}}</a></li>
{% endmacro user_display %}