gitlab.html
1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
{% extends 'base.html' %}
{% load static %}
{% block head_css %}
<style>
div#main-content {
margin-top: 65px;
}
div#main-content div.container {
width: 1110px;
}
div#main-content div.flash-container{
width: 85%;
}
#breadcrumbs {
border: 0 !important;
}
#right-top-nav {
margin-right: 5em !important;
}
</style>
{% endblock %}
{% block head_js %}
<script type="text/javascript">
$(function(){
// By Default Gitlab uses an event listener to stop propagation on any links
// and use HTML5 pseudo navigation. That was causing all links in our
// headers and footers to send the user to the right location but
// applying Gitlab CSS everywhere.
// The workaround below will run before the Gitlab event and will prevent
// it to work.
$('.navbar a, .footer').not('.dropdown-toggle, .browserid-login').on("click",
function(evt) { evt.stopPropagation(); }
);
$('div.panel-body div.automerge_widget').removeClass('hide');
});
</script>
<script type="text/javascript" src="{% static 'third-party/bootstrap/js/bootstrap.min.js' %}"></script>
<script type="text/javascript" src="{% static 'third-party/jquery.cookie.js' %}"></script>
<script>jQuery.noConflict();</script>
{% endblock %}