Commit 4fe011f8808f81fd2df3810aebcdc17ac6c96dd2
1 parent
aa8195cb
Exists in
master
and in
39 other branches
Updated gitlab workaround
Showing
1 changed file
with
6 additions
and
14 deletions
Show diff stats
src/proxy/templates/proxy/gitlab.html
1 | {% extends 'base.html' %} | 1 | {% extends 'base.html' %} |
2 | +{% load static %} | ||
2 | 3 | ||
3 | {% block head_js %} | 4 | {% block head_js %} |
4 | -<!-- XXX / FIXME: Evil --> | ||
5 | <script type="text/javascript"> | 5 | <script type="text/javascript"> |
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">'); | ||
9 | - $('a').click(function(evt){ | ||
10 | - url = $(this).attr('href'); | ||
11 | - if(url != undefined && url.match(/\/redmine\//)){ window.location = url; } }); | ||
12 | - $('.navbar a').click(function(evt){ | ||
13 | - evt.preventDefault(); | ||
14 | - url = $(this).attr('href'); | ||
15 | - if(url != '#') | ||
16 | - window.location = 'http://beta.softwarepublico.gov.br' + $(this).attr('href'); }); | ||
17 | - $('div.panel-body div.automerge_widget').removeClass('hide'); | ||
18 | - }); | 6 | + $(function(){ |
7 | + $('div.panel-body div.automerge_widget').removeClass('hide'); | ||
8 | + }); | ||
19 | </script> | 9 | </script> |
10 | +<script type="text/javascript" src="{% static 'third-party/bootstrap/js/bootstrap.min.js' %}"></script> | ||
11 | +<script type="text/javascript" src="{% static 'third-party/jquery.cookie.js' %}"></script> | ||
20 | {% endblock %} | 12 | {% endblock %} |