OSDN Git Service

t#30328:pull porting
[pettanr/pettanr.git] / app / views / provider_statuses / licenses_import.html.erb
diff --git a/app/views/provider_statuses/licenses_import.html.erb b/app/views/provider_statuses/licenses_import.html.erb
new file mode 100644 (file)
index 0000000..90e2022
--- /dev/null
@@ -0,0 +1,31 @@
+<h1><%= t('.title') %></h1>
+<p id="notice"><%= notice %></p>
+
+<% if @failures == nil %>
+  <h1>No Response</h1>
+<% elsif @failures.empty? %>
+  <h2>
+    <%= t('provider_statuses.licenses_import.success') %>
+  </h2>
+<% else %>
+  <h2>
+    <%= t('provider_statuses.licenses_import.fail', :size => @failures.size) %>
+  </h2>
+  <table>
+    <tr>
+      <th><%= t_m 'License.caption' -%></th>
+      <th><%= t_m 'License.name' -%></th>
+    </tr>
+    <% @failures.each do |license| %>
+      <tr>
+        <td>
+          <%= link_to h(license['caption']), license['url'] %>
+        </td>
+        <td>
+          <%= h(license['name']) %>
+        </td>
+      </tr>
+    <% end %>
+  </table>
+  <%= link_to t('provider_statuses.licenses_import.to_show'), provider_status_path(@provider_status) %>
+<% end %>