summaryrefslogtreecommitdiff
path: root/app/views/projects/releases
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-05 13:49:34 +0100
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-11-05 13:49:34 +0100
commit850bb21b12b21fe0cf943278bc8cadad85d48dc5 (patch)
treec06ee98fc285182448bdf9e29a6231b8796d5329 /app/views/projects/releases
parenta4d75e3aec2e721231bc1e01a2e5e87aefe15113 (diff)
downloadgitlab-ce-850bb21b12b21fe0cf943278bc8cadad85d48dc5.tar.gz
Create show page for tag and render release notes there and on index page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/projects/releases')
-rw-r--r--app/views/projects/releases/edit.html.haml3
-rw-r--r--app/views/projects/releases/show.html.haml35
2 files changed, 1 insertions, 37 deletions
diff --git a/app/views/projects/releases/edit.html.haml b/app/views/projects/releases/edit.html.haml
index 612e4696226..fb841b77a25 100644
--- a/app/views/projects/releases/edit.html.haml
+++ b/app/views/projects/releases/edit.html.haml
@@ -13,6 +13,5 @@
.error-alert
.prepend-top-default
= f.submit 'Save changes', class: 'btn btn-save'
- - if @release.persisted?
- = link_to "Cancel", namespace_project_tag_release_path(@project.namespace, @project, @tag.name), class: "btn btn-default btn-cancel"
+ = link_to "Cancel", namespace_project_tag_path(@project.namespace, @project, @tag.name), class: "btn btn-default btn-cancel"
diff --git a/app/views/projects/releases/show.html.haml b/app/views/projects/releases/show.html.haml
deleted file mode 100644
index 606510f132f..00000000000
--- a/app/views/projects/releases/show.html.haml
+++ /dev/null
@@ -1,35 +0,0 @@
-- page_title @release.tag, "Releases"
-= render "projects/commits/header_title"
-= render "projects/commits/head"
-
-.gray-content-block
- .pull-right
- = link_to edit_namespace_project_tag_release_path(@project.namespace, @project, @tag.name), class: 'btn-grouped btn' do
- = icon("pencil")
- .oneline Release notes for #{@tag.name}
-
-.append-bottom-default.prepend-top-default
- - if @release.description.present?
- .description
- .wiki
- = preserve do
- = markdown @release.description
- - else
- This tag has no release notes yet. Press edit button to add one
-
-.gray-content-block.middle-block.clearfix
- = link_to namespace_project_tree_path(@project.namespace, @project, @tag.name), class: 'btn btn-grouped' do
- Browse code
- = link_to namespace_project_commits_path(@project.namespace, @project, @tag.name), class: 'btn btn-grouped' do
- Commits
- - if can? current_user, :download_code, @project
- = render 'projects/repositories/download_archive', ref: @tag.name, btn_class: 'btn-grouped'
- -#- if can?(current_user, :admin_project, @project)
- = link_to namespace_project_tag_path(@project.namespace, @project, @tag.name), class: 'btn btn-remove remove-row grouped', method: :delete, data: { confirm: 'Removed tag cannot be restored. Are you sure?'}, remote: true do
- %i.fa.fa-trash-o
-
-.gray-content-block.second-block
- - if @commit
- = render 'projects/commits/commit', commit: @commit, project: @project
- - else
- Cant find HEAD commit for this tag