Skip to content

Rework clone panel.

gitlab-qa-bot requested to merge fix/hide-ssh-for-public into master

Created by: ghost

Restyle the clone-panel to make buttons look more button-like. Don’t “SSH” button when there is not a user logged in.

This is an extension of PR #5725. This meets the suggestion from http://feedback.gitlab.com/forums/176466-general/suggestions/4968567-correct-url-to-pull-puplic-repos-anonymously-on-pr to only show the "HTTP" option when a user is not logged in.

I have also changed the styling a bit to make the button look more like buttons. I also removed the bold from the selected as it caused resizing of the buttons when the selection changed (due to font width bold vs normal).

This also changes the cursor over the clone URL field to the regular pointer rather than the bootstrap restricted which is applied for readonly fields. I couldn't capture that, as the OS doesn't have the functionality, but it does work.

Here are some captures of the new look.

HTTP selected

http-selected

SSH selected

ssh-selected

Public project with no user logged in

no-ssh

Old HTTP selected

old-http-selected

Old SSH selected

old-ssh-selected

If you look at the old captures, you can see the size of the clone panel has changed slightly.

Merge request reports