Commit be0e3dda3610a5d2d8dea08b038ad97fc61a8c92
Committed by
Sergio Oliveira
1 parent
b976941b
Exists in
master
and in
39 other branches
Fixed css for colab dropdown menu and gitlab widths
Showing
1 changed file
with
2 additions
and
6 deletions
Show diff stats
src/proxy/templates/proxy/gitlab.html
1 | 1 | {% extends 'base.html' %} |
2 | 2 | |
3 | - | |
4 | 3 | {% block head_js %} |
5 | 4 | <!-- XXX / FIXME: Evil --> |
6 | 5 | <script type="text/javascript"> |
7 | - if(window.location.href.match(/\/gitlab\//)) | |
8 | - { | |
9 | - $('body').append('<script type="text/javascript" src="/static/third-party/bootstrap/js/bootstrap.min.js">'); | |
10 | - $('body').append('<script type="text/javascript" src="/static/third-party/jquery.cookie.js">'); | |
11 | 6 | $(function(){ |
7 | + $('body').append('<script type="text/javascript" src="/static/third-party/bootstrap/js/bootstrap.min.js">'); | |
8 | + $('body').append('<script type="text/javascript" src="/static/third-party/jquery.cookie.js">'); | |
12 | 9 | $('a').click(function(evt){ |
13 | 10 | url = $(this).attr('href'); |
14 | 11 | if(url != undefined && url.match(/\/redmine\//)){ window.location = url; } }); |
... | ... | @@ -19,6 +16,5 @@ |
19 | 16 | window.location = 'http://beta.softwarepublico.gov.br' + $(this).attr('href'); }); |
20 | 17 | $('div.panel-body div.automerge_widget').removeClass('hide'); |
21 | 18 | }); |
22 | - } | |
23 | 19 | </script> |
24 | 20 | {% endblock %} | ... | ... |