Sha256: bbd0d47907e8a3daf25e3c7a620380a9a2343758156b0ef3036a64231e9c6b98

Contents?: true

Size: 1.17 KB

Versions: 16

Compression:

Stored size: 1.17 KB

Contents

<% title "Albums" %>
<% heading "Albums" %>

<%= stylesheet 'dust_album', 'uploadify' %>

<div class="button_bar">
	<%= render :partial => 'albums/search' %>
	<%=link_to 'new page', new_album_path, :class => 'newfile tip', :title => "New Album" %>
</div>

<div class='photolist'>
	
	<%= will_paginate @albums %>
	
	<table class="photos">
		<tr style='color:#222;'>
			<th></th>
			<th>
				Album Title
			</th>
			<th>
				Created At
			</th>
			<th></th>
		</tr>
	<% @albums.each do |album| %>
	<tr class='<%= cycle('odd', 'even')%>'>

		<td>
				<% if album.photos.empty? %>
					<%= link_to "add photos to #{album.title}", album %>
				<% else %>
					<%  @photo = album.photos.find(:first)  %>
					<%= link_to image_tag(@photo.file.url(:thumb)), album %>
				<% end -%>
		</td>
		<td>
			<%= album.title%>
		</td>
		<td>
			<%= album.created_at.to_s(:m_d_y) %>
		</td>
		<td>
			<div style='float:right'> 
				<%=link_to '', edit_album_path(album), :class => 'edit' %>
				<%=link_to "", album, :confirm => 'Are you sure?', :method => :delete, :class => 'destroy' %>						
			</div>
		</td>
	</tr>
	<% end %>

	</table>
	 
	
</div>
	
<div class="clear"></div>

<%= will_paginate @albums %>


Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
dust-generators-0.2.3 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.2.2 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.2.1 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.2.0 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.9 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.8 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.7 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.6 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.5 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.4 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.3 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.2 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.1 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.0 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust-generators-0.0.3 lib/generators/dust/albums/templates/app/views/albums/index.html.erb
dust_albums-0.0.2 app/views/albums/index.html.erb