OSDN Git Service

ac3d2272e73b2b135dbdb6dd2db6ae49ead08512
[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 <%-unless @arcs.empty?-%>
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|Location' %></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 %></td>
30     <td><%= arc.extname %></td>
31     <td><%= arc.location.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 <%-unless @pmds.empty?-%>
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|Location' %></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, pmd.arc %></td>
63     <td><%= pmd.arc.extname %></td>
64     <td><%= pmd.arc.location.code %></td>
65     <td><%= pmd.path %></td>
66     <td><%= link_to t('show'), pmd %></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 <%-unless @vmds.empty?-%>
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|Location' %></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, vmd.arc %></td>
95     <td><%= vmd.arc.extname %></td>
96     <td><%= vmd.arc.location.code %></td>
97     <td><%= vmd.path %></td>
98     <td><%= link_to t('show'), vmd %></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 <%-unless @xes.empty?-%>
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|Location' %></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, x.arc %></td>
127     <td><%= x.arc.extname %></td>
128     <td><%= x.arc.location.code %></td>
129     <td><%= x.path %></td>
130     <td><%= link_to t('show'), x %></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 <%-unless @thumbs.empty?-%>
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 %></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-%>