rosa-build/app/views/projects/git/trees/_branch.html.haml

10 lines
366 B
Plaintext

- base = branch.name == @branch.name
%tr{:class => (base ? 'base' : '')}
%td.name= link_to branch.name, tree_path(@project, branch.name)
%td.actions
%ul.actions
- if base
%li.text= t('layout.projects.base_branch')
- else
%li
= link_to t('layout.projects.compare'), diff_path(@project, "#{@branch.name}...#{branch.name}")