gitlab.html
1.33 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
47
48
49
50
51
{% extends 'base.html' %}
{% load static from staticfiles %}
{% block head_css %}
<style>
/* Reset left and with for .modal-dialog style (like gitlab does),
the bootstrap.css one makes it small */
@media screen and (min-width: 768px) {
.modal-dialog {
left: auto;
width: auto;
}
}
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">
jQuery(function(){
// bootstrap.css forces .hide {display:none!important}, and this makes
// gitlab .hide elements NEVER have a display:block, so
// instead of editing bootstrap.css, we just removed '.hide' css class and
// toggled
jQuery('.hide').removeClass('hide').css('display', 'none');
// Hit the SSH clone button to select it by default
jQuery(".git-clone-holder .btn:contains('SSH')").click()
});
</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 %}