breadcrumb widget of front-end has done
Conflicts: app/controllers/front_controller.rb lib/parsers/parser_common.rb
This commit is contained in:
1 parent
f3bfe67e68
commit
bfad8467c8
2 files changed
+3
-6
No files matched your search
@@ -147,7 +147,7 @@ module ParserCommon
|
||||
# breadcrumb
|
||||
def parse_breadcrumbs_edit(body = nil, page = nil, edit=nil)
|
||||
body.css('breadcrumb').each do |breadcrumb|
|
||||
ancestors = Page.find(page.id).ancestors_and_self.map{|m|m.title} rescue nil
|
||||
ancestors = Page.find(page.id).ancestors_and_self rescue nil
|
||||
ancestors.delete_at(0)
|
||||
res = ''
|
||||
|
||||
@@ -156,7 +156,7 @@ module ParserCommon
|
||||
res << "<ul class='list'>"
|
||||
ancestors.each do |node|
|
||||
res << "<li class='active'>"
|
||||
res << "<a herf ='/#{node.path} )}>#{node}</a>"
|
||||
res << "<a herf='/#{node.path}'>#{node.title}</a>"
|
||||
res << "</li>"
|
||||
end
|
||||
res << "</ul>"
|
||||
@@ -207,10 +207,7 @@ module ParserCommon
|
||||
''
|
||||
end
|
||||
end
|
||||
<<<<<<< HEAD
|
||||
|
||||
=======
|
||||
>>>>>>> cf956ac... breadcrumb widget of back-end has done, front-end has bug...
|
||||
# sitemap
|
||||
def parse_sitemaps_edit(body = nil, page = nil, edit=nil)
|
||||
sitemap = body.css('sitemap').first
|
||||
|
||||
Reference in new issue
Block a user