2014-09-02 18:07:02 +05:30
|
|
|
- commit = @repository.commit(tag.target)
|
|
|
|
%li
|
|
|
|
%h4
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to namespace_project_commits_path(@project.namespace, @project, tag.name), class: "" do
|
|
|
|
%i.fa.fa-tag
|
2014-09-02 18:07:02 +05:30
|
|
|
= tag.name
|
2015-04-26 12:48:37 +05:30
|
|
|
- if tag.message.present?
|
|
|
|
|
|
|
|
= strip_gpg_signature(tag.message)
|
2014-09-02 18:07:02 +05:30
|
|
|
.pull-right
|
|
|
|
- if can? current_user, :download_code, @project
|
2015-04-26 12:48:37 +05:30
|
|
|
= render 'projects/repositories/download_archive', ref: tag.name, btn_class: 'btn-grouped btn-group-xs'
|
2014-09-02 18:07:02 +05:30
|
|
|
- if can?(current_user, :admin_project, @project)
|
2015-04-26 12:48:37 +05:30
|
|
|
= link_to namespace_project_tag_path(@project.namespace, @project, tag.name), class: 'btn btn-xs 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
|
2014-09-02 18:07:02 +05:30
|
|
|
|
|
|
|
- if commit
|
|
|
|
%ul.list-unstyled
|
|
|
|
= render 'projects/commits/inline_commit', commit: commit, project: @project
|
|
|
|
- else
|
|
|
|
%p
|
|
|
|
Cant find HEAD commit for this tag
|