Sha256: 4f324ac1c924c2c6520a0690b46f8e8cf1e7ca0ed7139f740f4429208653f9f8

Contents?: true

Size: 1.58 KB

Versions: 10

Compression:

Stored size: 1.58 KB

Contents

<div class="table-responsive"> 
	<table class="table table-hover members-table middle-align">
	  <thead> 
			<tr> 
				<th style="text-align: center;width:30px">#</th> 
				<th>Name</th>
				<th>Image Type</th>
				<th>Imageable</th>
				<th>Original</th>
				<th style="text-align: center;">Actions</th>
			</tr> 
		</thead>
	  <tbody>
	  	<% @images.each_with_index do |image, i| %>
	  		
	  		<% edit_link = edit_image_path(id: image.id) %>
				<% delete_link = image_path(id: image.id) %>

				<tr id="tr_image_<%= image.id %>">
		      
		      <td class="image-image">
		        <%= link_to(image_path(image), remote: true) do %>
		        	<%= display_image(image, "small.url", width: "40", height: "auto", class: "img-rectangle", alt: image.display_name) %>
		        <% end %>
		      </td>

					<td class="image-name"><%= link_to (image.imageable.try(:display_name) || "#{image.imageable_id} - #{image.imageable_type}" ), image_path(image), remote: true %></td>

					<td class="image-name"><%= link_to image.class.name, image_path(image), remote: true %></td>

					<td class="action-links" style="width:10%">

		      	<%= link_to raw("<i class=\"linecons-pencil\"></i> Edit Image"), edit_link, :remote=>true, class: "edit" %>

		        <%= link_to raw("<i class=\"linecons-trash\"></i> Delete"), delete_link, method: :delete, role: "menuitem", tabindex: "-1", data: { confirm: 'Are you sure?' }, :remote=>true, class: "delete" %>

		      </td>

		    </tr>
		  <% end %>
	  </tbody>
	</table>
</div>

<div class="row">
  <div class="col-sm-12">
    <%= paginate_kuppayam(@images) %>
  </div>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kuppayam-0.1.5dev4 app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.5dev3 app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.5dev2 app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.5dev app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.5 app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.4dev app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.4 app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.3 app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.2 app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.1 app/views/kuppayam/images/_index.html.erb