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 13 <after theme-children="/html/head">
14 14 <script>jQuery.noConflict();</script>
15 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 25 #breadcrumbs {
17 26 border: 0 !important;
18 27 }
... ...
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 %}
... ...