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
(
' '
,
'-'
)
}
.row
{
class:
badge
.
title
.
gsub
(
' '
,
'-'
)
}
.col-lg-3.profile-settings-sidebar
.col-lg-3.profile-settings-sidebar
%h4
.prepend-top-0
%h4
.prepend-top-0
=
badge
.
title
.
capitalize
=
badge
.
title
.
capitalize
.col-lg-9
.col-lg-9
.prepend-top-10
.prepend-top-10
.panel.panel-default
.panel.panel-default
.panel-heading
.panel-heading
%b
%b
=
badge
.
title
.
capitalize
=
badge
.
title
.
capitalize
·
·
=
badge
.
to_html
=
badge
.
to_html
.pull-right
.pull-right
=
render
'shared/ref_switcher'
,
destination:
'badges'
,
align_right:
true
=
render
'shared/ref_switcher'
,
destination:
'badges'
,
align_right:
true
.panel-body
.panel-body
.row
.row
.col-md-2.text-center
.col-md-2.text-center
Markdown
Markdown
.col-md-10.code.js-syntax-highlight
.col-md-10.code.js-syntax-highlight
=
highlight
(
'.md'
,
badge
.
to_markdown
)
=
highlight
(
'.md'
,
badge
.
to_markdown
)
.row
.row
%hr
%hr
.row
.row
.col-md-2.text-center
.col-md-2.text-center
HTML
HTML
.col-md-10.code.js-syntax-highlight
.col-md-10.code.js-syntax-highlight
=
highlight
(
'.html'
,
badge
.
to_html
)
=
highlight
(
'.html'
,
badge
.
to_html
)
app/views/projects/pipelines_settings/show.html.haml
View file @
0c81279e
...
@@ -77,4 +77,4 @@
...
@@ -77,4 +77,4 @@
%hr
%hr
.row.prepend-top-default
.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