Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/repositories/tags.html.haml')
-rw-r--r--app/views/projects/repositories/tags.html.haml36
1 files changed, 36 insertions, 0 deletions
diff --git a/app/views/projects/repositories/tags.html.haml b/app/views/projects/repositories/tags.html.haml
new file mode 100644
index 00000000000..5972ea6c531
--- /dev/null
+++ b/app/views/projects/repositories/tags.html.haml
@@ -0,0 +1,36 @@
+= render "projects/commits/head"
+- unless @tags.empty?
+ %ul.bordered-list
+ - @tags.each do |tag|
+ - commit = Commit.new(Gitlab::Git::Commit.new(tag.commit))
+ %li
+ %h5
+ = link_to project_commits_path(@project, tag.name), class: "" do
+ %i.icon-tag
+ = tag.name
+ %small
+ = truncate(tag.message || '', length: 70)
+ .pull-right
+ %span.light
+ = time_ago_in_words(commit.committed_date)
+ ago
+ %div.prepend-left-20
+ = link_to commit.short_id(8), project_commit_path(@project, commit), class: "monospace"
+ –
+ = link_to_gfm truncate(commit.title, length: 70), project_commit_path(@project, commit.id), class: "cdark"
+
+ - if can? current_user, :download_code, @project
+ .pull-right
+ = link_to archive_project_repository_path(@project, ref: tag.name) do
+ %i.icon-download-alt
+ Download
+
+
+- else
+ %h3.nothing_here_message
+ Repository has no tags yet.
+ %br
+ %small
+ Use git tag command to add a new one:
+ %br
+ %span.monospace git tag -a v1.4 -m 'version 1.4'