fix
[wolnelektury.git] / src / annoy / templates / annoy / banner_top.html
1 {% load l10n %}
2
3 {% if banner %}
4 <div class="
5             annoy-banner_{{ banner.place }}-container
6             annoy-banner-style_{{ banner.style }}
7             ">
8   <div class="
9               annoy-banner
10               annoy-banner_{{ banner.place }}
11               {% if banner.image %}with-image{% endif %}
12               {% if banner.smallfont %}banner-smallfont{% endif %}
13               "
14         id="annoy-banner-{{ banner.id }}"
15         style="
16            {% if banner.text_color %}color: {{ banner.text_color }};{% endif %}
17            {% if banner.background_color %}background-color: {{ banner.background_color }};{% endif %}
18
19         ">
20     <div class="annoy-banner-inner">
21
22       <div class="image-box">
23         {% if banner.image %}
24         <img src="{{ banner.image.url }}">
25         {% endif %}
26       </div>
27
28       <div class="text-box">
29         <div class="text">
30           {{ banner.get_text|safe|linebreaks }}
31         </div>
32
33         <div class="state-box">
34           <div class="action-box">
35             {% if banner.action_label %}
36             <a class="action" href="{{ banner.url }}">
37               {{ banner.action_label }}
38             </a>
39             {% endif %}
40           </div>
41         </div>
42       </div>
43
44
45
46     </div>
47   </div>
48   </div>
49
50 {% endif %}
51