Commit b7619dad authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add missing param and title for tag

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent b67fdfff
...@@ -19,7 +19,7 @@ class Projects::TagsController < Projects::ApplicationController ...@@ -19,7 +19,7 @@ class Projects::TagsController < Projects::ApplicationController
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], params[:release_description])
if result[:status] == :success if result[:status] == :success
@tag = result[:tag] @tag = result[:tag]
......
- page_title "Edit", @tag.name, "Tags"
= render "projects/commits/header_title" = render "projects/commits/header_title"
= render "projects/commits/head" = render "projects/commits/head"
......
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
.gray-content-block .gray-content-block
.pull-right .pull-right
- if can?(current_user, :push_code, @project)
= link_to edit_namespace_project_tag_release_path(@project.namespace, @project, @tag.name), class: 'btn-grouped btn', title: 'Edit release notes' do = link_to edit_namespace_project_tag_release_path(@project.namespace, @project, @tag.name), class: 'btn-grouped btn', title: 'Edit release notes' do
= icon("pencil") = icon("pencil")
= link_to namespace_project_tree_path(@project.namespace, @project, @tag.name), class: 'btn btn-grouped', title: 'Browse source code' do = link_to namespace_project_tree_path(@project.namespace, @project, @tag.name), class: 'btn btn-grouped', title: 'Browse source code' do
...@@ -35,4 +36,4 @@ ...@@ -35,4 +36,4 @@
= preserve do = preserve do
= markdown @release.description = markdown @release.description
- else - else
This tag has no release notes yet. Press edit button to add one This tag has no release notes.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment