Sha256: 4d71e4595ee4d98bded0209e458d97bca998b545a96a39454bb4ff3d700c1380

Contents?: true

Size: 1.36 KB

Versions: 2

Compression:

Stored size: 1.36 KB

Contents

<%=content_for :data_controls do%>
<%=link_to "Upload File",new_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">
					<% if media.is_protected && media.is_image? %>
						<img src="<%= media.image_from_type %>" class="size-50-thumb" />
					<% else %>
						<%= image_tag(media.image_from_type, :class => "size-50-thumb") %>
					<% end %>
					<%= link_to media.attachment_file_name, media.attachment_url %>					
				</span>

				<span class="edit_controls">
					<% if media.is_image? %>
						<%= link_to 'Crop', edit_admin_medium_path(media.id), :class => 'btn' %>
					<% end %>
					<% if media.is_protected %>
						<%= link_to raw('<i class="icon-lock"></i> Protected'), set_access_admin_medium_path(media.id, :protected => false), :method => :put, :class => 'btn' %>
					<% else %>
						<%= link_to 'Public', set_access_admin_medium_path(media.id, :protected => true), :method => :put, :class => 'btn' %>
					<% end %>
					<%=link_to "Remove", 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

2 entries across 2 versions & 1 rubygems

Version Path
tb_media-1.0.2 app/views/admin/media/index.html.erb
tb_media-1.0.1 app/views/admin/media/index.html.erb