orbit-basic/app/views/admin/sites/_sitemap_block.html.erb

17 lines
831 B
Plaintext
Raw Normal View History

2012-07-27 04:05:17 +00:00
<div class="map-block <%= 'disabled' if !sitemap_block.sitemap_enabled %>">
<h4>
<button id="<%= sitemap_block.id %>" class="onoff pull-right"><%= sitemap_block.sitemap_enabled ? t('on_upcase') : t('off_upcase') %></button>
2012-07-27 08:53:12 +00:00
<span><%= sitemap_block_counter + 1 %> <%= sitemap_block.title %></span>
2012-07-27 04:05:17 +00:00
</h4>
2012-07-26 07:37:29 +00:00
<ul>
2012-07-27 08:53:12 +00:00
<% sitemap_block.children.each_with_index do |child, i| %>
2012-07-26 07:37:29 +00:00
<li class="clear <%= 'disabled' if !child.sitemap_enabled %>">
2012-07-27 08:53:12 +00:00
<%= content_tag :button, :id => child.id, :class => "onoff pull-right", :disabled => !sitemap_block.sitemap_enabled do %>
<%= child.sitemap_enabled ? t('on_upcase') : t('off_upcase') %>
<% end %>
<span><%= "#{sitemap_block_counter + 1}-#{i + 1}" %> <%= child.title %></span>
2012-07-26 07:37:29 +00:00
</li>
<% end if sitemap_block.children %>
</ul>
2012-07-27 08:53:12 +00:00
</div>