BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
0c81279e
Commit
0c81279e
authored
Aug 12, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Render collection of badges instead of using iterator
parent
eec0f5da
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
29 deletions
+28
-29
_badge.html.haml
app/views/projects/pipelines_settings/_badge.html.haml
+27
-28
show.html.haml
app/views/projects/pipelines_settings/show.html.haml
+1
-1
No files found.
app/views/projects/pipelines_settings/_badge
s
.html.haml
→
app/views/projects/pipelines_settings/_badge.html.haml
View file @
0c81279e
-
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
)
.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 @
0c81279e
...
...
@@ -77,4 +77,4 @@
%hr
.row.prepend-top-default
=
render
partial:
'badge
s'
,
object
:
@badges
=
render
partial:
'badge
'
,
collection
:
@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