Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
b7619dad
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
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
app/controllers/projects/tags_controller.rb
app/controllers/projects/tags_controller.rb
+1
-1
app/views/projects/releases/edit.html.haml
app/views/projects/releases/edit.html.haml
+1
-0
app/views/projects/tags/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
...
@@ -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
]
...
...
app/views/projects/releases/edit.html.haml
View file @
b7619dad
-
page_title
"Edit"
,
@tag
.
name
,
"Tags"
=
render
"projects/commits/header_title"
=
render
"projects/commits/header_title"
=
render
"projects/commits/head"
=
render
"projects/commits/head"
...
...
app/views/projects/tags/show.html.haml
View file @
b7619dad
...
@@ -4,8 +4,9 @@
...
@@ -4,8 +4,9 @@
.gray-content-block
.gray-content-block
.pull-right
.pull-right
=
link_to
edit_namespace_project_tag_release_path
(
@project
.
namespace
,
@project
,
@tag
.
name
),
class:
'btn-grouped btn'
,
title:
'Edit release notes'
do
-
if
can?
(
current_user
,
:push_code
,
@project
)
=
icon
(
"pencil"
)
=
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
=
link_to
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
@tag
.
name
),
class:
'btn btn-grouped'
,
title:
'Browse source code'
do
=
icon
(
'files-o'
)
=
icon
(
'files-o'
)
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@tag
.
name
),
class:
'btn btn-grouped'
,
title:
'Browse commits'
do
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@tag
.
name
),
class:
'btn btn-grouped'
,
title:
'Browse commits'
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
.
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