Sha256: 2f9b6af35fc286d628ab552d41e4ab7a5200dd491ac77c751242877681fe9aa7

Contents?: true

Size: 1.36 KB

Versions: 6

Compression:

Stored size: 1.36 KB

Contents

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

<script type="text/javascript" charset="utf-8">
	$(document).ready(function() {
		$(function () { // this line makes sure this code runs on page load
			$('.checkall').click(function () {
				$(this).parents('form:eq(0)').find(':checkbox').attr('checked', this.checked);
			});
		});
	});
</script>

<div class='photolist'>
	<h1><%= link_to @album.title, album_path(@album) %></h1>
	
	<% form_tag '/photos/destroy' do %>

	<table class='photos'>
		<tr style='color:#222;'>
			<th>
				
			</th>
			<th></th>
			<th>
				File Name
			</th>
			<th>
				File Size
			</th>
			<th>
				Created At
			</th>
		</tr>
<% @album.photos.each do |photo| %>
		<tr class='<%= cycle('odd', 'even')%>'>
			<td>
				<%= check_box_tag "photo_ids[]", photo.id %>
			</td>
			<td>
					<%=  image_tag(photo.file.url(:thumb), :height => "60") %>
								
					<div style="display:none"><div id="<%=photo.id%>"><%= image_tag(photo.file.url(:original)) %></div></div>
			</td>
			<td>
				<%= photo.file_file_name %>
			</td>
			<td>
				<%= number_to_human_size(photo.file_file_size) %>
			</td>
			<td>
				<%= photo.created_at.to_s(:m_d_y) %>
			</td>
		</tr>
		<% end %>
		<tr class='odd'>
			<td colspan='5'>
				<input type="checkbox" class="checkall"> Check all
				<%= submit_tag "Delete checked" %>
			</td>
		</tr>
		</table>
		 
		<% end -%>
		
	</div>

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/manage.html.erb
dust-generators-0.1.8 rails_generators/dust_albums/templates/app/views/albums/manage.html.erb
dust-generators-0.1.7 rails_generators/dust_albums/templates/app/views/albums/manage.html.erb
dust-generators-0.1.6 rails_generators/dust_albums/templates/app/views/albums/manage.html.erb
dust-generators-0.1.5 rails_generators/dust_albums/templates/app/views/albums/manage.html.erb
dust-generators-0.1.4 rails_generators/dust_albums/templates/app/views/albums/manage.html.erb