BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
b7619dad
Unverified
Commit
b7619dad
authored
Nov 09, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing param and title for tag
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
b67fdfff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
tags_controller.rb
app/controllers/projects/tags_controller.rb
+1
-1
edit.html.haml
app/views/projects/releases/edit.html.haml
+1
-0
show.html.haml
app/views/projects/tags/show.html.haml
+4
-3
No files found.
app/controllers/projects/tags_controller.rb
View file @
b7619dad
...
...
@@ -19,7 +19,7 @@ class Projects::TagsController < Projects::ApplicationController
def
create
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
@tag
=
result
[
:tag
]
...
...
app/views/projects/releases/edit.html.haml
View file @
b7619dad
-
page_title
"Edit"
,
@tag
.
name
,
"Tags"
=
render
"projects/commits/header_title"
=
render
"projects/commits/head"
...
...
app/views/projects/tags/show.html.haml
View file @
b7619dad
...
...
@@ -4,8 +4,9 @@
.gray-content-block
.pull-right
=
link_to
edit_namespace_project_tag_release_path
(
@project
.
namespace
,
@project
,
@tag
.
name
),
class:
'btn-grouped btn'
,
title:
'Edit release notes'
do
=
icon
(
"pencil"
)
-
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
=
icon
(
"pencil"
)
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@tag
.
name
),
class:
'btn btn-grouped'
,
title:
'Browse source code'
do
=
icon
(
'files-o'
)
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@tag
.
name
),
class:
'btn btn-grouped'
,
title:
'Browse commits'
do
...
...
@@ -35,4 +36,4 @@
=
preserve
do
=
markdown
@release
.
description
-
else
This tag has no release notes
yet. Press edit button to add one
This tag has no release notes
.
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