Commit 4b4c1cff9173573ccfc331a04a37839fca7add64

Authored by Sergio Oliveira
2 parents 894e1123 bfd65ee1

Merge branch 'gitlab-hide-https' into 'master'

Gitlab hide https

hitting SSH button on clone options, making ssh the default (and unique) option for clone
colab/proxy/gitlab/diazo.xml
@@ -14,4 +14,5 @@ @@ -14,4 +14,5 @@
14 14
15 <drop css:content="#top-panel" /> 15 <drop css:content="#top-panel" />
16 <drop css:content=".navbar-gitlab" /> 16 <drop css:content=".navbar-gitlab" />
  17 + <drop css:content=".git-clone-holder .btn:contains('HTTPS')" />
17 </rules> 18 </rules>
colab/proxy/gitlab/templates/proxy/gitlab.html
@@ -39,6 +39,10 @@ @@ -39,6 +39,10 @@
39 // instead of editing bootstrap.css, we just removed '.hide' css class and 39 // instead of editing bootstrap.css, we just removed '.hide' css class and
40 // toggled 40 // toggled
41 $('.hide').removeClass('hide').css('display', 'none'); 41 $('.hide').removeClass('hide').css('display', 'none');
  42 +
  43 + // Hit the SSH clone button to select it by default
  44 + jQuery$(".git-clone-holder .btn:contains('SSH')").click()
  45 +
42 }); 46 });
43 </script> 47 </script>
44 <script type="text/javascript" src="{% static 'third-party/bootstrap/js/bootstrap.min.js' %}"></script> 48 <script type="text/javascript" src="{% static 'third-party/bootstrap/js/bootstrap.min.js' %}"></script>