Commit 125e07434c18d5ffb9f5225ffcde55251836b091

Authored by Charles Oliveira
1 parent 46e249cf

Fixed css for colab dropdown menu and gitlab widths

src/proxy/diazo/gitlab.xml
@@ -13,6 +13,15 @@ @@ -13,6 +13,15 @@
13 <after theme-children="/html/head"> 13 <after theme-children="/html/head">
14 <script>jQuery.noConflict();</script> 14 <script>jQuery.noConflict();</script>
15 <style> 15 <style>
  16 + div#main-content{
  17 + margin-top: 50px;
  18 + }
  19 + div#main-content div.container {
  20 + width: 1110px;
  21 + }
  22 + div#main-content div.flash-container{
  23 + width: 85%;
  24 + }
16 #breadcrumbs { 25 #breadcrumbs {
17 border: 0 !important; 26 border: 0 !important;
18 } 27 }
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 %}