1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
- commit = @repository.commit(tag.target)
%li
%h4
= link_to project_commits_path(@project, tag.name), class: "" do
%i.icon-tag
= tag.name
.pull-right
- if can? current_user, :download_code, @project
= render 'projects/repositories/download_archive', ref: tag.name, btn_class: 'btn-grouped btn-group-small'
- if can?(current_user, :admin_project, @project)
= link_to project_tag_path(@project, tag.name), class: 'btn btn-small btn-remove remove-row grouped', method: :delete, data: { confirm: 'Removed tag cannot be restored. Are you sure?'}, remote: true do
%i.icon-trash
- if commit
%ul.list-unstyled
= render 'projects/commits/inline_commit', commit: commit, project: @project
- else
%p
Cant find HEAD commit for this tag
|