personal-book/app/views/admin/books/index.html.erb

27 lines
1.1 KiB
Plaintext
Raw Normal View History

<% content_for :side_bar do %>
<%= render :partial => 'layouts/side_bar', :locals => {:link_name => t(:user), :link_url => admin_site_site_info_path(current_site), :icon => 'icons-users', :side_bar_content => 'admin/members/side_bar'} %>
<% end %>
<div class="subnav">
<%= render :partial => 'admin/personal_plugins/plugin_list' %>
</div>
<table class="table main-list">
<thead>
<tr>
<th class="span1"><%= t("personal_book.year") %></th>
<th class="span7"><%= t("personal_book.book_title") %></th>
<th class="span1"><%= t("personal_plugins.author") %></th>
</tr>
</thead>
<tbody id="tbody_writing_books" class="sort-holder">
<%= render :partial => 'writing_book', :collection => @writing_books %>
</tbody>
</table>
<div class="bottomnav clearfix">
<div class="action pull-right">
<%= link_to content_tag(:i, nil, :class => 'icon-cog icon-white') + t('setting'), admin_book_setting_path, :class => 'btn btn-primary pull-right' %>
<%= link_to content_tag(:i, nil, :class => 'icon-plus icon-white') + t('announcement.add_new'), new_admin_book_path, :class => 'btn btn-primary pull-right' %>
</div>
</div>