7ac16604510a9fc405d1f0765f11087c9668ca8e
[pillar-svnman.git] / src / templates / svnman / layout.pug
1 doctype html
2 html(lang="en")
3         head
4                 meta(charset="utf-8")
5                 title {% if self.page_title() %}{% block page_title %}{% endblock %} — {% endif %}SVNman
6                 meta(name="viewport", content="width=device-width, initial-scale=1.0")
7
8                 | {% block head %}{% endblock %}
9
10                 link(href="{{ url_for('static_pillar', filename='assets/css/font-pillar.css') }}", rel="stylesheet")
11                 link(href="{{ url_for('static_svnman', filename='assets/css/main.css') }}", rel="stylesheet")
12                 script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery-3.1.0.min.js')}}")
13                 script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.bootstrap-3.3.7.min.js') }}")
14                 script(src="{{ url_for('static_pillar', filename='assets/js/tutti.min.js') }}")
15                 script.
16                         pillar.utils.initCurrentUser({{ current_user | json | safe }});
17                 script(src="{{ url_for('static_svnman', filename='assets/js/generated/tutti.min.js') }}")
18                 script(src="{{ url_for('static_pillar', filename='assets/js/vendor/clipboard.min.js')}}")
19
20                 link(href="{{ url_for('static_svnman', filename='assets/img/favicon.png') }}", rel="shortcut icon")
21
22                 | {% block style %}{% endblock %}
23
24         body("{% block bodyattrs %}{% endblock %}")
25                 #app-main
26                         #col_sidebar
27                                 nav.sidebar(role='navigation')
28                                         ul
29                                                 li
30                                                         a.navbar-item.cloud(href="{% if project %}{{url_for('projects.view', project_url=project.url)}}{% else %}{{ url_for('main.homepage') }}{% endif %}",
31                                                                 title='Blender Cloud')
32                                                                 i.pi-blender-cloud
33                                                 li
34                                                         a.navbar-item.svnman(href="{{ url_for('svnman.index') }}",
35                                                                 title='SVNman')
36                                                                 i.pi-svnman
37                                         ul.bottom
38
39                                                 | {% include 'menus/notifications.html' %}
40                                                 | {% include 'menus/user.html' %}
41
42                         | {% block body %}
43                         #col_left
44                         #col_main
45                                 h1 Main
46                         #col_right
47                                 h1 Right
48                         | {% endblock %}
49
50                 .modal.fade#modal(role="dialog")
51                         .modal-dialog
52                                 .modal-content
53                                         .modal-header
54                                                 button.close(type="button", data-dismiss="modal", aria-label="Close")
55                                                         i.pi-cancel
56                                                 span.title
57                                         .modal-body
58
59                 script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.select2.min.js') }}", async=true)
60                 script.
61                         {% if project %}
62                         $('.js-help').openModalUrl('Help', "{{ url_for('svnman.help', project_url=project.url) }}");
63                         {% endif %}
64
65                         $(document).ready(function() {
66                                 {% if current_user.is_authenticated %}
67                                         getNotificationsLoop(); // Check for new notifications in the background
68
69                                         // Resize #notifications and change overflow for scrollbars
70                                         $(window).on("resize", function() { notificationsResize(); });
71                                 {% endif %}
72                         });
73
74                         $(window).on('load resize', function(){
75                                 var window_height = $(window).height() - 55; // header is 55px
76                                 $('.col-scrollable').css({'height': window_height});
77                         });
78
79                 | {% block footer_scripts %}{% endblock %}