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
iv
gitlab-ce
Commits
a3a93ba4
Commit
a3a93ba4
authored
Apr 04, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose project badges in project settings menu
parent
97a2de9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
app/controllers/projects/badges_controller.rb
app/controllers/projects/badges_controller.rb
+2
-0
app/views/layouts/nav/_project_settings.html.haml
app/views/layouts/nav/_project_settings.html.haml
+6
-1
No files found.
app/controllers/projects/badges_controller.rb
View file @
a3a93ba4
class
Projects::BadgesController
<
Projects
::
ApplicationController
layout
'project_settings'
before_action
:authorize_admin_project!
,
only:
[
:index
]
before_action
:no_cache_headers
,
except:
[
:index
]
def
index
...
...
app/views/layouts/nav/_project_settings.html.haml
View file @
a3a93ba4
...
...
@@ -51,8 +51,13 @@
=
icon
(
'code fw'
)
%span
Variables
=
nav_link
path:
'triggers#index'
do
=
nav_link
(
controller: :triggers
)
do
=
link_to
namespace_project_triggers_path
(
@project
.
namespace
,
@project
),
title:
'Triggers'
do
=
icon
(
'retweet fw'
)
%span
Triggers
=
nav_link
(
controller: :badges
)
do
=
link_to
namespace_project_badges_path
(
@project
.
namespace
,
@project
),
title:
'Badges'
do
=
icon
(
'star-half-empty fw'
)
%span
Badges
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