Add home to breadcrum
This commit is contained in:
parent
bc21840262
commit
25d9a3d9b9
|
@ -4,7 +4,6 @@ class FrontController < ApplicationController
|
|||
|
||||
def show_breadcrumb
|
||||
@ancestors = Page.find(params[:id]).ancestors_and_self
|
||||
@ancestors.delete_at(0)
|
||||
end
|
||||
|
||||
def show_banner
|
||||
|
|
|
@ -148,7 +148,6 @@ module ParserCommon
|
|||
def parse_breadcrumbs_edit(body = nil, page = nil, edit=nil)
|
||||
body.css('breadcrumb').each do |breadcrumb|
|
||||
ancestors = Page.find(page.id).ancestors_and_self rescue nil
|
||||
ancestors.delete_at(0)
|
||||
res = ''
|
||||
if ancestors
|
||||
res << "<ul class='breadcrumb'>"
|
||||
|
|
Reference in New Issue