Remove v=xxx code from static file URLs
[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='//fonts.googleapis.com/css?family=Roboto:300,400', rel='stylesheet', type='text/css')
11
12                 link(href="{{ url_for('static_pillar', filename='assets/css/vendor/bootstrap.min.css') }}", rel="stylesheet")
13                 link(href="{{ url_for('static_pillar', filename='assets/css/font-pillar.css') }}", rel="stylesheet")
14                 link(href="{{ url_for('static_svnman', filename='assets/css/main.css') }}", rel="stylesheet")
15                 script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery-3.1.0.min.js')}}")
16                 script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.bootstrap-3.3.7.min.js') }}")
17                 script(src="{{ url_for('static_pillar', filename='assets/js/tutti.min.js') }}")
18                 script(src="{{ url_for('static_svnman', filename='assets/js/generated/tutti.min.js') }}")
19                 script(src="{{ url_for('static_pillar', filename='assets/js/vendor/clipboard.min.js')}}")
20
21                 link(href="{{ url_for('static_svnman', filename='assets/img/favicon.png') }}", rel="shortcut icon")
22
23                 | {% block style %}{% endblock %}
24
25         body("{% block bodyattrs %}{% endblock %}")
26                 #app-main
27                         #col_sidebar
28                                 nav.sidebar(role='navigation')
29                                         ul
30                                                 li
31                                                         a.navbar-item.cloud(href="{% if project %}{{url_for('projects.view', project_url=project.url)}}{% else %}{{ url_for('main.homepage') }}{% endif %}",
32                                                                 title='Blender Cloud')
33                                                                 i.pi-blender-cloud
34                                                 li
35                                                         a.navbar-item.svnman(href="{{ url_for('svnman.index') }}",
36                                                                 title='SVNman')
37                                                                 i.pi-svnman
38                                         ul.bottom
39
40                                                 | {% from '_macros/_menu.html' import navigation_menu_notifications, navigation_menu_user %}
41                                                 | {{ navigation_menu_notifications(current_user) }}
42                                                 | {{ navigation_menu_user(current_user) }}
43
44                         | {% block body %}
45                         #col_left
46                         #col_main
47                                 h1 Main
48                         #col_right
49                                 h1 Right
50                         | {% endblock %}
51
52                 .modal.fade#modal(role="dialog")
53                         .modal-dialog
54                                 .modal-content
55                                         .modal-header
56                                                 button.close(type="button", data-dismiss="modal", aria-label="Close")
57                                                         i.pi-cancel
58                                                 span.title
59                                         .modal-body
60
61                 script(src="{{ url_for('static_pillar', filename='assets/js/vendor/jquery.select2.min.js') }}", async=true)
62                 script.
63                         {% if project %}
64                         $('.js-help').openModalUrl('Help', "{{ url_for('svnman.help', project_url=project.url) }}");
65                         {% endif %}
66
67                         $(document).ready(function() {
68                                 {% if current_user.is_authenticated %}
69                                         getNotificationsLoop(); // Check for new notifications in the background
70
71                                         // Resize #notifications and change overflow for scrollbars
72                                         $(window).on("resize", function() { notificationsResize(); });
73                                 {% endif %}
74                         });
75
76                         $(window).on('load resize', function(){
77                                 var window_height = $(window).height() - 55; // header is 55px
78                                 $('.col-scrollable').css({'height': window_height});
79                         });
80
81                 | {% block footer_scripts %}{% endblock %}