OSDN Git Service

fix js folder
[pettanr/pettanr.git] / app / views / provider_statuses / 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 'provider_statuses.status' -%></th>
9     <th><%= t_m 'ProviderStatus.received_at' -%></th>
10     <th><%= t_m 'ProviderStatus.receive_hour1' -%></th>
11     <th><%= t_m 'ProviderStatus.receive_hour2' -%></th>
12     <th><%= t 'provider_statuses.open' -%></th>
13   </tr>
14   
15   <% @provider_statuses.each do |provider_status| %>
16     <tr>
17       <td>
18         <%= link_to h(truncate(provider_status.provider.caption, :length => 20)), provider_status_path(provider_status.provider) %>
19       </td>
20       <td>
21         <%= h(truncate(provider_status.provider.name, :length => 12)) %>
22       </td>
23       <td>
24         <%= t(MagicNumber['provider_status_status_items'][provider_status.status].first) %>
25       </td>
26       <td>
27         <%= l(provider_status.received_at) if provider_status.received_at  %>
28       </td>
29       <td>
30         <%= h(provider_status.receive_hour1) if provider_status.receive_hour1 %>
31       </td>
32       <td>
33         <%= h(provider_status.receive_hour2) if provider_status.receive_hour2 %>
34       </td>
35       <td>
36         <%= link_to t('provider_statuses.open'), provider_status.provider.demander_url %>
37       </td>
38     </tr>
39   <% end %>
40 </table>
41 <div>
42 <% if @hide.blank? %>
43   <%= link_to t('provider_statuses.wait'), provider_statuses_path(:hide => 1) %>
44 <% else %>
45   <%= link_to t('provider_statuses.all'), provider_statuses_path %>
46 <% end %>
47 </div>
48 <div>
49   <%= link_to t('provider_statuses.to_provider'), providers_path(:page => @page, :page_size => @page_size, :hide => @hide) %>
50 </div>