OSDN Git Service

renamed Thumb to Record::Thumb
[tdcgexplorer/nimono.git] / app / views / arcs / show.html.erb
1 <p>
2   <b><%= _'Arc|Code' %>:</b>
3   <%= @arc.code %>
4 </p>
5
6 <p>
7   <b><%= _'Arc|Extname' %>:</b>
8   <%= @arc.extname %>
9 </p>
10
11 <p>
12   <b><%= _'Arc|Location' %>:</b>
13   <%= @arc.location.code %>
14 </p>
15
16 <p>
17   <b><%= _'Arc|Locked' %>:</b>
18   <%= @arc.locked? ? 'yes' : 'no' %>
19 </p>
20
21 <p>
22   <b><%= _'Arc|Url' %>:</b>
23   <%= @arc.url %>
24 </p>
25
26 <p>
27   <b><%= _'Arc|Summary' %>:</b>
28   <%= @arc.summary %>
29 </p>
30
31 <p>
32   <b><%= _'Arc|Origname' %>:</b>
33   <%= @arc.origname %>
34 </p>
35
36 <%-unless @arc.thumbs.empty?-%>
37 <p>
38   <b><%= _'Arc|Thumbs' %>:</b>
39 </p>
40 <table class="list thumbs">
41   <thead>
42   <tr>
43     <th><%= _'Thumb|Video' %></th>
44     <th><%= _'Thumb|Title' %></th>
45     <th><%= _'Thumb|Description' %></th>
46   </tr>
47   </thead>
48
49   <tbody>
50 <% @arc.thumbs.each do |thumb| %>
51   <tr class="<%= cycle('odd', 'even') %>">
52     <td><%=link_to thumb.video_id, thumb_path(thumb) %></td>
53     <td><%= thumb.title %></td>
54     <td><%= truncate(thumb.description) %></td>
55   </tr>
56 <% end %>
57   </tbody>
58 </table>
59 <%-end-%>
60
61 <%-unless @arc.pmds.empty?-%>
62 <p>
63   <b><%= _'Arc|Pmds' %>:</b>
64 </p>
65 <table class="list pmds">
66   <thead>
67   <tr>
68     <th><%= _'Pmd|Path' %></th>
69     <th></th>
70   </tr>
71   </thead>
72
73   <tbody>
74 <% for pmd in @arc.pmds %>
75   <tr class="<%= cycle('odd', 'even') %>">
76     <td><%= pmd.path %></td>
77     <td><%= link_to t('show'), pmd %></td>
78   </tr>
79 <% end %>
80   </tbody>
81 </table>
82 <%-end-%>
83
84 <%-unless @arc.vmds.empty?-%>
85 <p>
86   <b><%= _'Arc|Vmds' %>:</b>
87 </p>
88 <table class="list vmds">
89   <thead>
90   <tr>
91     <th><%= _'Vmd|Path' %></th>
92     <th></th>
93   </tr>
94   </thead>
95
96   <tbody>
97 <% for vmd in @arc.vmds %>
98   <tr class="<%= cycle('odd', 'even') %>">
99     <td><%= vmd.path %></td>
100     <td><%= link_to t('show'), vmd %></td>
101   </tr>
102 <% end %>
103   </tbody>
104 </table>
105 <%-end-%>
106
107 <%-unless @arc.xes.empty?-%>
108 <p>
109   <b><%= _'Arc|Xes' %>:</b>
110 </p>
111 <table class="list xes">
112   <thead>
113   <tr>
114     <th><%= _'X|Path' %></th>
115     <th></th>
116   </tr>
117   </thead>
118
119   <tbody>
120 <% for x in @arc.xes %>
121   <tr class="<%= cycle('odd', 'even') %>">
122     <td><%= x.path %></td>
123     <td><%= link_to t('show'), x %></td>
124   </tr>
125 <% end %>
126   </tbody>
127 </table>
128 <%-end-%>