ba28310a4dc8efea6f2e1b9c3ab97f032ffe48c2
[redakcja.git] / src / documents / templates / documents / base.html
1 <!DOCTYPE html>
2 {% load pipeline i18n %}
3 {% load static %}
4 {% load documents %}
5 {% load alerts %}
6 <!DOCTYPE html>
7 <html>
8 <head lang="{{ LANGUAGE_CODE }}">
9     <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
10     <link rel="icon" href="{{ STATIC_URL }}img/pr-icon.png" type="image/png" />
11     <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
12     {% stylesheet 'documents' %}
13     <title>{% block title %}{% block titleextra %}{% endblock %} ::
14         {% trans "Platforma Redakcyjna" %}{% endblock title %}</title>
15     {% block add_css %}{% endblock %}
16 </head>
17 <body>
18 <!--#include file='/pozor.html'-->
19
20
21 <nav class="navbar navbar-expand-md navbar-dark bg-dark">
22   <a class="navbar-brand" href="{% url 'documents_document_list' %}">
23           <img src="{% static "img/wl-orange.png" %}" alt="Platforma">
24   </a>
25   <ul class="navbar-nav mr-auto">
26         {% main_tabs %}
27     </ul>
28
29     <ul class="navbar-nav">
30
31       {% get_alerts as alerts %}
32       {% if alerts.count %}
33         <div class="nav-item dropdown">
34           <a class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" title="Alert">
35             ðŸ””
36             <span class="badge badge-danger">{{ alerts.count }}</span>
37           </a>
38           <div class="dropdown-menu dropdown-menu-right">
39             {% for alert in alerts.items %}
40               <a class="dropdown-item" href="{{ alert.book.get_absolute_url }}">
41                 {{ alert.book }}<br>
42                 {{ alert.rule.description }}
43                 {% if alert.comment %}
44                   <br><small>{{ alert.comment }}</small>
45                 {% endif %}
46               </a>
47             {% endfor %}
48           </div>
49         </div>
50       {% endif %}
51       {% include "registration/head_login.html" %}
52     </ul>
53 </nav>
54
55 <div class="container mt-4 mb-4">
56   {% block content %}
57     <div class="row">
58       <div class="col-lg-8">
59         {% block leftcolumn %}
60         {% endblock leftcolumn %}
61       </div>
62       <div class="col-lg-4">
63         {% block rightcolumn %}
64         {% endblock rightcolumn %}
65       </div>
66     </div>
67   {% endblock content %}
68 </div>
69
70
71 <script
72     src="https://code.jquery.com/jquery-1.9.1.min.js"
73     integrity="sha256-wS9gmOZBqsqWxgIVgA8Y9WcQOa7PgSIX+rPA0VL2rbQ="
74     crossorigin="anonymous"></script>
75 <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
76
77 {% javascript 'documents' %}
78 {% block add_js %}{% endblock %}
79 {% block extrabody %}
80 {% endblock %}
81 </body>
82 </html>