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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
5f32b82a
Commit
5f32b82a
authored
Apr 06, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change name of badge variable in badges controller
parent
15ea9718
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/controllers/projects/badges_controller.rb
app/controllers/projects/badges_controller.rb
+1
-1
app/views/projects/badges/index.html.haml
app/views/projects/badges/index.html.haml
+3
-3
No files found.
app/controllers/projects/badges_controller.rb
View file @
5f32b82a
...
@@ -5,7 +5,7 @@ class Projects::BadgesController < Projects::ApplicationController
...
@@ -5,7 +5,7 @@ class Projects::BadgesController < Projects::ApplicationController
def
index
def
index
@ref
=
params
[
:ref
]
||
'master'
@ref
=
params
[
:ref
]
||
'master'
@badge
=
Gitlab
::
Badge
::
Build
.
new
(
@project
,
@ref
)
@b
uild_b
adge
=
Gitlab
::
Badge
::
Build
.
new
(
@project
,
@ref
)
end
end
def
build
def
build
...
...
app/views/projects/badges/index.html.haml
View file @
5f32b82a
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
.panel.panel-default
.panel.panel-default
.panel-heading
.panel-heading
%b
Builds badge
·
%b
Builds badge
·
=
@badge
.
to_html
=
@b
uild_b
adge
.
to_html
.pull-right
.pull-right
=
render
'shared/ref_switcher'
,
destination:
'badges'
=
render
'shared/ref_switcher'
,
destination:
'badges'
.panel-body
.panel-body
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
.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'
,
@b
uild_b
adge
.
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'
,
@b
uild_b
adge
.
to_html
)
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