OSDN Git Service

Merge branch 'v06' of git.sourceforge.jp:/gitroot/pettanr/pettanr into v06
[pettanr/pettanr.git] / app / views / providers / index.html.erb
1 <h1><%= t('.title') %></h1>
2 <p id="notice"><%= notice %></p>
3
4 <table>
5   <tr>
6     <th><%= t_m 'Provider.caption' -%></th>
7     <th><%= t_m 'Provider.name' -%></th>
8     <th><%= t_m 'Provider.description' -%></th>
9     <th><%= t 'providers.status' -%></th>
10     <th><%= t 'providers.open' -%></th>
11   </tr>
12   
13   <% @providers.each do |provider| %>
14     <tr>
15       <td>
16         <%= link_to h(truncate(provider.caption, :length => 20)), provider_path(provider) %>
17       </td>
18       <td>
19         <%= h(truncate(provider.name, :length => 12)) %>
20       </td>
21       <td>
22         <%= h(truncate(provider.description, :length => 30)) %>
23       </td>
24       <td>
25         <%= link_to t(MagicNumber['provider_status_status_items'][provider.status].first), provider_status_path(provider.provider_status) %>
26       </td>
27       <td>
28         <%= link_to t('providers.open'), provider.url %>
29       </td>
30     </tr>
31   <% end %>
32 </table>
33 <div>
34 <% if @hide.blank? %>
35   <%= link_to t('providers.wait'), providers_path(:hide => 1) %>
36 <% else %>
37   <%= link_to t('providers.all'), providers_path %>
38 <% end %>
39 </div>
40 <div>
41   <%= link_to t('providers.to_provider_status'), provider_statuses_path(:page => @page, :page_size => @page_size, :hide => @hide) %>
42 </div>