This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
2012-12-19 09:15:31 +00:00
|
|
|
<div class="map-block <%= 'disabled' if !sitemap_block.show_in_sitemap_for(temp_locale) %>">
|
2012-07-27 04:05:17 +00:00
|
|
|
<h4>
|
2012-12-19 09:15:31 +00:00
|
|
|
<button id="<%= sitemap_block.id %>" class="onoff pull-right" temp_locale="<%= temp_locale %>"><%= sitemap_block.show_in_sitemap_for(temp_locale) ? t('on_upcase') : t('off_upcase') %></button>
|
|
|
|
<span><%= sitemap_block_counter + 1 %> <%= sitemap_block.title_translations[temp_locale] %></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-12-19 09:15:31 +00:00
|
|
|
<li class="clear <%= 'disabled' if !child.show_in_sitemap_for(temp_locale) %>">
|
|
|
|
<%= content_tag :button, :id => child.id, :class => "onoff pull-right", :temp_locale => temp_locale, :disabled => !child.show_in_sitemap_for(temp_locale) do %>
|
|
|
|
<%= child.show_in_sitemap_for(temp_locale) ? t('on_upcase') : t('off_upcase') %>
|
2012-07-27 08:53:12 +00:00
|
|
|
<% end %>
|
2012-12-19 09:15:31 +00:00
|
|
|
<span><%= "#{sitemap_block_counter + 1}-#{i + 1}" %> <%= child.title_translations[temp_locale] %></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>
|