Change name of badge variable in badges controller
This commit is contained in:
parent
15ea971847
commit
5f32b82a80
|
@ -5,7 +5,7 @@ class Projects::BadgesController < Projects::ApplicationController
|
|||
|
||||
def index
|
||||
@ref = params[:ref] || 'master'
|
||||
@badge = Gitlab::Badge::Build.new(@project, @ref)
|
||||
@build_badge = Gitlab::Badge::Build.new(@project, @ref)
|
||||
end
|
||||
|
||||
def build
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
.panel.panel-default
|
||||
.panel-heading
|
||||
%b Builds badge ·
|
||||
= @badge.to_html
|
||||
= @build_badge.to_html
|
||||
.pull-right
|
||||
= render 'shared/ref_switcher', destination: 'badges'
|
||||
.panel-body
|
||||
|
@ -14,11 +14,11 @@
|
|||
.col-md-2.text-center
|
||||
Markdown
|
||||
.col-md-10.code.js-syntax-highlight
|
||||
= highlight('.md', @badge.to_markdown)
|
||||
= highlight('.md', @build_badge.to_markdown)
|
||||
.row
|
||||
%hr
|
||||
.row
|
||||
.col-md-2.text-center
|
||||
HTML
|
||||
.col-md-10.code.js-syntax-highlight
|
||||
= highlight('.html', @badge.to_html)
|
||||
= highlight('.html', @build_badge.to_html)
|
||||
|
|
Loading…
Reference in New Issue