hexlocation
c539c98191
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
20 lines
869 B
Text
20 lines
869 B
Text
{% 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 %}
|
|
{% 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 %}
|