Sha256: ae6964f8f15e4b2edc48e8a13713d13352c23b86b8cf52cc638ccba38ba39a9c

Contents?: true

Size: 1.26 KB

Versions: 46

Compression:

Stored size: 1.26 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 style="text-align: center;">Imageable</th>
			</tr> 
		</thead>
	  <tbody>
	  	<% @images.each_with_index do |image, i| %>

	  		<% 
	  			show_link = image_path(image)
	  			edit_link = edit_image_path(image)
					delete_link = image_path(image)
				%>

				<tr id="tr_image_<%= image.id %>">
		      
		      <th scope="row" style="text-align: center;">
						<% if i < 0 %>
							<i class="fa fa-check text-success"></i>
						<% else %>
							<%= i + 1 + (@per_page.to_i * (@current_page.to_i - 1)) %>
						<% end %>
					</th>

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

					<td class="image-name"><%= link_to image.type, show_link, remote: true %></td>

					<td class="image-name" style="text-align: center;"><%= link_to image.imageable.class.name, show_link, remote: true %></td>

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

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

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
kuppayam-0.2.12.pre.materialize app/views/kuppayam/images/_index.html.erb
kuppayam-0.2.11.pre.materialize app/views/kuppayam/images/_index.html.erb
kuppayam-0.2.10.pre.materialize app/views/kuppayam/images/_index.html.erb
kuppayam-0.2.9.pre.materialize app/views/kuppayam/images/_index.html.erb
kuppayam-0.2.8.pre.materialize app/views/kuppayam/images/_index.html.erb
kuppayam-0.2.7.pre.materialize app/views/kuppayam/images/_index.html.erb
kuppayam-0.2.6.pre.materialize app/views/kuppayam/images/_index.html.erb
kuppayam-0.2.5.pre.materialize app/views/kuppayam/images/_index.html.erb
kuppayam-0.2.4.pre.materialize app/views/kuppayam/images/_index.html.erb
kuppayam-0.2.3.pre.materialize app/views/kuppayam/images/_index.html.erb
kuppayam-0.2.2.pre.materialize app/views/kuppayam/images/_index.html.erb
kuppayam-0.2.1.pre.materialize app/views/kuppayam/images/_index.html.erb
kuppayam-0.2.0.pre.materialize app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.39 app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.38 app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.37 app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.36 app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.35 app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.34 app/views/kuppayam/images/_index.html.erb
kuppayam-0.1.33 app/views/kuppayam/images/_index.html.erb