Add edit/update tag actions for future release notes
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
95da91a66d
commit
33b8f00263
|
@ -10,6 +10,14 @@ class Projects::TagsController < Projects::ApplicationController
|
||||||
@tags = Kaminari.paginate_array(sorted).page(params[:page]).per(PER_PAGE)
|
@tags = Kaminari.paginate_array(sorted).page(params[:page]).per(PER_PAGE)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def edit
|
||||||
|
# TODO: implement
|
||||||
|
end
|
||||||
|
|
||||||
|
def update
|
||||||
|
# TODO: implement
|
||||||
|
end
|
||||||
|
|
||||||
def create
|
def create
|
||||||
result = CreateTagService.new(@project, current_user).
|
result = CreateTagService.new(@project, current_user).
|
||||||
execute(params[:tag_name], params[:ref], params[:message])
|
execute(params[:tag_name], params[:ref], params[:message])
|
||||||
|
|
|
@ -9,6 +9,8 @@
|
||||||
|
|
||||||
= strip_gpg_signature(tag.message)
|
= strip_gpg_signature(tag.message)
|
||||||
.controls
|
.controls
|
||||||
|
= link_to edit_namespace_project_tag_path(@project.namespace, @project, tag.name), class: 'btn-grouped btn' do
|
||||||
|
= icon("pencil")
|
||||||
- if can? current_user, :download_code, @project
|
- if can? current_user, :download_code, @project
|
||||||
= render 'projects/repositories/download_archive', ref: tag.name, btn_class: 'btn-grouped btn-group-xs'
|
= render 'projects/repositories/download_archive', ref: tag.name, btn_class: 'btn-grouped btn-group-xs'
|
||||||
- if can?(current_user, :admin_project, @project)
|
- if can?(current_user, :admin_project, @project)
|
||||||
|
|
|
@ -569,7 +569,7 @@ Gitlab::Application.routes.draw do
|
||||||
end
|
end
|
||||||
|
|
||||||
resources :branches, only: [:index, :new, :create, :destroy], constraints: { id: Gitlab::Regex.git_reference_regex }
|
resources :branches, only: [:index, :new, :create, :destroy], constraints: { id: Gitlab::Regex.git_reference_regex }
|
||||||
resources :tags, only: [:index, :new, :create, :destroy], constraints: { id: Gitlab::Regex.git_reference_regex }
|
resources :tags, constraints: { id: Gitlab::Regex.git_reference_regex }
|
||||||
resources :protected_branches, only: [:index, :create, :update, :destroy], constraints: { id: Gitlab::Regex.git_reference_regex }
|
resources :protected_branches, only: [:index, :create, :update, :destroy], constraints: { id: Gitlab::Regex.git_reference_regex }
|
||||||
resource :variables, only: [:show, :update]
|
resource :variables, only: [:show, :update]
|
||||||
resources :triggers, only: [:index, :create, :destroy]
|
resources :triggers, only: [:index, :create, :destroy]
|
||||||
|
|
Loading…
Reference in New Issue