Commit beb324c1 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fixed updir method. Fixed breadcrumbs for commits

parent d8f7748d
......@@ -21,7 +21,7 @@ class TreeDecorator < ApplicationDecorator
end
def up_dir?
!!path
path.present?
end
def up_dir_path
......
= 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"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment