Remove breadcrumb when home
This commit is contained in:
parent
25d9a3d9b9
commit
ec9c68f039
|
@ -4,6 +4,7 @@ class FrontController < ApplicationController
|
|||
|
||||
def show_breadcrumb
|
||||
@ancestors = Page.find(params[:id]).ancestors_and_self
|
||||
@ancestors = nil if @ancestors.size == 1
|
||||
end
|
||||
|
||||
def show_banner
|
||||
|
|
|
@ -148,6 +148,7 @@ 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 = nil if ancestors.size == 1
|
||||
res = ''
|
||||
if ancestors
|
||||
res << "<ul class='breadcrumb'>"
|
||||
|
|
Reference in New Issue