_branch.html.haml 786 Bytes
Newer Older
1
2
- commit = Commit.new(branch.commit)
- commit = CommitDecorator.decorate(commit)
3
4
%tr
  %td
5
6
    = link_to project_commits_path(@project, ref: branch.name) do
      %strong= truncate(branch.name, length: 60)
7
8
9
      - if branch.name == @project.root_ref
        %span.label default
  %td
10
    = link_to project_commit_path(@project, id: commit.id) do
11
      %code= commit.short_id
12

13
    = image_tag gravatar_icon(commit.author_email), class: "", width: 16
14
    = gfm escape_once(truncate(commit.title, length: 40))
15
    %span.update-author.right
16
      = time_ago_in_words(commit.committed_date)
17
18
19
      ago
  %td
    - if can? current_user, :download_code, @project
20
      = link_to "Download", archive_project_repository_path(@project, ref: branch.name), class: "visible_link download_repo_link"
21