Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
3a637d73
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
3a637d73
编写于
5月 07, 2015
作者:
J
Jeroen van Baarsen
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #9239 from Soullivaneuh/git-clone-holder
Fix bootlint issues on git clone holder bar
上级
5b3c823f
f972a9e3
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
30 addition
and
17 deletion
+30
-17
app/assets/stylesheets/base/mixins.scss
app/assets/stylesheets/base/mixins.scss
+4
-0
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+9
-0
app/views/shared/_clone_panel.html.haml
app/views/shared/_clone_panel.html.haml
+17
-17
未找到文件。
app/assets/stylesheets/base/mixins.scss
浏览文件 @
3a637d73
...
...
@@ -21,6 +21,10 @@
@include
border-radius
(
$radius
0
0
$radius
)
}
@mixin
border-radius-right
(
$radius
)
{
@include
border-radius
(
0
0
$radius
$radius
)
}
@mixin
linear-gradient
(
$from
,
$to
)
{
background-image
:
-webkit-gradient
(
linear
,
0
0
,
0
100%
,
from
(
$from
)
,
to
(
$to
));
background-image
:
-webkit-linear-gradient
(
$from
,
$to
);
...
...
app/assets/stylesheets/pages/projects.scss
浏览文件 @
3a637d73
...
...
@@ -102,6 +102,15 @@
.input-group-addon
{
background
:
#FAFAFA
;
&
.git-protocols
{
padding
:
0
;
border
:
none
;
.input-group-btn
:last-child
>
.btn
{
@include
border-radius-right
(
0
);
}
}
}
}
...
...
app/views/shared/_clone_panel.html.haml
浏览文件 @
3a637d73
-
project
=
project
||
@project
.git-clone-holder.input-group
.input-group-
btn
%button
{
|
:type
=>
'button'
,
|
class:
"btn btn-sm #{ 'active' if default_clone_protocol == 'ssh' }#{ ' has_tooltip' if current_user && current_user.require_ssh_key? }"
,
|
:"data-clone"
=>
project
.
ssh_url_to_repo
,
|
:"data-title"
=>
"Add an SSH key to your profile<br> to pull or push via SSH"
,
:"data-html"
=>
"true"
,
:"data-container"
=>
"body"
}
SSH
%button
{
|
:type
=>
'button'
,
|
class:
"btn btn-sm #{ 'active' if default_clone_protocol == 'http' }#{ ' has_tooltip' if current_user && current_user.require_password? }"
,
|
:"data-clone"
=>
project
.
http_url_to_repo
,
|
:"data-title"
=>
"Set a password on your account<br> to pull or push via #{gitlab_config.protocol.upcase}"
,
:"data-html"
=>
"true"
,
:"data-container"
=>
"body"
}
=
gitlab_config
.
protocol
.
upcase
.input-group-
addon.git-protocols
.input-group-btn
%button
{
|
class:
"btn btn-sm #{ 'active' if default_clone_protocol == 'ssh' }#{ ' has_tooltip' if current_user && current_user.require_ssh_key? }"
,
|
:"data-clone"
=>
project
.
ssh_url_to_repo
,
|
:"data-title"
=>
"Add an SSH key to your profile<br> to pull or push via SSH"
,
:"data-html"
=>
"true"
,
:"data-container"
=>
"body"
}
SSH
.input-group-btn
%button
{
|
class:
"btn btn-sm #{ 'active' if default_clone_protocol == 'http' }#{ ' has_tooltip' if current_user && current_user.require_password? }"
,
|
:"data-clone"
=>
project
.
http_url_to_repo
,
|
:"data-title"
=>
"Set a password on your account<br> to pull or push via #{gitlab_config.protocol.upcase}"
,
:"data-html"
=>
"true"
,
:"data-container"
=>
"body"
}
=
gitlab_config
.
protocol
.
upcase
=
text_field_tag
:project_clone
,
default_url_to_repo
(
project
),
class:
"js-select-on-focus form-control input-sm"
,
readonly:
true
-
if
project
.
kind_of?
(
Project
)
.input-group-addon
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录