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 | {% extends 'base.html' %} | 1 | {% extends 'base.html' %} |
2 | 2 | ||
3 | - | ||
4 | {% block head_js %} | 3 | {% block head_js %} |
5 | <!-- XXX / FIXME: Evil --> | 4 | <!-- XXX / FIXME: Evil --> |
6 | <script type="text/javascript"> | 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 | $(function(){ | 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 | $('a').click(function(evt){ | 9 | $('a').click(function(evt){ |
13 | url = $(this).attr('href'); | 10 | url = $(this).attr('href'); |
14 | if(url != undefined && url.match(/\/redmine\//)){ window.location = url; } }); | 11 | if(url != undefined && url.match(/\/redmine\//)){ window.location = url; } }); |
@@ -19,6 +16,5 @@ | @@ -19,6 +16,5 @@ | ||
19 | window.location = 'http://beta.softwarepublico.gov.br' + $(this).attr('href'); }); | 16 | window.location = 'http://beta.softwarepublico.gov.br' + $(this).attr('href'); }); |
20 | $('div.panel-body div.automerge_widget').removeClass('hide'); | 17 | $('div.panel-body div.automerge_widget').removeClass('hide'); |
21 | }); | 18 | }); |
22 | - } | ||
23 | </script> | 19 | </script> |
24 | {% endblock %} | 20 | {% endblock %} |