Merge Request #17

Merged
softwarepublico/colab!17
Created by Charles Oliveira

Gitlab hide https

hitting SSH button on clone options, making ssh the default (and unique) option for clone

Assignee: Sergio Oliveira
Milestone: None

Merged by Sergio Oliveira

Source branch has been removed
Commits (3)
2 participants
colab/proxy/gitlab/diazo.xml
... ... @@ -14,4 +14,5 @@
14 14  
15 15 <drop css:content="#top-panel" />
16 16 <drop css:content=".navbar-gitlab" />
  17 + <drop css:content=".git-clone-holder .btn:contains('HTTPS')" />
17 18 </rules>
... ...
colab/proxy/gitlab/templates/proxy/gitlab.html
... ... @@ -39,6 +39,10 @@
39 39 // instead of editing bootstrap.css, we just removed '.hide' css class and
40 40 // toggled
41 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 47 </script>
44 48 <script type="text/javascript" src="{% static 'third-party/bootstrap/js/bootstrap.min.js' %}"></script>
... ...
    9fe63c7bd60deeb55e409a1d7dd173f5?s=40&d=identicon
    Sergio Oliveira started a discussion on the outdated diff
    last updated by Sergio Oliveira
    colab/proxy/gitlab/templates/proxy/gitlab.html
    39 39 // instead of editing bootstrap.css, we just removed '.hide' css class and
    40 40 // toggled
    41 41 $('.hide').removeClass('hide').css('display', 'none');
      42 +
      43 + // When there's clone buttons for HTTPS and SSH, hit SSH and make HTTPS disapear
      44 + if(jQuery('.git-clone-holder button'))
      45 + {
      46 + jQuery('.git-clone-holder button')[0].click();
    1
    9fe63c7bd60deeb55e409a1d7dd173f5?s=40&d=identicon
    Sergio Oliveira started a discussion on the outdated diff
    last updated by Sergio Oliveira
    colab/proxy/gitlab/templates/proxy/gitlab.html
    39 39 // instead of editing bootstrap.css, we just removed '.hide' css class and
    40 40 // toggled
    41 41 $('.hide').removeClass('hide').css('display', 'none');
      42 +
      43 + // When there's clone buttons for HTTPS and SSH, hit SSH and make HTTPS disapear
      44 + if(jQuery('.git-clone-holder button'))
    1
    9fe63c7bd60deeb55e409a1d7dd173f5?s=40&d=identicon
    Sergio Oliveira started a discussion on the outdated diff
    last updated by Sergio Oliveira
    colab/proxy/gitlab/templates/proxy/gitlab.html
    39 39 // instead of editing bootstrap.css, we just removed '.hide' css class and
    40 40 // toggled
    41 41 $('.hide').removeClass('hide').css('display', 'none');
      42 +
      43 + // When there's clone buttons for HTTPS and SSH, hit SSH and make HTTPS disapear
    1