2d5fe8ea6458a845d9fd12160f15e468bbc067d3
[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               </a>
44             {% endfor %}
45           </div>
46         </div>
47       {% endif %}
48       {% include "registration/head_login.html" %}
49     </ul>
50 </nav>
51
52 <div class="container mt-4 mb-4">
53   {% block content %}
54     <div class="row">
55       <div class="col-lg-8">
56         {% block leftcolumn %}
57         {% endblock leftcolumn %}
58       </div>
59       <div class="col-lg-4">
60         {% block rightcolumn %}
61         {% endblock rightcolumn %}
62       </div>
63     </div>
64   {% endblock content %}
65 </div>
66
67
68 <script
69     src="https://code.jquery.com/jquery-1.9.1.min.js"
70     integrity="sha256-wS9gmOZBqsqWxgIVgA8Y9WcQOa7PgSIX+rPA0VL2rbQ="
71     crossorigin="anonymous"></script>
72 <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
73
74 {% javascript 'documents' %}
75 {% block add_js %}{% endblock %}
76 {% block extrabody %}
77 {% endblock %}
78 </body>
79 </html>