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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
667aba6f
Commit
667aba6f
authored
Jul 14, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused badges page and delete badges index controller action
parent
8ae4b861
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
28 deletions
+0
-28
app/controllers/projects/badges_controller.rb
app/controllers/projects/badges_controller.rb
+0
-5
app/views/projects/badges/index.html.haml
app/views/projects/badges/index.html.haml
+0
-23
No files found.
app/controllers/projects/badges_controller.rb
View file @
667aba6f
...
@@ -3,11 +3,6 @@ class Projects::BadgesController < Projects::ApplicationController
...
@@ -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
])
...
...
app/views/projects/badges/index.html.haml
deleted
100644 → 0
View file @
8ae4b861
-
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
)
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