Remove unused badges page and delete badges index controller action
This commit is contained in:
parent
8ae4b8619b
commit
667aba6f3b
2 changed files with 0 additions and 28 deletions
|
@ -3,11 +3,6 @@ class Projects::BadgesController < Projects::ApplicationController
|
||||||
before_action :authorize_admin_project!, only: [:index]
|
before_action :authorize_admin_project!, only: [:index]
|
||||||
before_action :no_cache_headers, except: [:index]
|
before_action :no_cache_headers, except: [:index]
|
||||||
|
|
||||||
def index
|
|
||||||
@ref = params[:ref] || @project.default_branch || 'master'
|
|
||||||
@build_badge = Gitlab::Badge::Build.new(@project, @ref)
|
|
||||||
end
|
|
||||||
|
|
||||||
def build
|
def build
|
||||||
badge = Gitlab::Badge::Build.new(project, params[:ref])
|
badge = Gitlab::Badge::Build.new(project, params[:ref])
|
||||||
|
|
||||||
|
|
|
@ -1,23 +0,0 @@
|
||||||
- page_title 'Badges'
|
|
||||||
- badges_path = namespace_project_badges_path(@project.namespace, @project)
|
|
||||||
|
|
||||||
.prepend-top-10
|
|
||||||
.panel.panel-default
|
|
||||||
.panel-heading
|
|
||||||
%b Builds badge ·
|
|
||||||
= @build_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', @build_badge.to_markdown)
|
|
||||||
.row
|
|
||||||
%hr
|
|
||||||
.row
|
|
||||||
.col-md-2.text-center
|
|
||||||
HTML
|
|
||||||
.col-md-10.code.js-syntax-highlight
|
|
||||||
= highlight('.html', @build_badge.to_html)
|
|
Loading…
Reference in a new issue