Make it possible to switch ref in badges view
This commit is contained in:
parent
a2bbd2501a
commit
97a2de9e03
2 changed files with 4 additions and 0 deletions
|
@ -24,6 +24,8 @@ class Projects::RefsController < Projects::ApplicationController
|
|||
namespace_project_find_file_path(@project.namespace, @project, @id)
|
||||
when "graphs_commits"
|
||||
commits_namespace_project_graph_path(@project.namespace, @project, @id)
|
||||
when "badges"
|
||||
namespace_project_badges_path(@project.namespace, @project, ref: @id)
|
||||
else
|
||||
namespace_project_commits_path(@project.namespace, @project, @id)
|
||||
end
|
||||
|
|
|
@ -7,6 +7,8 @@
|
|||
.panel-heading
|
||||
%b Builds badge ·
|
||||
= @badge.to_html
|
||||
.pull-right
|
||||
= render 'shared/ref_switcher', destination: 'badges'
|
||||
.panel-body
|
||||
.row
|
||||
.col-md-2.text-center
|
||||
|
|
Loading…
Reference in a new issue