:: members section looked like trash.
This commit is contained in:
parent
775cbae281
commit
c539c98191
3 changed files with 24 additions and 10 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue