X-Git-Url: https://git.mdrn.pl/static.git/blobdiff_plain/4678df00afdffa0ff438fb4dc9885e1d267c88eb..d24bce53fe7f1ea33cf4db93ba6ea19dee2047a4:/layout/scenario.j2 diff --git a/layout/scenario.j2 b/layout/scenario.j2 index 55117ff..8d08e05 100644 --- a/layout/scenario.j2 +++ b/layout/scenario.j2 @@ -1,7 +1,7 @@ {% extends "text.j2" %} {% block mainlink -%} - /#scenariusze + {{ content_url('/') }}#scenariusze {%- 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 %} + + + Pozycja {{ label }} jest {% if p == 1 %}słaba{% elif p == 2 %}średnia{% else %}silna{% endif %}: + +

{%- endmacro %}