Orbit/app/views/admin/sites/_sitemap_block.html.erb

14 lines
754 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>
<span><%= sitemap_block.i18n_variable[I18n.locale] %></span>
</h4>
2012-07-26 07:37:29 +00:00
<ul>
<% sitemap_block.children.each do |child| %>
<li class="clear <%= 'disabled' if !child.sitemap_enabled %>">
2012-07-27 04:05:17 +00:00
<button id="<%= child.id %>" class="onoff pull-right" disabled="<%= 'disabled' if !sitemap_block.sitemap_enabled %>" ><%= child.sitemap_enabled ? t('on_upcase') : t('off_upcase') %></button>
<span><%= child.i18n_variable[I18n.locale] %></span>
2012-07-26 07:37:29 +00:00
</li>
<% end if sitemap_block.children %>
</ul>
2012-07-25 07:10:15 +00:00
</div>