Sha256: 5feccb92abef4418c48c7d8204e30466aa91e39a4097c0d8f34c8aa48e69c4eb

Contents?: true

Size: 1.36 KB

Versions: 2

Compression:

Stored size: 1.36 KB

Contents

<%= render 'section_header' %>

<%= will_paginate @illustrations, inner_window: 2 %>

<table class='table table-striped'>
	<thead>
  <tr>
			<th><%= t('activerecord.models.illustration') %></th>
	    <th><%= t('name_and_paths') %></th>
	    <th><%= t('actions') %></th>
	  </tr>
	</thead>

	<tbody>
		<% @illustrations.each do |illustration| %>
		  <tr>
		    <td><%= link_to image_tag(illustration.image.thumbnail), illustration %></td>
		    <td>
					<h3><%= illustration.name %> | <%= link_to(t('see_all_resolutions'), illustration) %></h3>
					<b>Thumbnail</b> path: <%= illustration.image.thumbnail %><br />
					<b>Small</b> path: <%= illustration.image.small %><br />
					<b>Medium</b> path: <%= illustration.image.medium %><br />
					<b>Large</b> path: <%= illustration.image.large %><br />
					<b>XL</b> path: <%= illustration.image.xl %><br />
					<b>XXL</b> path: <%= illustration.image.xxl %>
				</td>
		    <td><%= link_to t('edit'), edit_illustration_path(illustration), class: 'btn btn-xs btn-default' %>
					<%= link_to t('delete'), illustration, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger' %></td>
		  </tr>
		<% end %>
	</tbody>
</table>

<%= will_paginate @illustrations, inner_window: 2 %>

<%= link_to t('illustrations.create.new'), new_illustration_path, class: 'btn btn-default' %>

<%= render 'shared/admin_sidebar' %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
tkh_illustrations-0.9.6 app/views/illustrations/index.html.erb
tkh_illustrations-0.9.5 app/views/illustrations/index.html.erb