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