Sha256: 492f72140ded8e4081ece419d255a7b4d5b36262ab26196b023029838a07b1c9

Contents?: true

Size: 1.28 KB

Versions: 6

Compression:

Stored size: 1.28 KB

Contents

<h1><%= t('activerecord.models.illustrations') %></h1>

<%= render 'tab_admin_menu' %>

<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 %>
				</td>
		    <td><%= link_to t('edit'), edit_illustration_path(illustration), class: 'btn btn-mini' %>
					<%= link_to t('delete'), illustration, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-mini btn-danger' %></td>
		  </tr>
		<% end %>
	</tbody>
</table>

<%= will_paginate @illustrations %>

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

<%= render 'shared/admin_sidebar' %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tkh_illustrations-0.9.1 app/views/illustrations/index.html.erb
tkh_illustrations-0.2.5 app/views/illustrations/index.html.erb
tkh_illustrations-0.9 app/views/illustrations/index.html.erb
tkh_illustrations-0.2.4 app/views/illustrations/index.html.erb
tkh_illustrations-0.2.3 app/views/illustrations/index.html.erb
tkh_illustrations-0.2 app/views/illustrations/index.html.erb