<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>
+<% if @import_result.response? %>
+ <% if @import_result.success? %>
+ <h2>
+ <%= t("provider_statuses.#{@import_result.action}.success") %>
+ </h2>
+ <% else %>
+ <%= render 'import_errors', :import_result => @import_result %>
+ <%= link_to t("provider_statuses.#{@import_result.action}.to_show"), provider_status_path(@provider_status) %>
+ <% end %>
<% else %>
- <%= render 'licenses_errors', :failures => @failures %>
- <%= link_to t('provider_statuses.licenses_import.to_show'), provider_status_path(@provider_status) %>
+ <h1>No Response</h1>
<% end %>