Orbit/app/views/admin/designs/index.html.erb

37 lines
1.1 KiB
Plaintext

<% content_for :secondary do %>
<div class="designs_setup">
<h1><%= t('admin.setup_designs') %></h1>
<ul class="list">
<li><%= link_to content_tag(:span, t('admin.new_design')), new_admin_design_path, :class => 'seclink1' %></li>
<li><%= link_to content_tag(:span, t('admin.upload_design')), upload_package_admin_designs_path, :class => 'seclink2' %></li>
</ul>
</div>
<% end -%>
<%= flash_messages %>
<div class="main2">
<h1><%= t('admin.list_designs') %></h1>
<table>
<thead>
<tr>
<td><%= t('admin.title') %></td>
<td><%= t('admin.author') %></td>
<td><%= t('admin.intro') %></td>
<td><%= t('admin.action') %></td>
</tr>
</thead>
<% @designs.each do |design| %>
<tr class="have">
<td><%= design.title %></td>
<td><%= design.author %></td>
<td><%= design.intro %></td>
<td class="action">
<%= link_to t(:edit), edit_admin_design_path(design), :class => 'edit' %>
<%= link_to t(:delete), admin_design_path(design), :confirm => t('sure?'), :method => :delete, :class => 'delete' %>
</td>
</tr>
<tr></tr>
<% end %>
</table>
</div>