Fixed updir method. Fixed breadcrumbs for commits

This commit is contained in:
Dmitriy Zaporozhets 2012-09-27 09:49:00 +03:00
parent d8f7748dea
commit beb324c1c6
2 changed files with 6 additions and 6 deletions

View file

@ -21,7 +21,7 @@ class TreeDecorator < ApplicationDecorator
end end
def up_dir? def up_dir?
!!path path.present?
end end
def up_dir_path def up_dir_path

View file

@ -1,6 +1,6 @@
= render "head" = render "head"
- if params[:path] - if @path
%ul.breadcrumb %ul.breadcrumb
%li %li
%span.arrow %span.arrow
@ -9,7 +9,7 @@
%span.divider %span.divider
\/ \/
%li %li
%a{href: "#"}= params[:path].split("/").join(" / ") %a{href: "#"}= @path.split("/").join(" / ")
%div{id: dom_id(@project)} %div{id: dom_id(@project)}
#commits_list= render "commits" #commits_list= render "commits"