Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
d89ae7df
Commit
d89ae7df
authored
Sep 17, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move project header title definition to view in question.
parent
f4816372
Changes
64
Hide whitespace changes
Inline
Side-by-side
Showing
64 changed files
with
103 additions
and
53 deletions
+103
-53
app/helpers/groups_helper.rb
app/helpers/groups_helper.rb
+5
-5
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+0
-35
app/views/groups/milestones/_header_title.html.haml
app/views/groups/milestones/_header_title.html.haml
+1
-0
app/views/groups/milestones/show.html.haml
app/views/groups/milestones/show.html.haml
+2
-0
app/views/layouts/dashboard.html.haml
app/views/layouts/dashboard.html.haml
+1
-2
app/views/layouts/group.html.haml
app/views/layouts/group.html.haml
+2
-3
app/views/layouts/group_settings.html.haml
app/views/layouts/group_settings.html.haml
+1
-0
app/views/layouts/profile.html.haml
app/views/layouts/profile.html.haml
+1
-2
app/views/layouts/project.html.haml
app/views/layouts/project.html.haml
+2
-2
app/views/layouts/project_settings.html.haml
app/views/layouts/project_settings.html.haml
+1
-0
app/views/projects/activity.html.haml
app/views/projects/activity.html.haml
+2
-0
app/views/projects/blame/show.html.haml
app/views/projects/blame/show.html.haml
+2
-0
app/views/projects/blob/_header_title.html.haml
app/views/projects/blob/_header_title.html.haml
+1
-0
app/views/projects/blob/edit.html.haml
app/views/projects/blob/edit.html.haml
+2
-0
app/views/projects/blob/new.html.haml
app/views/projects/blob/new.html.haml
+3
-0
app/views/projects/blob/show.html.haml
app/views/projects/blob/show.html.haml
+1
-0
app/views/projects/branches/index.html.haml
app/views/projects/branches/index.html.haml
+1
-0
app/views/projects/branches/new.html.haml
app/views/projects/branches/new.html.haml
+2
-0
app/views/projects/commit/show.html.haml
app/views/projects/commit/show.html.haml
+1
-0
app/views/projects/commits/_header_title.html.haml
app/views/projects/commits/_header_title.html.haml
+1
-0
app/views/projects/commits/show.html.haml
app/views/projects/commits/show.html.haml
+1
-0
app/views/projects/compare/index.html.haml
app/views/projects/compare/index.html.haml
+1
-0
app/views/projects/compare/show.html.haml
app/views/projects/compare/show.html.haml
+1
-0
app/views/projects/graphs/_header_title.html.haml
app/views/projects/graphs/_header_title.html.haml
+1
-0
app/views/projects/graphs/commits.html.haml
app/views/projects/graphs/commits.html.haml
+2
-1
app/views/projects/graphs/show.html.haml
app/views/projects/graphs/show.html.haml
+2
-1
app/views/projects/issues/_header_title.html.haml
app/views/projects/issues/_header_title.html.haml
+1
-0
app/views/projects/issues/index.html.haml
app/views/projects/issues/index.html.haml
+2
-0
app/views/projects/issues/new.html.haml
app/views/projects/issues/new.html.haml
+2
-0
app/views/projects/issues/show.html.haml
app/views/projects/issues/show.html.haml
+2
-0
app/views/projects/labels/_header_title.html.haml
app/views/projects/labels/_header_title.html.haml
+1
-0
app/views/projects/labels/edit.html.haml
app/views/projects/labels/edit.html.haml
+2
-0
app/views/projects/labels/index.html.haml
app/views/projects/labels/index.html.haml
+1
-0
app/views/projects/labels/new.html.haml
app/views/projects/labels/new.html.haml
+2
-0
app/views/projects/merge_requests/_header_title.html.haml
app/views/projects/merge_requests/_header_title.html.haml
+1
-0
app/views/projects/merge_requests/_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+2
-0
app/views/projects/merge_requests/edit.html.haml
app/views/projects/merge_requests/edit.html.haml
+2
-0
app/views/projects/merge_requests/index.html.haml
app/views/projects/merge_requests/index.html.haml
+2
-0
app/views/projects/merge_requests/invalid.html.haml
app/views/projects/merge_requests/invalid.html.haml
+2
-0
app/views/projects/merge_requests/new.html.haml
app/views/projects/merge_requests/new.html.haml
+2
-0
app/views/projects/milestones/_header_title.html.haml
app/views/projects/milestones/_header_title.html.haml
+1
-0
app/views/projects/milestones/edit.html.haml
app/views/projects/milestones/edit.html.haml
+1
-0
app/views/projects/milestones/index.html.haml
app/views/projects/milestones/index.html.haml
+1
-0
app/views/projects/milestones/new.html.haml
app/views/projects/milestones/new.html.haml
+1
-0
app/views/projects/milestones/show.html.haml
app/views/projects/milestones/show.html.haml
+2
-0
app/views/projects/network/show.html.haml
app/views/projects/network/show.html.haml
+1
-0
app/views/projects/project_members/_header_title.html.haml
app/views/projects/project_members/_header_title.html.haml
+1
-0
app/views/projects/project_members/import.html.haml
app/views/projects/project_members/import.html.haml
+2
-0
app/views/projects/project_members/index.html.haml
app/views/projects/project_members/index.html.haml
+1
-0
app/views/projects/snippets/_header_title.html.haml
app/views/projects/snippets/_header_title.html.haml
+1
-0
app/views/projects/snippets/edit.html.haml
app/views/projects/snippets/edit.html.haml
+2
-0
app/views/projects/snippets/index.html.haml
app/views/projects/snippets/index.html.haml
+2
-0
app/views/projects/snippets/new.html.haml
app/views/projects/snippets/new.html.haml
+2
-0
app/views/projects/snippets/show.html.haml
app/views/projects/snippets/show.html.haml
+2
-0
app/views/projects/tags/index.html.haml
app/views/projects/tags/index.html.haml
+1
-0
app/views/projects/tags/new.html.haml
app/views/projects/tags/new.html.haml
+2
-0
app/views/projects/tree/show.html.haml
app/views/projects/tree/show.html.haml
+1
-0
app/views/projects/wikis/_header_title.html.haml
app/views/projects/wikis/_header_title.html.haml
+1
-0
app/views/projects/wikis/edit.html.haml
app/views/projects/wikis/edit.html.haml
+2
-0
app/views/projects/wikis/empty.html.haml
app/views/projects/wikis/empty.html.haml
+2
-0
app/views/projects/wikis/git_access.html.haml
app/views/projects/wikis/git_access.html.haml
+2
-0
app/views/projects/wikis/history.html.haml
app/views/projects/wikis/history.html.haml
+3
-1
app/views/projects/wikis/pages.html.haml
app/views/projects/wikis/pages.html.haml
+2
-0
app/views/projects/wikis/show.html.haml
app/views/projects/wikis/show.html.haml
+3
-1
No files found.
app/helpers/groups_helper.rb
View file @
d89ae7df
...
@@ -31,12 +31,12 @@ module GroupsHelper
...
@@ -31,12 +31,12 @@ module GroupsHelper
end
end
end
end
def
group_title
(
group
,
name
,
url
)
def
group_title
(
group
,
name
=
nil
,
url
=
nil
)
full_title
=
link_to
(
simple_sanitize
(
group
.
name
),
group_path
(
group
))
full_title
+=
' · '
.
html_safe
+
link_to
(
simple_sanitize
(
name
),
url
)
if
name
content_tag
:span
do
content_tag
:span
do
link_to
(
full_title
simple_sanitize
(
group
.
name
),
group_path
(
group
)
)
+
' · '
.
html_safe
+
link_to
(
simple_sanitize
(
name
),
url
)
end
end
end
end
end
end
app/helpers/projects_helper.rb
View file @
d89ae7df
...
@@ -317,41 +317,6 @@ module ProjectsHelper
...
@@ -317,41 +317,6 @@ module ProjectsHelper
@ref
||
@repository
.
try
(
:root_ref
)
@ref
||
@repository
.
try
(
:root_ref
)
end
end
def
detect_project_title
(
project
)
name
,
url
=
if
current_controller?
'wikis'
[
'Wiki'
,
get_project_wiki_path
(
project
)]
elsif
current_controller?
'project_members'
[
'Members'
,
namespace_project_project_members_path
(
project
.
namespace
,
project
)]
elsif
current_controller?
'labels'
[
'Labels'
,
namespace_project_labels_path
(
project
.
namespace
,
project
)]
elsif
current_controller?
'members'
[
'Members'
,
project_files_path
(
project
)]
elsif
current_controller?
'commits'
[
'Commits'
,
project_commits_path
(
project
)]
elsif
current_controller?
'graphs'
[
'Graphs'
,
namespace_project_graph_path
(
project
.
namespace
,
project
,
current_ref
)]
elsif
current_controller?
'network'
[
'Network'
,
namespace_project_network_path
(
project
.
namespace
,
project
,
current_ref
)]
elsif
current_controller?
'milestones'
[
'Milestones'
,
namespace_project_milestones_path
(
project
.
namespace
,
project
)]
elsif
current_controller?
'snippets'
[
'Snippets'
,
namespace_project_snippets_path
(
project
.
namespace
,
project
)]
elsif
current_controller?
'issues'
[
'Issues'
,
namespace_project_issues_path
(
project
.
namespace
,
project
)]
elsif
current_controller?
'merge_requests'
[
'Merge Requests'
,
namespace_project_merge_requests_path
(
project
.
namespace
,
project
)]
elsif
current_controller?
'tree'
,
'blob'
[
'Files'
,
project_files_path
(
project
)]
elsif
current_path?
'projects#activity'
[
'Activity'
,
activity_project_path
(
project
)]
else
[
nil
,
nil
]
end
project_title
(
project
,
name
,
url
)
end
private
private
def
filename_path
(
project
,
filename
)
def
filename_path
(
project
,
filename
)
...
...
app/views/groups/milestones/_header_title.html.haml
0 → 100644
View file @
d89ae7df
-
header_title
group_title
(
@group
,
"Milestones"
,
group_milestones_path
(
@group
))
app/views/groups/milestones/show.html.haml
View file @
d89ae7df
-
page_title
@group_milestone
.
title
,
"Milestones"
-
page_title
@group_milestone
.
title
,
"Milestones"
=
render
"header_title"
%h4
.page-title
%h4
.page-title
.issue-box
{
class:
"issue-box-#{@group_milestone.closed? ? 'closed' : 'open'}"
}
.issue-box
{
class:
"issue-box-#{@group_milestone.closed? ? 'closed' : 'open'}"
}
-
if
@group_milestone
.
closed?
-
if
@group_milestone
.
closed?
...
...
app/views/layouts/dashboard.html.haml
View file @
d89ae7df
-
page_title
"Dashboard"
-
page_title
"Dashboard"
-
unless
@header_title
-
header_title
"Dashboard"
,
root_path
unless
header_title
-
header_title
"Dashboard"
,
root_path
-
sidebar
"dashboard"
-
sidebar
"dashboard"
=
render
template:
"layouts/application"
=
render
template:
"layouts/application"
app/views/layouts/group.html.haml
View file @
d89ae7df
-
page_title
@group
.
name
-
page_title
@group
.
name
-
unless
@header_title
-
header_title
group_title
(
@group
)
unless
header_title
-
header_title
@group
.
name
,
group_path
(
@group
)
-
sidebar
"group"
unless
sidebar
-
sidebar
"group"
unless
sidebar
=
render
template:
"layouts/application"
=
render
template:
"layouts/application"
app/views/layouts/group_settings.html.haml
View file @
d89ae7df
-
page_title
"Settings"
-
page_title
"Settings"
-
header_title
group_title
(
@group
,
"Settings"
,
edit_group_path
(
@group
))
-
sidebar
"group_settings"
-
sidebar
"group_settings"
=
render
template:
"layouts/group"
=
render
template:
"layouts/group"
app/views/layouts/profile.html.haml
View file @
d89ae7df
-
page_title
"Profile Settings"
-
page_title
"Profile Settings"
-
unless
@header_title
-
header_title
"Profile Settings"
,
profile_path
unless
header_title
-
header_title
"Profile Settings"
,
profile_path
-
sidebar
"profile"
-
sidebar
"profile"
=
render
template:
"layouts/application"
=
render
template:
"layouts/application"
app/views/layouts/project.html.haml
View file @
d89ae7df
-
page_title
@project
.
name_with_namespace
-
page_title
@project
.
name_with_namespace
-
header_title
detect_project_title
(
@project
)
-
header_title
project_title
(
@project
)
unless
header_title
-
sidebar
"project"
unless
sidebar
-
sidebar
"project"
unless
sidebar
-
content_for
:scripts_body_top
do
-
content_for
:scripts_body_top
do
-
if
current_user
-
if
current_user
...
...
app/views/layouts/project_settings.html.haml
View file @
d89ae7df
-
page_title
"Settings"
-
page_title
"Settings"
-
header_title
project_title
(
@project
,
"Settings"
,
edit_project_path
(
@project
))
-
sidebar
"project_settings"
-
sidebar
"project_settings"
=
render
template:
"layouts/project"
=
render
template:
"layouts/project"
app/views/projects/activity.html.haml
View file @
d89ae7df
-
page_title
"Activity"
-
page_title
"Activity"
-
header_title
project_title
(
@project
,
"Activity"
,
activity_project_path
(
@project
))
=
render
'projects/activity'
=
render
'projects/activity'
app/views/projects/blame/show.html.haml
View file @
d89ae7df
-
page_title
"Blame"
,
@blob
.
path
,
@ref
-
page_title
"Blame"
,
@blob
.
path
,
@ref
-
header_title
project_title
(
@project
,
"Files"
,
project_files_path
(
@project
))
%h3
.page-title
Blame view
%h3
.page-title
Blame view
#tree-holder
.tree-holder
#tree-holder
.tree-holder
...
...
app/views/projects/blob/_header_title.html.haml
0 → 100644
View file @
d89ae7df
-
header_title
project_title
(
@project
,
"Files"
,
project_files_path
(
@project
))
app/views/projects/blob/edit.html.haml
View file @
d89ae7df
-
page_title
"Edit"
,
@blob
.
path
,
@ref
-
page_title
"Edit"
,
@blob
.
path
,
@ref
=
render
"header_title"
.file-editor
.file-editor
%ul
.center-top-menu.no-bottom.js-edit-mode
%ul
.center-top-menu.no-bottom.js-edit-mode
%li
.active
%li
.active
...
...
app/views/projects/blob/new.html.haml
View file @
d89ae7df
-
page_title
"New File"
,
@path
.
presence
,
@ref
=
render
"header_title"
.gray-content-block.top-block
.gray-content-block.top-block
Create a new file or
Create a new file or
=
link_to
'upload'
,
'#modal-upload-blob'
,
=
link_to
'upload'
,
'#modal-upload-blob'
,
...
...
app/views/projects/blob/show.html.haml
View file @
d89ae7df
-
page_title
@blob
.
path
,
@ref
-
page_title
@blob
.
path
,
@ref
=
render
"header_title"
=
render
'projects/last_push'
=
render
'projects/last_push'
...
...
app/views/projects/branches/index.html.haml
View file @
d89ae7df
-
page_title
"Branches"
-
page_title
"Branches"
=
render
"projects/commits/header_title"
=
render
"projects/commits/head"
=
render
"projects/commits/head"
.gray-content-block
.gray-content-block
.pull-right
.pull-right
...
...
app/views/projects/branches/new.html.haml
View file @
d89ae7df
-
page_title
"New Branch"
-
page_title
"New Branch"
=
render
"projects/commits/header_title"
-
if
@error
-
if
@error
.alert.alert-danger
.alert.alert-danger
%button
{
type:
"button"
,
class:
"close"
,
"data-dismiss"
=>
"alert"
}
×
%button
{
type:
"button"
,
class:
"close"
,
"data-dismiss"
=>
"alert"
}
×
...
...
app/views/projects/commit/show.html.haml
View file @
d89ae7df
-
page_title
"
#{
@commit
.
title
}
(
#{
@commit
.
short_id
}
)"
,
"Commits"
-
page_title
"
#{
@commit
.
title
}
(
#{
@commit
.
short_id
}
)"
,
"Commits"
=
render
"projects/commits/header_title"
=
render
"commit_box"
=
render
"commit_box"
=
render
"projects/diffs/diffs"
,
diffs:
@diffs
,
project:
@project
=
render
"projects/diffs/diffs"
,
diffs:
@diffs
,
project:
@project
=
render
"projects/notes/notes_with_form"
,
view:
params
[
:view
]
=
render
"projects/notes/notes_with_form"
,
view:
params
[
:view
]
app/views/projects/commits/_header_title.html.haml
0 → 100644
View file @
d89ae7df
-
header_title
project_title
(
@project
,
"Commits"
,
project_commits_path
(
@project
))
app/views/projects/commits/show.html.haml
View file @
d89ae7df
-
page_title
"Commits"
,
@ref
-
page_title
"Commits"
,
@ref
=
render
"header_title"
=
content_for
:meta_tags
do
=
content_for
:meta_tags
do
-
if
current_user
-
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:
"
#{
@project
.
name
}
:
#{
@ref
}
commits"
)
=
auto_discovery_link_tag
(
:atom
,
namespace_project_commits_url
(
@project
.
namespace
,
@project
,
@ref
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@project
.
name
}
:
#{
@ref
}
commits"
)
...
...
app/views/projects/compare/index.html.haml
View file @
d89ae7df
-
page_title
"Compare"
-
page_title
"Compare"
=
render
"projects/commits/header_title"
=
render
"projects/commits/head"
=
render
"projects/commits/head"
.gray-content-block
.gray-content-block
...
...
app/views/projects/compare/show.html.haml
View file @
d89ae7df
-
page_title
"
#{
params
[
:from
]
}
...
#{
params
[
:to
]
}
"
-
page_title
"
#{
params
[
:from
]
}
...
#{
params
[
:to
]
}
"
=
render
"projects/commits/header_title"
=
render
"projects/commits/head"
=
render
"projects/commits/head"
...
...
app/views/projects/graphs/_header_title.html.haml
0 → 100644
View file @
d89ae7df
-
header_title
project_title
(
@project
,
"Graphs"
,
namespace_project_graph_path
(
@project
.
namespace
,
@project
,
current_ref
))
app/views/projects/graphs/commits.html.haml
View file @
d89ae7df
-
page_title
"Commit statistics"
-
page_title
"Commits"
,
"Graphs"
=
render
"header_title"
.tree-ref-holder
.tree-ref-holder
=
render
'shared/ref_switcher'
,
destination:
'graphs_commits'
=
render
'shared/ref_switcher'
,
destination:
'graphs_commits'
=
render
'head'
=
render
'head'
...
...
app/views/projects/graphs/show.html.haml
View file @
d89ae7df
-
page_title
"Contributor statistics"
-
page_title
"Contributors"
,
"Graphs"
=
render
"header_title"
.tree-ref-holder
.tree-ref-holder
=
render
'shared/ref_switcher'
,
destination:
'graphs'
=
render
'shared/ref_switcher'
,
destination:
'graphs'
=
render
'head'
=
render
'head'
...
...
app/views/projects/issues/_header_title.html.haml
0 → 100644
View file @
d89ae7df
-
header_title
project_title
(
@project
,
"Issues"
,
namespace_project_issues_path
(
@project
.
namespace
,
@project
))
app/views/projects/issues/index.html.haml
View file @
d89ae7df
-
page_title
"Issues"
-
page_title
"Issues"
=
render
"header_title"
=
content_for
:meta_tags
do
=
content_for
:meta_tags
do
-
if
current_user
-
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"
)
=
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/issues/new.html.haml
View file @
d89ae7df
-
page_title
"New Issue"
-
page_title
"New Issue"
=
render
"header_title"
=
render
"form"
=
render
"form"
app/views/projects/issues/show.html.haml
View file @
d89ae7df
-
page_title
"
#{
@issue
.
title
}
(#
#{
@issue
.
iid
}
)"
,
"Issues"
-
page_title
"
#{
@issue
.
title
}
(#
#{
@issue
.
iid
}
)"
,
"Issues"
=
render
"header_title"
.issue
.issue
.issue-details.issuable-details
.issue-details.issuable-details
.page-title
.page-title
...
...
app/views/projects/labels/_header_title.html.haml
0 → 100644
View file @
d89ae7df
-
header_title
project_title
(
@project
,
"Labels"
,
namespace_project_labels_path
(
@project
.
namespace
,
@project
))
app/views/projects/labels/edit.html.haml
View file @
d89ae7df
-
page_title
"Edit"
,
@label
.
name
,
"Labels"
-
page_title
"Edit"
,
@label
.
name
,
"Labels"
=
render
"header_title"
%h3
%h3
Edit label
Edit label
%span
.light
#{
@label
.
name
}
%span
.light
#{
@label
.
name
}
...
...
app/views/projects/labels/index.html.haml
View file @
d89ae7df
-
page_title
"Labels"
-
page_title
"Labels"
=
render
"header_title"
.gray-content-block.top-block
.gray-content-block.top-block
-
if
can?
current_user
,
:admin_label
,
@project
-
if
can?
current_user
,
:admin_label
,
@project
...
...
app/views/projects/labels/new.html.haml
View file @
d89ae7df
-
page_title
"New Label"
-
page_title
"New Label"
=
render
"header_title"
%h3
New label
%h3
New label
.back-link
.back-link
=
link_to
namespace_project_labels_path
(
@project
.
namespace
,
@project
)
do
=
link_to
namespace_project_labels_path
(
@project
.
namespace
,
@project
)
do
...
...
app/views/projects/merge_requests/_header_title.html.haml
0 → 100644
View file @
d89ae7df
-
header_title
project_title
(
@project
,
"Merge Requests"
,
namespace_project_merge_requests_path
(
@project
.
namespace
,
@project
))
app/views/projects/merge_requests/_show.html.haml
View file @
d89ae7df
-
page_title
"
#{
@merge_request
.
title
}
(#
#{
@merge_request
.
iid
}
)"
,
"Merge Requests"
-
page_title
"
#{
@merge_request
.
title
}
(#
#{
@merge_request
.
iid
}
)"
,
"Merge Requests"
=
render
"header_title"
-
if
params
[
:view
]
==
'parallel'
-
if
params
[
:view
]
==
'parallel'
-
fluid_layout
true
-
fluid_layout
true
...
...
app/views/projects/merge_requests/edit.html.haml
View file @
d89ae7df
-
page_title
"Edit"
,
"
#{
@merge_request
.
title
}
(#
#{
@merge_request
.
iid
}
)"
,
"Merge Requests"
-
page_title
"Edit"
,
"
#{
@merge_request
.
title
}
(#
#{
@merge_request
.
iid
}
)"
,
"Merge Requests"
=
render
"header_title"
%h3
.page-title
%h3
.page-title
=
"Edit merge request #
#{
@merge_request
.
iid
}
"
=
"Edit merge request #
#{
@merge_request
.
iid
}
"
%hr
%hr
...
...
app/views/projects/merge_requests/index.html.haml
View file @
d89ae7df
-
page_title
"Merge Requests"
-
page_title
"Merge Requests"
=
render
"header_title"
=
render
'projects/last_push'
=
render
'projects/last_push'
.project-issuable-filter
.project-issuable-filter
.controls
.controls
...
...
app/views/projects/merge_requests/invalid.html.haml
View file @
d89ae7df
-
page_title
"
#{
@merge_request
.
title
}
(#
#{
@merge_request
.
iid
}
)"
,
"Merge Requests"
-
page_title
"
#{
@merge_request
.
title
}
(#
#{
@merge_request
.
iid
}
)"
,
"Merge Requests"
=
render
"header_title"
.merge-request
.merge-request
=
render
"projects/merge_requests/show/mr_title"
=
render
"projects/merge_requests/show/mr_title"
=
render
"projects/merge_requests/show/mr_box"
=
render
"projects/merge_requests/show/mr_box"
...
...
app/views/projects/merge_requests/new.html.haml
View file @
d89ae7df
-
page_title
"New Merge Request"
-
page_title
"New Merge Request"
=
render
"header_title"
-
if
@merge_request
.
can_be_created
-
if
@merge_request
.
can_be_created
=
render
'new_submit'
=
render
'new_submit'
-
else
-
else
...
...
app/views/projects/milestones/_header_title.html.haml
0 → 100644
View file @
d89ae7df
-
header_title
project_title
(
@project
,
"Milestones"
,
namespace_project_milestones_path
(
@project
.
namespace
,
@project
))
app/views/projects/milestones/edit.html.haml
View file @
d89ae7df
-
page_title
"Edit"
,
@milestone
.
title
,
"Milestones"
-
page_title
"Edit"
,
@milestone
.
title
,
"Milestones"
=
render
"header_title"
=
render
"form"
=
render
"form"
app/views/projects/milestones/index.html.haml
View file @
d89ae7df
-
page_title
"Milestones"
-
page_title
"Milestones"
=
render
"header_title"
=
render
'shared/milestones_filter'
=
render
'shared/milestones_filter'
.gray-content-block
.gray-content-block
...
...
app/views/projects/milestones/new.html.haml
View file @
d89ae7df
-
page_title
"New Milestone"
-
page_title
"New Milestone"
=
render
"header_title"
=
render
"form"
=
render
"form"
app/views/projects/milestones/show.html.haml
View file @
d89ae7df
-
page_title
@milestone
.
title
,
"Milestones"
-
page_title
@milestone
.
title
,
"Milestones"
=
render
"header_title"
%h4
.page-title
%h4
.page-title
.issue-box
{
class:
issue_box_class
(
@milestone
)
}
.issue-box
{
class:
issue_box_class
(
@milestone
)
}
-
if
@milestone
.
closed?
-
if
@milestone
.
closed?
...
...
app/views/projects/network/show.html.haml
View file @
d89ae7df
-
page_title
"Network"
,
@ref
-
page_title
"Network"
,
@ref
=
header_title
project_title
(
@project
,
"Network"
,
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
))
=
render
"head"
=
render
"head"
.project-network
.project-network
.controls
.controls
...
...
app/views/projects/project_members/_header_title.html.haml
0 → 100644
View file @
d89ae7df
-
header_title
project_title
(
@project
,
"Members"
,
namespace_project_project_members_path
(
@project
.
namespace
,
@project
))
app/views/projects/project_members/import.html.haml
View file @
d89ae7df
-
page_title
"Import members"
-
page_title
"Import members"
=
render
"header_title"
%h3
.page-title
%h3
.page-title
Import members from another project
Import members from another project
%p
.light
%p
.light
...
...
app/views/projects/project_members/index.html.haml
View file @
d89ae7df
-
page_title
"Members"
-
page_title
"Members"
=
render
"header_title"
.gray-content-block.top-block
.gray-content-block.top-block
.clearfix.js-toggle-container
.clearfix.js-toggle-container
...
...
app/views/projects/snippets/_header_title.html.haml
0 → 100644
View file @
d89ae7df
-
header_title
project_title
(
@project
,
"Snippets"
,
namespace_project_snippets_path
(
@project
.
namespace
,
@project
))
app/views/projects/snippets/edit.html.haml
View file @
d89ae7df
-
page_title
"Edit"
,
@snippet
.
title
,
"Snippets"
-
page_title
"Edit"
,
@snippet
.
title
,
"Snippets"
=
render
"header_title"
%h3
.page-title
%h3
.page-title
Edit snippet
Edit snippet
%hr
%hr
...
...
app/views/projects/snippets/index.html.haml
View file @
d89ae7df
-
page_title
"Snippets"
-
page_title
"Snippets"
=
render
"header_title"
%h3
.page-title
%h3
.page-title
Snippets
Snippets
-
if
can?
current_user
,
:create_project_snippet
,
@project
-
if
can?
current_user
,
:create_project_snippet
,
@project
...
...
app/views/projects/snippets/new.html.haml
View file @
d89ae7df
-
page_title
"New Snippets"
-
page_title
"New Snippets"
=
render
"header_title"
%h3
.page-title
%h3
.page-title
New snippet
New snippet
%hr
%hr
...
...
app/views/projects/snippets/show.html.haml
View file @
d89ae7df
-
page_title
@snippet
.
title
,
"Snippets"
-
page_title
@snippet
.
title
,
"Snippets"
=
render
"header_title"
%h3
.page-title
%h3
.page-title
=
@snippet
.
title
=
@snippet
.
title
...
...
app/views/projects/tags/index.html.haml
View file @
d89ae7df
-
page_title
"Tags"
-
page_title
"Tags"
=
render
"projects/commits/header_title"
=
render
"projects/commits/head"
=
render
"projects/commits/head"
.gray-content-block
.gray-content-block
...
...
app/views/projects/tags/new.html.haml
View file @
d89ae7df
-
page_title
"New Tag"
-
page_title
"New Tag"
=
render
"projects/commits/header_title"
-
if
@error
-
if
@error
.alert.alert-danger
.alert.alert-danger
%button
{
type:
"button"
,
class:
"close"
,
"data-dismiss"
=>
"alert"
}
×
%button
{
type:
"button"
,
class:
"close"
,
"data-dismiss"
=>
"alert"
}
×
...
...
app/views/projects/tree/show.html.haml
View file @
d89ae7df
-
page_title
@path
.
presence
||
"Files"
,
@ref
-
page_title
@path
.
presence
||
"Files"
,
@ref
-
header_title
project_title
(
@project
,
"Files"
,
project_files_path
(
@project
))
=
content_for
:meta_tags
do
=
content_for
:meta_tags
do
-
if
current_user
-
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:
"
#{
@project
.
name
}
:
#{
@ref
}
commits"
)
=
auto_discovery_link_tag
(
:atom
,
namespace_project_commits_url
(
@project
.
namespace
,
@project
,
@ref
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@project
.
name
}
:
#{
@ref
}
commits"
)
...
...
app/views/projects/wikis/_header_title.html.haml
0 → 100644
View file @
d89ae7df
-
header_title
project_title
(
@project
,
'Wiki'
,
get_project_wiki_path
(
@project
))
app/views/projects/wikis/edit.html.haml
View file @
d89ae7df
-
page_title
"Edit"
,
@page
.
title
,
"Wiki"
-
page_title
"Edit"
,
@page
.
title
,
"Wiki"
=
render
"header_title"
=
render
'nav'
=
render
'nav'
.pull-right
.pull-right
=
render
'main_links'
=
render
'main_links'
...
...
app/views/projects/wikis/empty.html.haml
View file @
d89ae7df
-
page_title
"Wiki"
-
page_title
"Wiki"
=
render
"header_title"
%h3
.page-title
Empty page
%h3
.page-title
Empty page
%hr
%hr
.error_message
.error_message
...
...
app/views/projects/wikis/git_access.html.haml
View file @
d89ae7df
-
page_title
"Git Access"
,
"Wiki"
-
page_title
"Git Access"
,
"Wiki"
=
render
"header_title"
=
render
'nav'
=
render
'nav'
.gray-content-block
.gray-content-block
.row
.row
...
...
app/views/projects/wikis/history.html.haml
View file @
d89ae7df
-
page_title
"History"
,
@page
.
title
,
"Wiki"
-
page_title
"History"
,
@page
.
title
.
capitalize
,
"Wiki"
=
render
"header_title"
=
render
'nav'
=
render
'nav'
.gray-content-block
.gray-content-block
%h3
.page-title
%h3
.page-title
...
...
app/views/projects/wikis/pages.html.haml
View file @
d89ae7df
-
page_title
"All Pages"
,
"Wiki"
-
page_title
"All Pages"
,
"Wiki"
=
render
"header_title"
=
render
'nav'
=
render
'nav'
.gray-content-block
.gray-content-block
%h3
.page-title
%h3
.page-title
...
...
app/views/projects/wikis/show.html.haml
View file @
d89ae7df
-
page_title
@page
.
title
,
"Wiki"
-
page_title
@page
.
title
.
capitalize
,
"Wiki"
=
render
"header_title"
=
render
'nav'
=
render
'nav'
.gray-content-block
.gray-content-block
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment