Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
b0d790ef
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,发现更多精彩内容 >>
提交
b0d790ef
编写于
4月 10, 2018
作者:
C
Clement Ho
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[skip ci] Add nav converted classes
上级
917a4e7d
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
18 addition
and
18 deletion
+18
-18
app/views/layouts/header/_default.html.haml
app/views/layouts/header/_default.html.haml
+12
-12
app/views/projects/_stat_anchor_list.html.haml
app/views/projects/_stat_anchor_list.html.haml
+2
-2
spec/javascripts/fixtures/linked_tabs.html.haml
spec/javascripts/fixtures/linked_tabs.html.haml
+4
-4
未找到文件。
app/views/layouts/header/_default.html.haml
浏览文件 @
b0d790ef
...
...
@@ -21,36 +21,36 @@
-
if
current_user
=
render
'layouts/header/new_dropdown'
-
if
header_link?
(
:search
)
%li
.d-none.d-sm-none.d-md-block
%li
.
nav-item.
d-none.d-sm-none.d-md-block
=
render
'layouts/search'
unless
current_controller?
(
:search
)
%li
.d-inline-block.d-sm-none.d-md-none
=
link_to
search_path
,
title:
'Search'
,
aria:
{
label:
"Search"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
%li
.
nav-item.
d-inline-block.d-sm-none.d-md-none
=
link_to
search_path
,
title:
'Search'
,
aria:
{
label:
"Search"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
,
class:
'nav-link'
}
do
=
sprite_icon
(
'search'
,
size:
16
)
-
if
header_link?
(
:issues
)
=
nav_link
(
path:
'dashboard#issues'
,
html_options:
{
class:
"user-counter"
})
do
=
nav_link
(
path:
'dashboard#issues'
,
html_options:
{
class:
"
nav-link
user-counter"
})
do
=
link_to
assigned_issues_dashboard_path
,
title:
'Issues'
,
class:
'dashboard-shortcuts-issues'
,
aria:
{
label:
"Issues"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
sprite_icon
(
'issues'
,
size:
16
)
-
issues_count
=
assigned_issuables_count
(
:issues
)
%span
.badge.badge-pill.issues-count
{
class:
(
'hidden'
if
issues_count
.
zero?
)
}
=
number_with_delimiter
(
issues_count
)
-
if
header_link?
(
:merge_requests
)
=
nav_link
(
path:
'dashboard#merge_requests'
,
html_options:
{
class:
"user-counter"
})
do
=
nav_link
(
path:
'dashboard#merge_requests'
,
html_options:
{
class:
"
nav-link
user-counter"
})
do
=
link_to
assigned_mrs_dashboard_path
,
title:
'Merge requests'
,
class:
'dashboard-shortcuts-merge_requests'
,
aria:
{
label:
"Merge requests"
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
sprite_icon
(
'git-merge'
,
size:
16
)
-
merge_requests_count
=
assigned_issuables_count
(
:merge_requests
)
%span
.badge.badge-pill.merge-requests-count
{
class:
(
'hidden'
if
merge_requests_count
.
zero?
)
}
=
number_with_delimiter
(
merge_requests_count
)
-
if
header_link?
(
:todos
)
=
nav_link
(
controller:
'dashboard/todos'
,
html_options:
{
class:
"user-counter"
})
do
=
nav_link
(
controller:
'dashboard/todos'
,
html_options:
{
class:
"
nav-link
user-counter"
})
do
=
link_to
dashboard_todos_path
,
title:
'Todos'
,
aria:
{
label:
"Todos"
},
class:
'shortcuts-todos'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
sprite_icon
(
'todo-done'
,
size:
16
)
%span
.badge.badge-pill.todos-count
{
class:
(
'hidden'
if
todos_pending_count
.
zero?
)
}
=
todos_count_format
(
todos_pending_count
)
-
if
header_link?
(
:user_dropdown
)
%li
.header-user.dropdown
%li
.
nav-item.
header-user.dropdown
=
link_to
current_user
,
class:
user_dropdown_class
,
data:
{
toggle:
"dropdown"
}
do
=
image_tag
avatar_icon_for_user
(
current_user
,
23
),
width:
23
,
height:
23
,
class:
"header-user-avatar qa-user-avatar"
=
image_tag
avatar_icon_for_user
(
current_user
,
23
),
width:
23
,
height:
23
,
class:
"
nav-link
header-user-avatar qa-user-avatar"
=
sprite_icon
(
'angle-down'
,
css_class:
'caret-down'
)
.dropdown-menu-nav.dropdown-menu-align-right
%ul
...
...
@@ -70,13 +70,13 @@
%li
=
link_to
"Sign out"
,
destroy_user_session_path
,
class:
"sign-out-link"
-
if
header_link?
(
:admin_impersonation
)
%li
.impersonation
=
link_to
admin_impersonation_path
,
class:
'impersonation-btn'
,
method: :delete
,
title:
"Stop impersonation"
,
aria:
{
label:
'Stop impersonation'
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
%li
.
nav-item.
impersonation
=
link_to
admin_impersonation_path
,
class:
'
nav-link
impersonation-btn'
,
method: :delete
,
title:
"Stop impersonation"
,
aria:
{
label:
'Stop impersonation'
},
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
,
container:
'body'
}
do
=
icon
(
'user-secret'
)
-
if
header_link?
(
:sign_in
)
%li
%li
.nav-item
%div
=
link_to
"Sign in / Register"
,
new_session_path
(
:user
,
redirect_to_referer:
'yes'
),
class:
'btn btn-sign-in'
=
link_to
"Sign in / Register"
,
new_session_path
(
:user
,
redirect_to_referer:
'yes'
),
class:
'
nav-link
btn btn-sign-in'
%button
.navbar-toggler.d-block.d-sm-none
{
type:
'button'
}
%span
.sr-only
Toggle navigation
...
...
app/views/projects/_stat_anchor_list.html.haml
浏览文件 @
b0d790ef
...
...
@@ -3,6 +3,6 @@
-
return
unless
anchors
.
any?
%ul
.nav
-
anchors
.
each
do
|
anchor
|
%li
=
link_to_if
anchor
.
link
,
anchor
.
label
,
anchor
.
link
,
class:
anchor
.
enabled
?
'
stat-link'
:
"
btn btn-
#{
anchor
.
class_modifier
||
'missing'
}
"
do
%li
.nav-item
=
link_to_if
anchor
.
link
,
anchor
.
label
,
anchor
.
link
,
class:
anchor
.
enabled
?
'
nav-link stat-link'
:
"nav-link
btn btn-
#{
anchor
.
class_modifier
||
'missing'
}
"
do
%span
.stat-text
=
anchor
.
label
spec/javascripts/fixtures/linked_tabs.html.haml
浏览文件 @
b0d790ef
%ul
.nav.nav-tabs.linked-tabs
%li
%a
{
href:
'foo/bar/1'
,
data:
{
target:
'div#tab1'
,
action:
'tab1'
,
toggle:
'tab'
}
}
%li
.nav-item
%a
.nav-link
{
href:
'foo/bar/1'
,
data:
{
target:
'div#tab1'
,
action:
'tab1'
,
toggle:
'tab'
}
}
Tab 1
%li
%a
{
href:
'foo/bar/1/context'
,
data:
{
target:
'div#tab2'
,
action:
'tab2'
,
toggle:
'tab'
}
}
%li
.nav-item
%a
.nav-link
{
href:
'foo/bar/1/context'
,
data:
{
target:
'div#tab2'
,
action:
'tab2'
,
toggle:
'tab'
}
}
Tab 2
.tab-content
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录