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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
1ce85dc4
Commit
1ce85dc4
authored
Sep 14, 2015
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix navigation and header tile
Remove redundant navigation on commits and builds page
parent
d0b9a6fc
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
45 additions
and
20 deletions
+45
-20
app/controllers/ci/builds_controller.rb
app/controllers/ci/builds_controller.rb
+1
-1
app/controllers/ci/commits_controller.rb
app/controllers/ci/commits_controller.rb
+1
-1
app/helpers/ci/commits_helper.rb
app/helpers/ci/commits_helper.rb
+9
-0
app/views/ci/builds/show.html.haml
app/views/ci/builds/show.html.haml
+0
-9
app/views/ci/commits/show.html.haml
app/views/ci/commits/show.html.haml
+0
-8
app/views/layouts/ci/_nav_build.html.haml
app/views/layouts/ci/_nav_build.html.haml
+3
-0
app/views/layouts/ci/_nav_commit.haml
app/views/layouts/ci/_nav_commit.haml
+3
-0
app/views/layouts/ci/_nav_project.html.haml
app/views/layouts/ci/_nav_project.html.haml
+5
-0
app/views/layouts/ci/build.html.haml
app/views/layouts/ci/build.html.haml
+11
-0
app/views/layouts/ci/commit.html.haml
app/views/layouts/ci/commit.html.haml
+11
-0
app/views/layouts/ci/project.html.haml
app/views/layouts/ci/project.html.haml
+1
-1
No files found.
app/controllers/ci/builds_controller.rb
View file @
1ce85dc4
...
...
@@ -7,7 +7,7 @@ module Ci
before_filter
:authorize_manage_project!
,
except:
[
:status
,
:show
,
:retry
,
:cancel
]
before_filter
:authorize_manage_builds!
,
only:
[
:retry
,
:cancel
]
before_filter
:build
,
except:
[
:show
]
layout
'ci/
project
'
layout
'ci/
build
'
def
show
if
params
[
:id
]
=~
/\A\d+\Z/
...
...
app/controllers/ci/commits_controller.rb
View file @
1ce85dc4
...
...
@@ -6,7 +6,7 @@ module Ci
before_filter
:authorize_access_project!
,
except:
[
:status
,
:show
,
:cancel
]
before_filter
:authorize_manage_builds!
,
only:
[
:cancel
]
before_filter
:commit
,
only: :show
layout
'ci/
projec
t'
layout
'ci/
commi
t'
def
show
@builds
=
@commit
.
builds
...
...
app/helpers/ci/commits_helper.rb
View file @
1ce85dc4
...
...
@@ -26,5 +26,14 @@ module Ci
def
truncate_first_line
(
message
,
length
=
50
)
truncate
(
message
.
each_line
.
first
.
chomp
,
length:
length
)
if
message
end
def
ci_commit_title
(
commit
)
content_tag
:span
do
link_to
(
simple_sanitize
(
commit
.
project
.
name
),
ci_project_path
(
commit
.
project
)
)
+
' @ '
+
gitlab_commit_link
(
@project
,
@commit
.
sha
)
end
end
end
end
app/views/ci/builds/show.html.haml
View file @
1ce85dc4
%h4
.page-title
=
link_to
@project
.
name
,
ci_project_path
(
@project
)
@
=
@commit
.
short_sha
%p
=
link_to
ci_project_ref_commits_path
(
@project
,
@commit
.
ref
,
@commit
.
sha
)
do
←
Back to project commit
%hr
#up-build-trace
-
if
@commit
.
matrix?
%ul
.nav.nav-tabs.append-bottom-10
...
...
app/views/ci/commits/show.html.haml
View file @
1ce85dc4
%h4
.page-title
=
@project
.
name
@
#{
gitlab_commit_link
(
@project
,
@commit
.
sha
)
}
%p
=
link_to
ci_project_path
(
@project
)
do
←
Back to project commits
%hr
.commit-info
%pre
.commit-message
#{
@commit
.
git_commit_message
}
...
...
app/views/layouts/ci/_nav_build.html.haml
0 → 100644
View file @
1ce85dc4
=
render
'layouts/ci/nav_project'
,
back_title:
'Back to project commit'
,
back_url:
ci_project_ref_commits_path
(
@project
,
@commit
.
ref
,
@commit
.
sha
)
app/views/layouts/ci/_nav_commit.haml
0 → 100644
View file @
1ce85dc4
=
render
'layouts/ci/nav_project'
,
back_title:
'Back to project commits'
,
back_url:
ci_project_path
(
@project
)
app/views/layouts/ci/_nav_project.html.haml
View file @
1ce85dc4
%ul
.nav.nav-sidebar
=
nav_link
do
=
link_to
defined?
(
back_url
)
?
back_url
:
ci_root_path
,
title:
defined?
(
back_title
)
?
back_title
:
'Back to Dashboard'
,
data:
{
placement:
'right'
},
class:
'back-link'
do
=
icon
(
'caret-square-o-left fw'
)
%span
=
defined?
(
back_title
)
?
back_title
:
'Back to Dashboard'
%li
.separate-item
=
nav_link
path:
[
'projects#show'
,
'commits#show'
,
'builds#show'
]
do
=
link_to
ci_project_path
(
@project
)
do
%i
.fa.fa-list-alt
...
...
app/views/layouts/ci/build.html.haml
0 → 100644
View file @
1ce85dc4
!!! 5
%html
{
lang:
"en"
}
=
render
'layouts/head'
%body
{
class:
"ci-body #{user_application_theme}"
,
'data-page'
=>
body_data_page
}
-
header_title
ci_commit_title
(
@commit
)
-
if
current_user
=
render
"layouts/header/default"
,
title:
header_title
-
else
=
render
"layouts/header/public"
,
title:
header_title
=
render
'layouts/ci/page'
,
sidebar:
'nav_build'
app/views/layouts/ci/commit.html.haml
0 → 100644
View file @
1ce85dc4
!!! 5
%html
{
lang:
"en"
}
=
render
'layouts/head'
%body
{
class:
"ci-body #{user_application_theme}"
,
'data-page'
=>
body_data_page
}
-
header_title
ci_commit_title
(
@commit
)
-
if
current_user
=
render
"layouts/header/default"
,
title:
header_title
-
else
=
render
"layouts/header/public"
,
title:
header_title
=
render
'layouts/ci/page'
,
sidebar:
'nav_commit'
app/views/layouts/ci/project.html.haml
View file @
1ce85dc4
...
...
@@ -2,7 +2,7 @@
%html
{
lang:
"en"
}
=
render
'layouts/head'
%body
{
class:
"ci-body #{user_application_theme}"
,
'data-page'
=>
body_data_page
}
-
header_title
=
@project
.
name
-
header_title
@project
.
name
,
ci_project_path
(
@project
)
-
if
current_user
=
render
"layouts/header/default"
,
title:
header_title
-
else
...
...
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