Sha256: a332bb129e71d54698f56664855e01f434cc1a643bc0eb7d1abccc9f56bf71c9

Contents?: true

Size: 1.11 KB

Versions: 1

Compression:

Stored size: 1.11 KB

Contents

<h1>皮肤列表</h1>

<%= paginate @loyal_core_skin_recipes %>

<table>
  <tr>
    <th>ID</th>
    <th>文章标题</th>
    <th>作者</th>
    <th>操作</th>
  </tr>
  <% if @loyal_core_skin_recipes.to_a.any? %>
    <% @loyal_core_skin_recipes.each do |recipe| %>
      <tr>
        <td><%= recipe.id %></td>
        <td><%= link_to "#{recipe.name}", loyal_admin_app.loyal_core_skin_recipe_url(:id => recipe.id) %></td>
        <td>
          <% if recipe.creator %>
            <%= link_to "#{recipe.creator.nick_name}", loyal_passport_app.admin_user_url(:id => recipe.creator.id) %>
          <% else %>
              未知
          <% end %>
        </td>
        <td>
          <%= link_to "编辑", loyal_admin_app.edit_loyal_core_skin_recipe_url(:id => recipe.id) %>
          <%= link_to "删除", loyal_admin_app.loyal_core_skin_recipe_url(:id => recipe.id), :method => :delete, :confirm => '确定要删除吗?' %>
        </td>
      </tr>
    <% end %>
  <% else %>
    列表为空
  <% end %>
</table>

<%= paginate @loyal_core_skin_recipes %>

<%= link_to "new", loyal_admin_app.new_loyal_core_skin_recipe_url %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
loyal_admin-0.0.4 app/views/loyal_admin/loyal_core/skin/recipes/index.html.erb