Commit 5f32b82a authored by Grzegorz Bizon's avatar Grzegorz Bizon

Change name of badge variable in badges controller

parent 15ea9718
...@@ -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) @build_badge = Gitlab::Badge::Build.new(@project, @ref)
end end
def build def build
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
.panel.panel-default .panel.panel-default
.panel-heading .panel-heading
%b Builds badge &middot; %b Builds badge &middot;
= @badge.to_html = @build_badge.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', @build_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', @build_badge.to_html)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment