Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
0145e8ea
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 搜索 >>
未验证
提交
0145e8ea
编写于
9月 03, 2015
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Set page title based on content in dashboard area
Signed-off-by:
N
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
上级
b0082738
变更
15
隐藏空白更改
内联
并排
Showing
15 changed file
with
30 addition
and
24 deletion
+30
-24
app/views/dashboard/_groups_head.html.haml
app/views/dashboard/_groups_head.html.haml
+1
-1
app/views/dashboard/_projects_head.html.haml
app/views/dashboard/_projects_head.html.haml
+1
-1
app/views/dashboard/activity.html.haml
app/views/dashboard/activity.html.haml
+1
-0
app/views/dashboard/groups/index.html.haml
app/views/dashboard/groups/index.html.haml
+1
-0
app/views/dashboard/issues.html.haml
app/views/dashboard/issues.html.haml
+1
-4
app/views/dashboard/merge_requests.html.haml
app/views/dashboard/merge_requests.html.haml
+2
-4
app/views/dashboard/milestones/index.html.haml
app/views/dashboard/milestones/index.html.haml
+1
-4
app/views/dashboard/projects/starred.html.haml
app/views/dashboard/projects/starred.html.haml
+1
-0
app/views/dashboard/show.html.haml
app/views/dashboard/show.html.haml
+1
-0
app/views/explore/groups/index.html.haml
app/views/explore/groups/index.html.haml
+1
-0
app/views/layouts/dashboard.html.haml
app/views/layouts/dashboard.html.haml
+2
-1
app/views/layouts/explore.html.haml
app/views/layouts/explore.html.haml
+2
-1
app/views/layouts/snippets.html.haml
app/views/layouts/snippets.html.haml
+1
-1
app/views/snippets/current_user_index.html.haml
app/views/snippets/current_user_index.html.haml
+6
-5
app/views/snippets/index.html.haml
app/views/snippets/index.html.haml
+8
-2
未找到文件。
app/views/dashboard/_groups_head.html.haml
浏览文件 @
0145e8ea
...
...
@@ -3,5 +3,5 @@
=
link_to
dashboard_groups_path
,
title:
'Your groups'
,
data:
{
placement:
'right'
}
do
Your Groups
=
nav_link
(
page:
[
explore_groups_path
])
do
=
link_to
explore_groups_path
,
title:
'Explore groups'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom'
}
do
=
link_to
explore_groups_path
,
title:
'Explore groups'
,
data:
{
placement:
'bottom'
}
do
Explore Groups
app/views/dashboard/_projects_head.html.haml
浏览文件 @
0145e8ea
...
...
@@ -6,5 +6,5 @@
=
link_to
starred_dashboard_projects_path
,
title:
'Starred Projects'
,
data:
{
placement:
'right'
}
do
Starred Projects
=
nav_link
(
page:
[
explore_root_path
,
trending_explore_projects_path
,
starred_explore_projects_path
,
explore_projects_path
],
html_options:
{
class:
'hidden-xs'
})
do
=
link_to
explore_root_path
,
title:
'Explore'
,
data:
{
toggle:
'tooltip'
,
placement:
'bottom
'
}
do
=
link_to
explore_root_path
,
title:
'Explore'
,
data:
{
placement:
'right
'
}
do
Explore Projects
app/views/dashboard/activity.html.haml
浏览文件 @
0145e8ea
...
...
@@ -2,6 +2,7 @@
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
dashboard_url
(
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"All activity"
)
-
header_title
"Activity"
,
activity_dashboard_path
=
render
'dashboard/activity_head'
%section
.activities
...
...
app/views/dashboard/groups/index.html.haml
浏览文件 @
0145e8ea
-
page_title
"Groups"
-
header_title
"Groups"
,
dashboard_groups_path
=
render
'dashboard/groups_head'
.gray-content-block
...
...
app/views/dashboard/issues.html.haml
浏览文件 @
0145e8ea
-
page_title
"Issues"
-
header_title
"Issues"
,
issues_dashboard_path
(
assignee_id:
current_user
.
id
)
=
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
%p
.light
List all issues from all projects you have access to.
%hr
.append-bottom-20
.pull-right
...
...
app/views/dashboard/merge_requests.html.haml
浏览文件 @
0145e8ea
-
page_title
"Merge Requests"
%h3
.page-title
Merge Requests
-
header_title
"Merge Requests"
,
merge_requests_dashboard_path
(
assignee_id:
current_user
.
id
)
%p
.light
List all merge requests from all projects you have access to.
%hr
.append-bottom-20
=
render
'shared/issuable/filter'
,
type: :merge_requests
=
render
'shared/merge_requests'
app/views/dashboard/milestones/index.html.haml
浏览文件 @
0145e8ea
-
page_title
"Milestones"
%h3
.page-title
Milestones
%span
.pull-right
#{
@dashboard_milestones
.
count
}
milestones
-
header_title
"Milestones"
,
dashboard_milestones_path
%p
.light
List all milestones from all projects you have access to.
%hr
=
render
'shared/milestones_filter'
.milestones
...
...
app/views/dashboard/projects/starred.html.haml
浏览文件 @
0145e8ea
-
page_title
"Starred Projects"
-
header_title
"Projects"
,
(
current_user
?
root_path
:
explore_root_path
)
=
render
'dashboard/projects_head'
-
if
@projects
.
any?
...
...
app/views/dashboard/show.html.haml
浏览文件 @
0145e8ea
...
...
@@ -2,6 +2,7 @@
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
dashboard_url
(
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"All activity"
)
-
header_title
"Projects"
,
(
current_user
?
root_path
:
explore_root_path
)
=
render
'dashboard/projects_head'
-
if
@last_push
...
...
app/views/explore/groups/index.html.haml
浏览文件 @
0145e8ea
-
page_title
"Groups"
-
header_title
"Groups"
,
(
current_user
?
dashboard_groups_path
:
explore_groups_path
)
-
if
current_user
=
render
'dashboard/groups_head'
.gray-content-block.clearfix
...
...
app/views/layouts/dashboard.html.haml
浏览文件 @
0145e8ea
-
page_title
"Dashboard"
-
header_title
"Dashboard"
,
root_path
-
unless
@header_title
-
header_title
"Dashboard"
,
root_path
-
sidebar
"dashboard"
=
render
template:
"layouts/application"
app/views/layouts/explore.html.haml
浏览文件 @
0145e8ea
-
page_title
"Explore"
-
if
current_user
-
header_title
"Dashboard"
,
root_path
-
unless
@header_title
-
header_title
"Projects"
,
(
current_user
?
root_path
:
explore_root_path
)
-
else
-
header_title
"Explore GitLab"
,
explore_root_path
-
sidebar
"dashboard"
...
...
app/views/layouts/snippets.html.haml
浏览文件 @
0145e8ea
-
page_title
'Snippets'
-
if
current_user
-
header_title
"
Dashboard"
,
root_path
-
header_title
"
Snippets"
,
user_snippets_path
(
current_user
)
-
else
-
header_title
'Snippets'
,
snippets_path
-
sidebar
"dashboard"
...
...
app/views/snippets/current_user_index.html.haml
浏览文件 @
0145e8ea
-
page_title
"Your Snippets"
=
render
'head'
.slead
Share code pastes with others out of git repository
.gray-content-block
.pull-right
=
link_to
new_snippet_path
,
class:
"btn btn-new
btn-sm
"
,
title:
"New Snippet"
do
=
link_to
new_snippet_path
,
class:
"btn btn-new"
,
title:
"New Snippet"
do
Add new snippet
%ul
.nav.nav-tabs
.oneline
Share code pastes with others out of git repository
%ul
.nav.nav-tabs.prepend-top-20
=
nav_tab
:scope
,
nil
do
=
link_to
user_snippets_path
(
@user
)
do
All
...
...
app/views/snippets/index.html.haml
浏览文件 @
0145e8ea
...
...
@@ -2,8 +2,14 @@
-
if
current_user
=
render
'head'
.slead
Public snippets created by you and other users are listed here
.gray-content-block
-
if
current_user
.pull-right
=
link_to
new_snippet_path
,
class:
"btn btn-new"
,
title:
"New Snippet"
do
Add new snippet
.oneline
Public snippets created by you and other users are listed here
=
render
'snippets'
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录