Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
3f2f40aa
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,发现更多精彩内容 >>
提交
3f2f40aa
编写于
4月 23, 2015
作者:
R
Robert Speicher
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Items with tooltips don't need a 'data-original-title' attribute
Bootstrap's tooltip JS just uses the `title` attribute.
上级
66e23b55
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
21 addition
and
22 deletion
+21
-22
app/views/layouts/_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+21
-22
未找到文件。
app/views/layouts/_head_panel.html.haml
浏览文件 @
3f2f40aa
...
...
@@ -2,48 +2,47 @@
.navbar-inner
.container
%div
.app_logo
=
link_to
root_path
,
class:
"home has_bottom_tooltip"
,
title:
"Dashboard"
do
=
link_to
root_path
,
class:
'home has_bottom_tooltip'
,
title:
'Dashboard'
do
=
brand_header_logo
%h3
GitLab
%h1
.title
=
title
%button
.navbar-toggle
{
"data-target"
=>
".navbar-collapse"
,
"data-toggle"
=>
"collapse"
,
type:
"button"
}
%button
.navbar-toggle
{
type:
'button'
,
data:
{
target:
'.navbar-collapse'
,
toggle:
'collapse'
}
}
%span
.sr-only
Toggle navigation
%i
.fa.fa-bars
=
icon
(
'bars'
)
.navbar-collapse.collapse
%ul
.nav.navbar-nav
%li
.hidden-sm.hidden-xs
=
render
"layouts/search"
=
render
'layouts/search'
%li
.visible-sm.visible-xs
=
link_to
search_path
,
title:
"Search"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Search area
'
do
%i
.fa.fa-search
=
link_to
search_path
,
title:
'Search'
,
class:
'has_bottom_tooltip
'
do
=
icon
(
'search'
)
%li
=
link_to
help_path
,
title:
'Help'
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Help'
do
%i
.fa.fa-question-circle
=
link_to
help_path
,
title:
'Help'
,
class:
'has_bottom_tooltip'
do
=
icon
(
'question-circle'
)
%li
=
link_to
explore_root_path
,
title:
"Explore"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Public area
'
do
%i
.fa.fa-globe
=
link_to
explore_root_path
,
title:
'Explore'
,
class:
'has_bottom_tooltip
'
do
=
icon
(
'globe'
)
%li
=
link_to
user_snippets_path
(
current_user
),
title:
"Your snippets"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Your snippets
'
do
%i
.fa.fa-clipboard
=
link_to
user_snippets_path
(
current_user
),
title:
'Your snippets'
,
class:
'has_bottom_tooltip
'
do
=
icon
(
'clipboard'
)
-
if
current_user
.
is_admin?
%li
=
link_to
admin_root_path
,
title:
"Admin area"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Admin area
'
do
%i
.fa.fa-cogs
=
link_to
admin_root_path
,
title:
'Admin area'
,
class:
'has_bottom_tooltip
'
do
=
icon
(
'cogs'
)
-
if
current_user
.
can_create_project?
%li
=
link_to
new_project_path
,
title:
"New project"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'New project'
do
%i
.fa.fa-plus
=
link_to
new_project_path
,
title:
'New project'
,
class:
'has_bottom_tooltip'
do
=
icon
(
'plus'
)
%li
=
link_to
profile_path
,
title:
"Profile settings"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Profile settings"'
do
%i
.fa.fa-user
=
link_to
profile_path
,
title:
'Profile settings'
,
class:
'has_bottom_tooltip'
do
=
icon
(
'user'
)
%li
=
link_to
destroy_user_session_path
,
class:
"logout"
,
method: :delete
,
title:
"Sign out"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Sign out'
do
%i
.fa.fa-sign-out
=
link_to
destroy_user_session_path
,
class:
'logout'
,
method: :delete
,
title:
'Sign out'
,
class:
'has_bottom_tooltip'
do
=
icon
(
'sign-out'
)
%li
.hidden-xs
=
link_to
current_user
,
class:
"profile-pic has_bottom_tooltip"
,
id:
'profile-pic'
,
'data-original-title'
=>
'Your profile
'
do
=
link_to
current_user
,
class:
'profile-pic has_bottom_tooltip'
,
id:
'profile-pic
'
do
=
image_tag
avatar_icon
(
current_user
.
email
,
60
),
alt:
'User activity'
=
render
'shared/outdated_browser'
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录