2024-10-05 00:48:55 +02:00
|
|
|
{% macro service(title, description, href, img, h="16") %}
|
|
|
|
<div class="service-container">
|
|
|
|
<p class="service-title">
|
|
|
|
<img class="service-icon" src="{{img}}" height="{{h}}" >
|
|
|
|
<a href="{{href}}" class="service-link">{{title}}</a>
|
|
|
|
</p>
|
|
|
|
<hr />
|
|
|
|
<p class="service-description">{{description}}</p>
|
|
|
|
</div>
|
|
|
|
{% endmacro service %}
|
2024-10-05 01:25:24 +02:00
|
|
|
{% 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 %}
|