Add home to breadcrum

This commit is contained in:
chris 2013-02-07 17:09:02 +08:00
parent bc21840262
commit 25d9a3d9b9
2 changed files with 0 additions and 2 deletions

View File

@ -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

View File

@ -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'>"