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

17 lines
831 B
Plaintext

<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>
<span><%= sitemap_block_counter + 1 %> <%= sitemap_block.title %></span>
</h4>
<ul>
<% sitemap_block.children.each_with_index do |child, i| %>
<li class="clear <%= 'disabled' if !child.sitemap_enabled %>">
<%= 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>
</li>
<% end if sitemap_block.children %>
</ul>
</div>