OSDN Git Service

classname rename to module_name
[pettanr/pettanr.git] / app / views / providers / index.html.erb
index e55ff37..1fc213e 100644 (file)
@@ -1,11 +1,13 @@
-<h1>貸手一覧</h1>
+<h1><%= t('.title') %></h1>
+<p id="notice"><%= notice %></p>
+
 <table>
   <tr>
-    <th>caption</th>
-    <th>name</th>
-    <th>description</th>
-    <th>status</th>
-    <th>開く</th>
+    <th><%= t_m 'Provider.caption' -%></th>
+    <th><%= t_m 'Provider.name' -%></th>
+    <th><%= t_m 'Provider.description' -%></th>
+    <th><%= t 'providers.status' -%></th>
+    <th><%= t 'providers.open' -%></th>
   </tr>
   
   <% @providers.each do |provider| %>
         <%= h(truncate(provider.description, :length => 30)) %>
       </td>
       <td>
-        <%= link_to h(MagicNumber['provider_status_items'][provider.status].first), provider_status_path(provider.provider_status) %>
+        <%= link_to t(MagicNumber['provider_status_status_items'][provider.status].first), provider_status_path(provider.provider_status) %>
       </td>
       <td>
-        <%= link_to '開く', provider.url %>
+        <%= link_to t('providers.open'), provider.url %>
       </td>
     </tr>
   <% end %>
 </table>
 <div>
 <% if @hide.blank? %>
-  <%= link_to '待機中の貸手だけを表示する', providers_path(:hide => 1) %>
+  <%= link_to t('providers.wait'), providers_path(:hide => 1) %>
 <% else %>
-  <%= link_to 'すべての貸手を表示する', providers_path %>
+  <%= link_to t('providers.all'), providers_path %>
 <% end %>
 </div>
 <div>
-  <%= link_to '借受状況に切り替える', provider_statuses_path(:page => @page, :page_size => @page_size, :hide => @hide) %>
+  <%= link_to t('providers.to_provider_status'), provider_statuses_path(:page => @page, :page_size => @page_size, :hide => @hide) %>
 </div>