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
eec0f5da
Commit
eec0f5da
authored
Aug 12, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract pipeline badges to the separate view partial
parent
b646adef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
28 deletions
+29
-28
app/views/projects/pipelines_settings/_badges.html.haml
app/views/projects/pipelines_settings/_badges.html.haml
+28
-0
app/views/projects/pipelines_settings/show.html.haml
app/views/projects/pipelines_settings/show.html.haml
+1
-28
No files found.
app/views/projects/pipelines_settings/_badges.html.haml
0 → 100644
View file @
eec0f5da
-
badges
.
each
do
|
badge
|
.row
{
class:
badge
.
title
.
gsub
(
' '
,
'-'
)
}
.col-lg-3.profile-settings-sidebar
%h4
.prepend-top-0
=
badge
.
title
.
capitalize
.col-lg-9
.prepend-top-10
.panel.panel-default
.panel-heading
%b
=
badge
.
title
.
capitalize
·
=
badge
.
to_html
.pull-right
=
render
'shared/ref_switcher'
,
destination:
'badges'
,
align_right:
true
.panel-body
.row
.col-md-2.text-center
Markdown
.col-md-10.code.js-syntax-highlight
=
highlight
(
'.md'
,
badge
.
to_markdown
)
.row
%hr
.row
.col-md-2.text-center
HTML
.col-md-10.code.js-syntax-highlight
=
highlight
(
'.html'
,
badge
.
to_html
)
app/views/projects/pipelines_settings/show.html.haml
View file @
eec0f5da
...
...
@@ -77,31 +77,4 @@
%hr
.row.prepend-top-default
-
@badges
.
each
do
|
badge
|
.row
{
class:
badge
.
title
.
gsub
(
' '
,
'-'
)
}
.col-lg-3.profile-settings-sidebar
%h4
.prepend-top-0
=
badge
.
title
.
capitalize
.col-lg-9
.prepend-top-10
.panel.panel-default
.panel-heading
%b
=
badge
.
title
.
capitalize
·
=
badge
.
to_html
.pull-right
=
render
'shared/ref_switcher'
,
destination:
'badges'
,
align_right:
true
.panel-body
.row
.col-md-2.text-center
Markdown
.col-md-10.code.js-syntax-highlight
=
highlight
(
'.md'
,
badge
.
to_markdown
)
.row
%hr
.row
.col-md-2.text-center
HTML
.col-md-10.code.js-syntax-highlight
=
highlight
(
'.html'
,
badge
.
to_html
)
=
render
partial:
'badges'
,
object:
@badges
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