Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
8917ae39
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,发现更多精彩内容 >>
提交
8917ae39
编写于
4月 21, 2015
作者:
D
Douwe Maan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add atom link tag to every page that has one.
上级
27289599
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
34 addition
and
10 deletion
+34
-10
app/views/dashboard/issues.html.haml
app/views/dashboard/issues.html.haml
+4
-0
app/views/dashboard/show.html.haml
app/views/dashboard/show.html.haml
+4
-0
app/views/groups/issues.html.haml
app/views/groups/issues.html.haml
+4
-0
app/views/groups/show.html.haml
app/views/groups/show.html.haml
+4
-0
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+3
-10
app/views/projects/commits/show.html.haml
app/views/projects/commits/show.html.haml
+4
-0
app/views/projects/issues/index.html.haml
app/views/projects/issues/index.html.haml
+4
-0
app/views/projects/tree/show.html.haml
app/views/projects/tree/show.html.haml
+4
-0
app/views/users/show.html.haml
app/views/users/show.html.haml
+3
-0
未找到文件。
app/views/dashboard/issues.html.haml
浏览文件 @
8917ae39
=
content_for
:meta_tags
do
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
issues_dashboard_url
(
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
current_user
.
name
}
issues"
)
%h3
.page-title
Issues
...
...
app/views/dashboard/show.html.haml
浏览文件 @
8917ae39
=
content_for
:meta_tags
do
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
dashboard_url
(
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"All activity"
)
-
if
@projects
.
any?
.dashboard.row
%section
.activities.col-md-8
...
...
app/views/groups/issues.html.haml
浏览文件 @
8917ae39
=
content_for
:meta_tags
do
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
issues_group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
issues"
)
%h3
.page-title
Issues
...
...
app/views/groups/show.html.haml
浏览文件 @
8917ae39
=
content_for
:meta_tags
do
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
activity"
)
.dashboard
.header-with-avatar.clearfix
=
image_tag
group_icon
(
@group
),
class:
"avatar group-avatar s90"
...
...
app/views/layouts/_head.html.haml
浏览文件 @
8917ae39
...
...
@@ -5,6 +5,7 @@
%title
=
"
#{
title
}
| "
if
defined?
(
title
)
GitLab
=
favicon_link_tag
'favicon.ico'
=
stylesheet_link_tag
"application"
,
:media
=>
"all"
=
stylesheet_link_tag
"print"
,
:media
=>
"print"
...
...
@@ -14,16 +15,8 @@
%meta
{
name:
'viewport'
,
content:
'width=device-width, initial-scale=1, maximum-scale=1'
}
%meta
{
name:
'theme-color'
,
content:
'#474D57'
}
=
yield
(
:meta_tags
)
=
render
'layouts/google_analytics'
if
extra_config
.
has_key?
(
'google_analytics_id'
)
=
render
'layouts/piwik'
if
extra_config
.
has_key?
(
'piwik_url'
)
&&
extra_config
.
has_key?
(
'piwik_site_id'
)
=
render
'layouts/bootlint'
if
Rails
.
env
.
development?
-# Atom feed
-
if
current_user
-
if
controller_name
==
'projects'
&&
action_name
==
'index'
=
auto_discovery_link_tag
:atom
,
projects_url
(
:atom
,
private_token:
current_user
.
private_token
),
title:
"Dashboard feed"
-
if
@project
&&
!
@project
.
new_record?
-
if
current_controller?
(
:tree
,
:commits
)
=
auto_discovery_link_tag
(
:atom
,
namespace_project_commits_url
(
@project
.
namespace
,
@project
,
@ref
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"Recent commits to
#{
@project
.
name
}
:
#{
@ref
}
"
)
-
if
current_controller?
(
:issues
)
=
auto_discovery_link_tag
(
:atom
,
namespace_project_issues_url
(
@project
.
namespace
,
@project
,
:atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@project
.
name
}
issues"
)
app/views/projects/commits/show.html.haml
浏览文件 @
8917ae39
=
content_for
:meta_tags
do
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
namespace_project_commits_url
(
@project
.
namespace
,
@project
,
@ref
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"Recent commits to
#{
@project
.
name
}
:
#{
@ref
}
"
)
=
render
"head"
.tree-ref-holder
...
...
app/views/projects/issues/index.html.haml
浏览文件 @
8917ae39
=
content_for
:meta_tags
do
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
namespace_project_issues_url
(
@project
.
namespace
,
@project
,
:atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@project
.
name
}
issues"
)
.append-bottom-10
.pull-right
.pull-left
...
...
app/views/projects/tree/show.html.haml
浏览文件 @
8917ae39
=
content_for
:meta_tags
do
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
namespace_project_commits_url
(
@project
.
namespace
,
@project
,
@ref
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"Recent commits to
#{
@project
.
name
}
:
#{
@ref
}
"
)
.tree-ref-holder
=
render
'shared/ref_switcher'
,
destination:
'tree'
,
path:
@path
...
...
app/views/users/show.html.haml
浏览文件 @
8917ae39
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
user_url
(
@user
,
format: :atom
),
title:
"Activity feed for
#{
@user
.
name
}
"
)
.row
=
link_to
'#aside'
,
class:
'show-aside'
do
%i
.fa.fa-angle-left
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录