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