orbit-basic/app/views/admin/assets/index.html.erb

32 lines
1.1 KiB
Plaintext

<% content_for :secondary do %>
<div class="assets_setup">
<ul class="list">
<li><%= link_to t(:new_asset, :scope => :admin), new_admin_asset_path, :remote => true, :class => 'button positive' %></li>
<li><%= link_to t('admin.assets.file'), '', :remote => true, :class => 'button positive' %></li>
<li><%= link_to t('admin.assets.album'), '', :remote => true, :class => 'button positive'%></li>
<li><%= link_to t('admin.assets.video'), '', :remote => true, :class => 'button positive' %></li>
<li><%= link_to t('admin.assets.book'), '', :remote => true, :class => 'button positive' %></li>
</ul>
</div>
<% end -%>
<div class="main2">
<h1><%= t('admin.list_assets') %></h1>
<table>
<thead>
<tr>
<td><%= t('admin.id') %></th>
<td><%= t('admin.file_name') %></th>
<td><%= t('admin.description') %></th>
<td><%= t('admin.format') %></th>
<td><%= t('admin.orig_upload_file') %></th>
<td><%= t('admin.file_size') %></th>
<td><%= t('admin.action') %></th>
</tr>
</thead>
<tbody id='asset_tbody'>
<%= render :partial => 'asset', :collection => @assets %>
<tbody>
</table>
</div>