-
title @<%=parent_singular_name%>.title
-
heading @<%=parent_singular_name%>.heading
-
content_for :head do
stylesheet_link_tag ‘dust_<%=parent_singular_name%>_app’¶ ↑
@<%=parent_singular_name%>.desc¶ ↑
will_paginate @<%=child_plural_name%>¶ ↑
%ul{:class => “columns”}
- @<%=child_plural_name%>.each do |<%=child_singular_name%>| %li - link_to <%=child_singular_name%>.file.url(:large), :class => 'group', :alt => <%=child_singular_name%>.title, :rel => "#{@<%=parent_singular_name%>.title}" do = image_tag(<%=child_singular_name%>.file.url(:thumb), :alt => <%=child_singular_name%>.desc) .info %h3{:class => "title"} = truncate <%=child_singular_name%>.title %p{:class => "desc"} = <%=child_singular_name%>.desc
.clear
will_paginate @<%=child_plural_name%>¶ ↑
-
if permitted_to? :manage, :<%=parent_plural_name%> %p
= link_to "Manage <%=child_plural_class_name%>", @<%=parent_singular_name%> | = link_to "Edit", edit_<%=parent_singular_name%>_path(@<%=parent_singular_name%>) | = link_to "Destroy", @<%=parent_singular_name%>, :confirm => 'Are you sure?', :method => :delete | = link_to "View All", <%=parent_plural_name%>_path