X-Git-Url: https://git.mdrn.pl/static.git/blobdiff_plain/4678df00afdffa0ff438fb4dc9885e1d267c88eb..21eed0ac0d0b351135f9a93675ca7fca67faa31a:/layout/scenario.j2 diff --git a/layout/scenario.j2 b/layout/scenario.j2 index 55117ff..a8ff89a 100644 --- a/layout/scenario.j2 +++ b/layout/scenario.j2 @@ -1,7 +1,7 @@ {% extends "text.j2" %} {% block mainlink -%} - /#scenariusze + {{ content_url('/') }}#scenarios {%- endblock %} {% block image -%} @@ -14,20 +14,14 @@ -{% macro pozycja(a, b, c) -%} -
-

Autor: -{% for i in range(0, a) %} - -{% endfor %}

-

Pośrednik: -{% for i in range(0, b) %} - -{% endfor %}

-

Użytkownik: -{% for i in range(0, c) %} - -{% endfor %}

-
+{% macro pozycja(label, p) -%} +

+ + {% for i in range(0, p) %}{% endfor %} + + + Position of the {{ label }} is {% if p == 1 %}weak{% elif p == 2 %}average{% else %}strong{% endif %}: + +

{%- endmacro %}