app/views/admin/pages/_page.html.erb in refinerycms-pages-0.9.9.21 vs app/views/admin/pages/_page.html.erb in refinerycms-pages-0.9.9.22
- old
+ new
@@ -5,33 +5,29 @@
<% if defined?(::Refinery::I18n) and ::Refinery::I18n.frontend_locales.many? and
(locales = page.translations.map(&:locale)).present? %>
<span class='preview'>
<% ([page.translation.try(:locale)] | locales).each do |locale| %>
<%= link_to refinery_icon_tag("flags/#{locale}.png", :size => '16x11'),
- edit_admin_page_url(page, :switch_locale => locale),
+ edit_admin_page_path(page, :switch_locale => locale),
:class => 'locale' %>
<% end %>
</span>
<% end %>
</span>
<span class='actions'>
<%= link_to refinery_icon_tag('application_go.png'), page.url,
:target => "_blank",
:title => t('.view_live_html') %>
- <%= link_to refinery_icon_tag('application_edit.png'), edit_admin_page_url(page),
+ <%= link_to refinery_icon_tag('application_edit.png'), edit_admin_page_path(page),
:title => t('edit', :scope => 'admin.pages') %>
- <%= link_to refinery_icon_tag('delete.png'), admin_page_url(page),
+ <%= link_to refinery_icon_tag('delete.png'), admin_page_path(page),
:class => "cancel confirm-delete",
:title => t('delete', :scope => 'admin.pages'),
:confirm => t('message', :scope => 'shared.admin.delete', :title => page.title_with_meta.gsub(/\ ?<em>.*<\/em>/, "")),
:method => :delete if page.deletable? %>
</span>
</div>
<ul class='nested'>
- <%= render :partial => 'page',
- :collection => page.children,
- :locals => {
- :collection => collection
- } if page.has_descendants? %>
+ <%= render :partial => 'page', :collection => page.children %>
</ul>
</li>