Sha256: 14940df98e8e0ef11fb79ff607669fc0aa8735084423621f743ddf9e339f1924

Contents?: true

Size: 738 Bytes

Versions: 4

Compression:

Stored size: 738 Bytes

Contents

<%=content_for :data_controls do%>
<%=link_to "Upload File",new_spud_admin_medium_path(),:class => "btn btn-primary",:title => "Upload File"%>
<%end%>
<%=content_for :detail do%>
	<div class="page_list">
			<%@media.each do |media|%>
				<div class="page_row">
					
				<span class="row_meta"><%=image_tag(media.image_from_type,:class => "size-50-thumb")%><%=link_to media.attachment.url.split("/").last,media.attachment.url%></span>

				<span class="edit_controls"><%=link_to "Remove",spud_admin_medium_path(:id => media.id),:method => :delete,:class => 'btn btn-danger',:confirm => "Are you sure you want to remove this file?"%></span>
				<br style="clear:both;"/>
			</div>
			<%end%>
			<%=will_paginate @media%>

	</div>

<%end%>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spud_media-0.8.3 app/views/spud/admin/media/index.html.erb
spud_media-0.8.2 app/views/spud/admin/media/index.html.erb
spud_media-0.8.1 app/views/spud/admin/media/index.html.erb
spud_media-0.8.0 app/views/spud/admin/media/index.html.erb