From 25d9a3d9b937d63edaee595f706fb90f271eff59 Mon Sep 17 00:00:00 2001 From: chris Date: Thu, 7 Feb 2013 17:09:02 +0800 Subject: [PATCH] Add home to breadcrum --- app/controllers/front_controller.rb | 1 - lib/parsers/parser_common.rb | 1 - 2 files changed, 2 deletions(-) diff --git a/app/controllers/front_controller.rb b/app/controllers/front_controller.rb index 686c504e..4158bf15 100644 --- a/app/controllers/front_controller.rb +++ b/app/controllers/front_controller.rb @@ -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 diff --git a/lib/parsers/parser_common.rb b/lib/parsers/parser_common.rb index 26e6a57d..491b7a4e 100644 --- a/lib/parsers/parser_common.rb +++ b/lib/parsers/parser_common.rb @@ -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 << "