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
401c155e
Commit
401c155e
authored
Dec 05, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update stage rendering views
parent
260d754c
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
35 additions
and
42 deletions
+35
-42
app/views/projects/builds/_sidebar.html.haml
app/views/projects/builds/_sidebar.html.haml
+2
-2
app/views/projects/commit/_pipeline.html.haml
app/views/projects/commit/_pipeline.html.haml
+3
-13
app/views/projects/commit/_pipeline_stage.html.haml
app/views/projects/commit/_pipeline_stage.html.haml
+0
-14
app/views/projects/pipelines/_graph.html.haml
app/views/projects/pipelines/_graph.html.haml
+4
-0
app/views/projects/pipelines/_with_tabs.html.haml
app/views/projects/pipelines/_with_tabs.html.haml
+3
-12
app/views/projects/stage/_graph.html.haml
app/views/projects/stage/_graph.html.haml
+22
-0
app/views/projects/stage/_in_stage_group.html.haml
app/views/projects/stage/_in_stage_group.html.haml
+0
-0
app/views/projects/stage/_stage.html.haml
app/views/projects/stage/_stage.html.haml
+1
-1
No files found.
app/views/projects/builds/_sidebar.html.haml
View file @
401c155e
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
%span
.label.label-primary
%span
.label.label-primary
=
tag
=
tag
-
if
@build
.
pipeline
.
stages_count
.
many?
-
if
@build
.
pipeline
.
stages_count
>
1
.dropdown.build-dropdown
.dropdown.build-dropdown
.title
Stage
.title
Stage
%button
.dropdown-menu-toggle
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
%button
.dropdown-menu-toggle
{
type:
'button'
,
'data-toggle'
=>
'dropdown'
}
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
%ul
.dropdown-menu
%ul
.dropdown-menu
-
@build
.
pipeline
.
stages
.
each
do
|
stage
|
-
@build
.
pipeline
.
stages
.
each
do
|
stage
|
%li
%li
%a
.stage-item
=
stage
%a
.stage-item
=
stage
.
name
.builds-container
.builds-container
-
HasStatus
::
ORDERED_STATUSES
.
each
do
|
build_status
|
-
HasStatus
::
ORDERED_STATUSES
.
each
do
|
build_status
|
...
...
app/views/projects/commit/_pipeline.html.haml
View file @
401c155e
...
@@ -25,18 +25,7 @@
...
@@ -25,18 +25,7 @@
=
time_interval_in_words
pipeline
.
duration
=
time_interval_in_words
pipeline
.
duration
.row-content-block.build-content.middle-block.pipeline-graph.hidden
.row-content-block.build-content.middle-block.pipeline-graph.hidden
.pipeline-visualization
=
render
"projects/pipelines/graph"
,
subject:
pipeline
%ul
.stage-column-list
-
pipeline
.
stages
.
each
do
|
stage
|
%li
.stage-column
.stage-name
%a
{
name:
stage
.
name
}
-
if
stage
.
name
=
stage
.
name
.
titleize
.builds-container
%ul
=
render
"projects/commit/pipeline_stage"
,
statuses:
stage
.
statuses
-
if
pipeline
.
yaml_errors
.
present?
-
if
pipeline
.
yaml_errors
.
present?
.bs-callout.bs-callout-danger
.bs-callout.bs-callout-danger
...
@@ -61,4 +50,5 @@
...
@@ -61,4 +50,5 @@
-
if
pipeline
.
project
.
build_coverage_enabled?
-
if
pipeline
.
project
.
build_coverage_enabled?
%th
Coverage
%th
Coverage
%th
%th
=
render
pipeline
.
stages
-
pipeline
.
stages
.
each
do
|
stage
|
=
render
"projects/stage/stage"
,
subject:
stage
app/views/projects/commit/_pipeline_stage.html.haml
deleted
100644 → 0
View file @
260d754c
-
status_groups
=
statuses
.
sort_by
(
&
:name
).
group_by
(
&
:group_name
)
-
status_groups
.
each
do
|
group_name
,
grouped_statuses
|
-
if
grouped_statuses
.
one?
-
status
=
grouped_statuses
.
first
-
is_playable
=
status
.
playable?
&&
can?
(
current_user
,
:update_build
,
@project
)
%li
.build
{
class:
(
"playable"
if
is_playable
)
}
.curve
.build-content
=
render
"projects/
#{
status
.
to_partial_path
}
_pipeline"
,
subject:
status
-
else
%li
.build
.curve
.dropdown.inline.build-content
=
render
"projects/commit/pipeline_status_group"
,
name:
group_name
,
subject:
grouped_statuses
app/views/projects/pipelines/_graph.html.haml
0 → 100644
View file @
401c155e
.pipeline-visualization
%ul
.stage-column-list
-
subject
.
stages
.
each
do
|
stage
|
=
render
"projects/stage/graph"
,
subject:
stage
app/views/projects/pipelines/_with_tabs.html.haml
View file @
401c155e
...
@@ -13,17 +13,7 @@
...
@@ -13,17 +13,7 @@
.tab-content
.tab-content
#js-tab-pipeline
.tab-pane
#js-tab-pipeline
.tab-pane
.build-content.middle-block.pipeline-graph
.build-content.middle-block.pipeline-graph
.pipeline-visualization
=
render
"projects/pipelines/graph"
,
subject:
pipeline
%ul
.stage-column-list
-
pipeline
.
stages
.
each
do
|
stage
|
%li
.stage-column
.stage-name
%a
{
name:
stage
.
name
}
-
if
stage
.
name
=
stage
.
name
.
titleize
.builds-container
%ul
=
render
"projects/commit/pipeline_stage"
,
statuses:
statuses
#js-tab-builds
.tab-pane
#js-tab-builds
.tab-pane
-
if
pipeline
.
yaml_errors
.
present?
-
if
pipeline
.
yaml_errors
.
present?
...
@@ -49,4 +39,5 @@
...
@@ -49,4 +39,5 @@
-
if
pipeline
.
project
.
build_coverage_enabled?
-
if
pipeline
.
project
.
build_coverage_enabled?
%th
Coverage
%th
Coverage
%th
%th
=
render
pipeline
.
stages
-
pipeline
.
stages
.
each
do
|
stage
|
=
render
"projects/stage/stage"
,
subject:
stage
app/views/projects/stage/_graph.html.haml
0 → 100644
View file @
401c155e
%li
.stage-column
.stage-name
%a
{
name:
subject
.
name
}
-
if
subject
.
name
=
subject
.
name
.
titleize
.builds-container
%ul
-
statuses
=
subject
.
statuses
.
latest
-
status_groups
=
statuses
.
sort_by
(
&
:name
).
group_by
(
&
:group_name
)
-
status_groups
.
each
do
|
group_name
,
grouped_statuses
|
-
if
grouped_statuses
.
one?
-
status
=
grouped_statuses
.
first
-
is_playable
=
status
.
playable?
&&
can?
(
current_user
,
:update_build
,
@project
)
%li
.build
{
class:
(
"playable"
if
is_playable
)
}
.curve
.build-content
=
render
"projects/
#{
status
.
to_partial_path
}
_pipeline"
,
subject:
status
-
else
%li
.build
.curve
.dropdown.inline.build-content
=
render
"projects/stage/in_stage_group"
,
name:
group_name
,
subject:
grouped_statuses
app/views/projects/
commit/_pipeline_status
_group.html.haml
→
app/views/projects/
stage/_in_stage
_group.html.haml
View file @
401c155e
File moved
app/views/projects/stage/_stage.html.haml
View file @
401c155e
%tr
%tr
%th
{
colspan:
10
}
%th
{
colspan:
10
}
%strong
%strong
%a
{
name:
subject
.
name
}
%a
{
name:
subject
.
name
}
%span
{
class:
"ci-status-link ci-status-icon-#{subject.status}"
}
%span
{
class:
"ci-status-link ci-status-icon-#{subject.status}"
}
=
ci_icon_for_status
(
subject
.
status
)
=
ci_icon_for_status
(
subject
.
status
)
-
if
subject
.
name
-
if
subject
.
name
...
...
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