OSDN Git Service

add seigas controller
[tdcgexplorer/nimono.git] / app / views / welcome / index.html.erb
1 <div align="center">
2 <%=form_for(@search, :as => :search, :url => root_path, :html => { :method => :get }) do |f| %>
3   <p>
4     <%= f.text_field :text %>
5     <%= f.submit t("search") %>
6   </p>
7 <% end %>
8 </div>
9
10 <%-if @arcs.count != 0-%>
11 <p>
12   <b><%= _'arc' %>:</b>
13 </p>
14 <table class="list arcs">
15   <thead>
16   <tr>
17     <th><%= _'Arc|Code' %></th>
18     <th><%= _'Arc|Extname' %></th>
19     <th><%= _'Arc|Site' %></th>
20     <th><%= _'Arc|Locked' %></th>
21     <th><%= _'Arc|Summary' %></th>
22     <th><%= _'Arc|Origname' %></th>
23   </tr>
24   </thead>
25
26   <tbody>
27 <% for arc in @arcs %>
28   <tr class="<%= cycle('odd', 'even') %>">
29     <td><%=link_to arc.code, arc_path(arc) %></td>
30     <td><%= arc.extname %></td>
31     <td><%= arc.site.code %></td>
32     <td><%= arc.locked ? 'yes' : 'no' %></td>
33     <td><%= arc.summary %></td>
34     <td><%= arc.origname %></td>
35   </tr>
36 <% end %>
37   </tbody>
38 </table>
39 <div class="pagination">
40   <%= link_to t('and_more'), arcs_path(:search => params[:search]) %>
41 </div>
42 <%-end-%>
43
44 <%-if @pmds.count != 0-%>
45 <p>
46   <b><%= _'pmd' %>:</b>
47 </p>
48 <table class="list pmds">
49   <thead>
50   <tr>
51     <th><%= _'Arc|Code' %></th>
52     <th><%= _'Arc|Extname' %></th>
53     <th><%= _'Arc|Site' %></th>
54     <th><%= _'Pmd|Path' %></th>
55     <th></th>
56   </tr>
57   </thead>
58
59   <tbody>
60 <% for pmd in @pmds %>
61   <tr class="<%= cycle('odd', 'even') %>">
62     <td><%=link_to pmd.arc.code, arc_path(pmd.arc) %></td>
63     <td><%= pmd.arc.extname %></td>
64     <td><%= pmd.arc.site.code %></td>
65     <td><%= pmd.path %></td>
66     <td></td>
67   </tr>
68 <% end %>
69   </tbody>
70 </table>
71 <div class="pagination">
72   <%= link_to t('and_more'), pmds_path(:search => params[:search]) %>
73 </div>
74 <%-end-%>
75
76 <%-if @vmds.count != 0-%>
77 <p>
78   <b><%= _'vmd' %>:</b>
79 </p>
80 <table class="list vmds">
81   <thead>
82   <tr>
83     <th><%= _'Arc|Code' %></th>
84     <th><%= _'Arc|Extname' %></th>
85     <th><%= _'Arc|Site' %></th>
86     <th><%= _'Vmd|Path' %></th>
87     <th></th>
88   </tr>
89   </thead>
90
91   <tbody>
92 <% for vmd in @vmds %>
93   <tr class="<%= cycle('odd', 'even') %>">
94     <td><%=link_to vmd.arc.code, arc_path(vmd.arc) %></td>
95     <td><%= vmd.arc.extname %></td>
96     <td><%= vmd.arc.site.code %></td>
97     <td><%= vmd.path %></td>
98     <td></td>
99   </tr>
100 <% end %>
101   </tbody>
102 </table>
103 <div class="pagination">
104   <%= link_to t('and_more'), vmds_path(:search => params[:search]) %>
105 </div>
106 <%-end-%>
107
108 <%-if @xes.count != 0-%>
109 <p>
110   <b><%= _'x' %>:</b>
111 </p>
112 <table class="list xs">
113   <thead>
114   <tr>
115     <th><%= _'Arc|Code' %></th>
116     <th><%= _'Arc|Extname' %></th>
117     <th><%= _'Arc|Site' %></th>
118     <th><%= _'X|Path' %></th>
119     <th></th>
120   </tr>
121   </thead>
122
123   <tbody>
124 <% for x in @xes %>
125   <tr class="<%= cycle('odd', 'even') %>">
126     <td><%=link_to x.arc.code, arc_path(x.arc) %></td>
127     <td><%= x.arc.extname %></td>
128     <td><%= x.arc.site.code %></td>
129     <td><%= x.path %></td>
130     <td></td>
131   </tr>
132 <% end %>
133   </tbody>
134 </table>
135 <div class="pagination">
136   <%= link_to t('and_more'), xes_path(:search => params[:search]) %>
137 </div>
138 <%-end-%>
139
140 <%-if @thumbs.count != 0-%>
141 <p>
142   <b><%= _'thumb' %>:</b>
143 </p>
144 <table class="list thumbs">
145   <thead>
146   <tr>
147     <th><%= _'Thumb|Video' %></th>
148     <th><%= _'Thumb|Title' %></th>
149     <th><%= _'Thumb|Description' %></th>
150   </tr>
151   </thead>
152
153   <tbody>
154 <% for thumb in @thumbs %>
155   <tr class="<%= cycle('odd', 'even') %>">
156     <td><%=link_to thumb.video_id, thumb_path(thumb) %></td>
157     <td><%= thumb.title %></td>
158     <td><%= truncate(thumb.description) %></td>
159   </tr>
160 <% end %>
161   </tbody>
162 </table>
163 <div class="pagination">
164   <%= link_to t('and_more'), thumbs_path(:search => params[:search]) %>
165 </div>
166 <%-end-%>
167
168 <%-if @seigas.count != 0-%>
169 <p>
170   <b><%= _'seiga' %>:</b>
171 </p>
172 <table class="list seigas">
173   <thead>
174   <tr>
175     <th><%= _'Seiga|Image' %></th>
176     <th><%= _'Seiga|Title' %></th>
177     <th><%= _'Seiga|Description' %></th>
178   </tr>
179   </thead>
180
181   <tbody>
182 <% for seiga in @seigas %>
183   <tr class="<%= cycle('odd', 'even') %>">
184     <td><%=link_to seiga.image_id, seiga_path(seiga) %></td>
185     <td><%= seiga.title %></td>
186     <td><%= truncate(seiga.description) %></td>
187   </tr>
188 <% end %>
189   </tbody>
190 </table>
191 <div class="pagination">
192   <%= link_to t('and_more'), seigas_path(:search => params[:search]) %>
193 </div>
194 <%-end-%>