Add links to frontend_sitemap
This commit is contained in:
parent
25a911b4f8
commit
4df4274629
|
@ -1,10 +1,10 @@
|
||||||
<div class="site-map">
|
<div class="site-map">
|
||||||
<% @items.each_with_index do |item, i| %>
|
<% @items.each_with_index do |item, i| %>
|
||||||
<div class="map-block">
|
<div class="map-block">
|
||||||
<h4><%= i+1 %> <%= item.title %></h4>
|
<h4><%= i+1 %> <%= "<a href='#{item.url)}'>#{item.title}</a>" %></h4>
|
||||||
<ul>
|
<ul>
|
||||||
<% item.children.each_with_index do |child, ii| %>
|
<% item.children.each_with_index do |child, ii| %>
|
||||||
<li class="clear"><%= "#{i+1}-#{ii+1}" %> <%= child.title %></span></li>
|
<li class="clear"><%= "#{i+1}-#{ii+1}" %> <%= "<a href='#{child.url)}'>#{child.title}</a>" %></span></li>
|
||||||
<% end if item.children %>
|
<% end if item.children %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue