Fixed updir method. Fixed breadcrumbs for commits
This commit is contained in:
parent
d8f7748dea
commit
beb324c1c6
2 changed files with 6 additions and 6 deletions
|
@ -21,7 +21,7 @@ class TreeDecorator < ApplicationDecorator
|
|||
end
|
||||
|
||||
def up_dir?
|
||||
!!path
|
||||
path.present?
|
||||
end
|
||||
|
||||
def up_dir_path
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
= render "head"
|
||||
|
||||
- if params[:path]
|
||||
- if @path
|
||||
%ul.breadcrumb
|
||||
%li
|
||||
%span.arrow
|
||||
|
@ -9,7 +9,7 @@
|
|||
%span.divider
|
||||
\/
|
||||
%li
|
||||
%a{href: "#"}= params[:path].split("/").join(" / ")
|
||||
%a{href: "#"}= @path.split("/").join(" / ")
|
||||
|
||||
%div{id: dom_id(@project)}
|
||||
#commits_list= render "commits"
|
||||
|
|
Loading…
Reference in a new issue