debian-mirror-gitlab/app/views/shared/_clone_panel.html.haml

27 lines
1.4 KiB
Text
Raw Normal View History

2014-09-02 18:07:02 +05:30
- project = project || @project
.git-clone-holder.input-group
2015-09-11 14:41:01 +05:30
.input-group-addon.git-protocols
.input-group-btn
%button{ |
type: 'button', |
2015-09-25 12:07:36 +05:30
class: "btn #{ 'active' if default_clone_protocol == 'ssh' }#{ ' has_tooltip' if current_user && current_user.require_ssh_key? }", |
2015-09-11 14:41:01 +05:30
:"data-clone" => project.ssh_url_to_repo, |
2015-10-24 18:46:33 +05:30
:"data-title" => "Add an SSH key to your profile<br> to pull or push via SSH.",
2015-09-11 14:41:01 +05:30
:"data-html" => "true",
:"data-container" => "body"}
SSH
.input-group-btn
%button{ |
type: 'button', |
2015-09-25 12:07:36 +05:30
class: "btn #{ 'active' if default_clone_protocol == 'http' }#{ ' has_tooltip' if current_user && current_user.require_password? }", |
2015-09-11 14:41:01 +05:30
:"data-clone" => project.http_url_to_repo, |
2015-10-24 18:46:33 +05:30
:"data-title" => "Set a password on your account<br> to pull or push via #{gitlab_config.protocol.upcase}.",
2015-09-11 14:41:01 +05:30
:"data-html" => "true",
:"data-container" => "body"}
= gitlab_config.protocol.upcase
2015-09-25 12:07:36 +05:30
= text_field_tag :project_clone, default_url_to_repo(project), class: "js-select-on-focus form-control", readonly: true
2015-04-26 12:48:37 +05:30
- if project.kind_of?(Project)
2015-11-26 14:37:03 +05:30
.input-group-addon.has_tooltip{title: "#{visibility_level_label(project.visibility_level)} project", data: { container: "body" } }
.visibility-level-label
2015-04-26 12:48:37 +05:30
= visibility_level_icon(project.visibility_level)