Slide 26
Slide 26 text
<% if current_repository.pushable_by?(current_user) %>
<% if pull_request &&
pull_request.head_ref_deletable_by?(current_user) &&
branch != current_repository.default_branch %>
<%= link_to "Delete branch", … %>
<% end %>
<% end %>
<% if view.can_delete_branch? %>
<%= link_to "Delete branch", … %>
<% end %>