3f54eb26ef241b0c142274c8c5a6c92f83585a4d
[wolnelektury.git] / src / annoy / templates / annoy / banner.html
1 {% if banner %}
2   {% if closable %}
3     <a class='annoy-banner-on annoy-banner-on_{{ banner.place }}'
4        href="{{ banner.url }}"
5        data-target="#annoy-banner-{{ banner.id }}"
6     >
7       {{ banner.open_label }}
8     </a>
9   {% endif %}
10   <div class="annoy-banner annoy-banner_{{ banner.place }}" id="annoy-banner-{{ banner.id }}">
11     <div class="annoy-banner-inner">
12       {% if banner.action_label %}
13         {{ banner.text|safe|linebreaks }}
14         <a class="action" href="{{ banner.url }}">
15           {{ banner.action_label }}
16         </a>
17       {% else %}
18         <a href="{{ banner.url }}">
19           {{ banner.text|safe|linebreaks }}
20         </a>
21       {% endif %}
22       {% if closable %}
23         <a class='annoy-banner-off annoy-banner-off_{{ banner.place }}'>{{ banner.close_label|default:"x" }}</a>
24       {% endif %}
25     </div>
26   </div>
27
28 {% endif %}