Sha256: f870435a3695a447e8dd5e6f544ae9be6d87de85cd60681ce6b50337dcee5187

Contents?: true

Size: 1.17 KB

Versions: 6

Compression:

Stored size: 1.17 KB

Contents

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

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

<div class="button_bar">
	<%= render :partial => 'search' %>
	<%=link_to('new allbum', 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

6 entries across 6 versions & 1 rubygems

Version Path
dust-generators-0.1.9 rails_generators/dust_albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.8 rails_generators/dust_albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.7 rails_generators/dust_albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.6 rails_generators/dust_albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.5 rails_generators/dust_albums/templates/app/views/albums/index.html.erb
dust-generators-0.1.4 rails_generators/dust_albums/templates/app/views/albums/index.html.erb