Sha256: 10dddd22a6a359776de7e0aa807bb2a2ca3da3a87fba1fee3210d6e2f4e7170c

Contents?: true

Size: 807 Bytes

Versions: 3

Compression:

Stored size: 807 Bytes

Contents

<%= render 'section_header' %>

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

<table class='table table-striped'>
	<thead>
  <tr>
	    <th>name</th>
	    <th>path</th>
	  </tr>
	</thead>

	<tbody>
		<% @downloads.each do |download| %>
		  <tr>
		    <td><%= download.name %></td>
		    <td><%= link_to download.thing.url, download.thing.url %></td>
		    <td>
		    	<%= link_to t('edit'), edit_download_path(download), class: 'btn btn-xs btn-default' %>
					<%= link_to t('delete'), download, method: :delete, data: { confirm: t('are_you_sure') }, class: 'btn btn-xs btn-danger' %>
				</td>
		  </tr>
		<% end %>
	</tbody>
</table>

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

<%= link_to 'upload new asset', new_download_path, class: 'btn btn-default' %>

<%= render 'shared/admin_sidebar' %>

Version data entries

3 entries across 3 versions & 1 rubygems

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