Remove breadcrumb when home

This commit is contained in:
chris committed 2013-02-19 17:49:22 +08:00
1 parent 25d9a3d9b9
commit ec9c68f039
2 files changed
+2

No files matched your search

+1
View File
@@ -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