tags.html.haml 1002 Bytes
Newer Older
1
= render "commits/head"
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
2
- unless @tags.empty?
randx's avatar
randx committed
3
  %table
4
5
6
7
8
9
    %thead
      %tr
        %th Name
        %th Last commit
        %th Updated at
        %th
10
    - @tags.each do |tag|
11
      - commit = Commit.new(tag.commit)
12
      - commit = CommitDecorator.decorate(commit)
13
14
      %tr
        %td
15
          %strong= link_to tag.name, project_commits_path(@project, ref: tag.name), class: ""
16
        %td
17
          = link_to project_commit_path(@project, commit.id) do
18
            %code= commit.short_id
19
          = image_tag gravatar_icon(commit.author_email), class: "", width: 16
20
          = gfm escape_once(truncate(commit.title, length: 40))
21
        %td
22
          %span.update-author.right
23
            = time_ago_in_words(commit.committed_date)
24
25
26
            ago
             
        %td
27
          - if can? current_user, :download_code, @project
28
            = link_to "Download", archive_project_repository_path(@project, ref: tag.name), class: "visible_link download_repo_link"
29

30
- else
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
31
  %h3 No tags