BigW Consortium Gitlab

_branch.html.haml 892 Bytes
Newer Older
1 2
- commit = Commit.new(branch.commit)
- commit = CommitDecorator.decorate(commit)
3 4
%tr
  %td
Robert Speicher committed
5
    = link_to project_commits_path(@project, branch.name) do
6 7 8 9
      - if @project.protected_branch? branch.name
        %i.icon-lock
      - else
        %i.icon-unlock
10
      %strong= truncate(branch.name, length: 60)
11 12 13
      - if branch.name == @project.root_ref
        %span.label default
  %td
14 15 16 17 18 19
    = link_to project_commit_path(@project, commit.id), class: 'commit_short_id' do
      = commit.short_id
    = image_tag gravatar_icon(commit.author_email), class: "avatar s16"
    %span.light
      = gfm escape_once(truncate(commit.title, length: 40))
    %span
20
      = time_ago_in_words(commit.committed_date)
21 22 23
      ago
  %td
    - if can? current_user, :download_code, @project
24 25 26
      = link_to archive_project_repository_path(@project, ref: branch.name) do
        %i.icon-download
        Download
27