Sha256: d0d719f72ae68d611de9ff9eaa4c559e3e9af499e3d455c18534f036ca6b77ae

Contents?: true

Size: 1.21 KB

Versions: 11

Compression:

Stored size: 1.21 KB

Contents

<%% title @<%=parent_singular_name%>.title %>
<%% heading @<%=parent_singular_name%>.heading %>

<%% content_for :head do %>
	<%%= stylesheet_link_tag 'dust_<%=parent_singular_name%>_app' %>
<%% end -%>

<%%= @<%=parent_singular_name%>.desc %>

<%%= will_paginate @<%=child_plural_name%> %>

<div id="uploads">
	<%% @<%=child_plural_name%>.each do |<%=child_singular_name%>| %>
		<div class="<%=child_singular_name%>">
			<%%= link_to image_tag(<%=child_singular_name%>.file.url(:thumb), :alt => <%=child_singular_name%>.desc), <%=child_singular_name%>.file.url(:large), :class => 'group', :rel => "#{@<%=parent_singular_name%>.title}" %><br />
			<%%= truncate <%=child_singular_name%>.title, :length => 23 %>
		</div>
	<%% end -%>	
</div>
<div class="clear"></div>

<%%= 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 %>
	</p>
<%% end %>

Version data entries

11 entries across 8 versions & 1 rubygems

Version Path
dust-generators-0.2.8 rails_generators/dust_albums/templates/app/views/view_albums/show.html.erb
dust-generators-0.2.6 rails_generators/dust_albums/templates/app/views/view_albums/show.html.erb
dust-generators-0.2.6 lib/generators/dust/albums/templates/app/views/view_albums/show.html.erb
dust-generators-0.2.5 rails_generators/dust_albums/templates/app/views/view_albums/show.html.erb
dust-generators-0.2.5 lib/generators/dust/albums/templates/app/views/view_albums/show.html.erb
dust-generators-0.2.4 rails_generators/dust_albums/templates/app/views/view_albums/show.html.erb
dust-generators-0.2.4 lib/generators/dust/albums/templates/app/views/view_albums/show.html.erb
dust-generators-0.2.3 rails_generators/dust_albums/templates/app/views/view_albums/show.html.erb
dust-generators-0.2.2 rails_generators/dust_albums/templates/app/views/view_albums/show.html.erb
dust-generators-0.2.1 rails_generators/dust_albums/templates/app/views/view_albums/show.html.erb
dust-generators-0.2.0 rails_generators/dust_albums/templates/app/views/view_albums/show.html.erb