app/views/lcms/engine/admin/resources/index.html.erb in lcms-engine-0.3.1 vs app/views/lcms/engine/admin/resources/index.html.erb in lcms-engine-0.4.0

- old
+ new

@@ -26,30 +26,32 @@ <th><%= t('.status') %> <th> </tr> <% @resources.each do |resource| %> - <tr> + <% cache resource do %> + <tr> <% check_box_id = "ids_#{resource.id}" %> <td><%= check_box_tag 'ids[]', resource.id, false, class: 'resource-checkbox', id: check_box_id %> <td><%= label_tag check_box_id, resource.id, class: 'resource-id-label' %> - <td><%= link_to resource.title, [:edit, :admin, resource] %> + <td><%= link_to resource.title, lcms_engine.edit_admin_resource_path(resource) %> <td class="resource-tag-col"><%= strip_tags resource.teaser %> <td class="resource-tag-col"><%= resource.standards.map(&:name).select(&:present?).join(', ') %> <td class="resource-tag-col"><%= resource.resource_type %> <td class="resource-tag-col"><%= resource.subject %> <td class="resource-tag-col"><%= resource.slug %> <td class="resource-tag-col"><%= resource.tree? ? 'yes' : 'no' %> <td><%= resource_status(resource) %> <td class="resource-btns-col"> - <%= link_to t('ui.edit'), [:edit, :admin, resource], class: 'button small' %> + <%= link_to t('ui.edit'), lcms_engine.edit_admin_resource_path(resource), class: 'button small' %> <% if can_bundle? resource %> - <%= link_to t('.bundle'), [:bundle, :admin, resource], class: 'button small primary', method: :post %> + <%= link_to t('.bundle'), lcms_engine.bundle_admin_resource_path(resource), class: 'button small primary', method: :post %> <% end %> <% if resource.module? %> - <%= link_to t('.export_lti_cartridge'), [:export_to_lti_cc, :admin, resource], class: 'button small primary', method: :post %> + <%= link_to t('.export_lti_cartridge'), lcms_engine.export_to_lti_cc_admin_resource_path(resource), class: 'button small primary', method: :post %> <% end %> </tr> + <% end %> <% end %> </table> <%= submit_tag 'Edit Selected', class: 'button', name: nil %> <% end %>