Fixed protected branches and file edit

This commit is contained in:
Dmitriy Zaporozhets 2013-01-04 21:45:30 +02:00
parent afbdbb0c95
commit ef5b36eaaf
9 changed files with 21 additions and 20 deletions

View file

@ -36,7 +36,7 @@
%td
= link_to project_commits_path(@project, branch.name) do
%strong= branch.name
- if branch.name == @project.root_ref
- if @project.root_ref?(branch.name)
%span.label default
%td
- if branch.commit

View file

@ -5,7 +5,7 @@
= link_to project_commits_path(@project, commit.head.name) do
%strong
= commit.head.name
- if commit.head.name == @project.root_ref
- if @project.root_ref?(commit.head.name)
%span.label default
%td