gitlab.html 1.33 KB
{% extends 'base.html' %}
{% load static from staticfiles %}

{% block head_css %}
<style>
  /* Reset left and with for .modal-dialog style (like gitlab does), 
     the bootstrap.css one makes it small */
  @media screen and (min-width: 768px) {
    .modal-dialog {
      left: auto;
      width: auto;
    }
  }
  div#main-content {
    margin-top: 65px;
  }

  div#main-content div.container {
    width: 1110px;
  }
  div#main-content div.flash-container{
    width: 85%;
  }
  #breadcrumbs {
    border: 0 !important;
  }

  #right-top-nav {
    margin-right: 5em !important;
  }
</style>
{% endblock %}

{% block head_js %}
<script type="text/javascript">
  jQuery(function(){
    // bootstrap.css forces .hide {display:none!important}, and this makes
    // gitlab .hide elements NEVER have a display:block, so
    // instead of editing bootstrap.css, we just removed '.hide' css class and
    // toggled 
    jQuery('.hide').removeClass('hide').css('display', 'none');

    // Hit the SSH clone button to select it by default
    jQuery(".git-clone-holder .btn:contains('SSH')").click()

  });
</script>
<script type="text/javascript" src="{% static 'third-party/bootstrap/js/bootstrap.min.js' %}"></script>
<script type="text/javascript" src="{% static 'third-party/jquery.cookie.js' %}"></script>
<script>jQuery.noConflict();</script>
{% endblock %}