Commit 2d076394 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix github issue #967

parent 0530e5ba
...@@ -39,10 +39,13 @@ ...@@ -39,10 +39,13 @@
- if branch.name == @project.root_ref - if branch.name == @project.root_ref
%span.label default %span.label default
%td %td
= link_to project_commit_path(@project, branch.commit.id) do - if branch.commit
= truncate branch.commit.id.to_s, length: 10 = link_to project_commit_path(@project, branch.commit.id) do
= time_ago_in_words(branch.commit.committed_date) = truncate branch.commit.id.to_s, length: 10
ago = time_ago_in_words(branch.commit.committed_date)
ago
- else
(branch was removed from repository)
%td %td
- if can? current_user, :admin_project, @project - if can? current_user, :admin_project, @project
= link_to 'Unprotect', [@project, branch], confirm: 'Are you sure?', method: :delete, class: "danger btn small" = link_to 'Unprotect', [@project, branch], confirm: 'Are you sure?', method: :delete, class: "danger btn small"
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment