OSDN Git Service

t#:
[laoz/laoz.git] / app / views / hateda / section_list.rhtml
1 <!-- 概要リスト -->
2 <%= render :partial => '/hateda/section_filter', :layout => false %>
3 <h2>道徳経 一覧</h2>
4 <% form_tag :controller => '/hateda', :action => :upload_sections do -%>
5   <%= submit_tag "チェックされたものをアップロードする" %>
6   <table class="sections">
7   <% @sections.each do |s| -%>
8     <tr class="section">
9       <td>
10         <%= check_box_tag('checks[]', s.num, s.modify?) %>
11       </td>
12       <td><%= link_to(h(s.caption), :controller => '/section', :action => :show, :id => s.id) %></td>
13       <td>
14         <div><%= hrb s.desc %></div>
15         <% s.thema_sections.each do |ts| -%>
16           <div>
17             <%= link_to(h(ts.thema.caption), :controller => '/thema', :action => :show, :id => ts.thema.id) -%>
18           </div>
19         <% end -%>
20         <div><%= h s.intro %></div>
21         <div>
22           <%= h s.update_time %>に更新
23           <%= h s.hateda_section.upload_time %>に投稿
24         </div>
25       </td>
26     </tr>
27   <% end -%>
28   </table>
29   <%= submit_tag "チェックされたものをアップロードする" %>
30 <% end -%>
31 <%= render :partial => '/hateda/section_filter', :layout => false %>
32 <!-- /概要リスト -->