Sha256: 3bb4d29cbaca9834e89c88395e8bbf4173760e3acca2592ec7d165febf3ae302

Contents?: true

Size: 1.48 KB

Versions: 11

Compression:

Stored size: 1.48 KB

Contents

<% 
failed_dispatches = failed_service_dispatches()
unless ( failed_dispatches.nil? || failed_dispatches.empty? ) %>
  <div id="service_errors_content" class="alert alert-danger">
    <h5 class="warning"><i class="umlaut_icons-famfamfam-error"></i> <%= t 'umlaut.error.service_errors_title' %></h5>
    <ul class="list-unstyled">
      <% failed_dispatches.each do | dispatch | %>
        <li class="text-small">
          <%= t 'umlaut.error.services_missing' %><strong> <%= dispatch.service.service_types_generated.collect { |type|
            type.display_name_pluralize}.uniq.join(", ")%></strong>
          <%= t 'umlaut.resolve.from_service' %> <a class="collapse-toggle alert-link" data-target="<%= "#failed_dispatch_#{dispatch.id}"%>" data-toggle="collapse"><strong><%= dispatch.service.display_name %></strong></a>
          <% exception_info = dispatch.exception_info %>
          <div id="<%= "failed_dispatch_#{dispatch.id}"%>" class="collapse">
            <ul class="nav nav-list">
              <li class="nav-header"><%= t 'umlaut.error.technical_error_info' %></li>
              <%= content_tag("li") do
                content_tag("pre", :class=>"pre-scrollable") do
                  error_message = (exception_info) ? "#{exception_info[:class_name]}: #{exception_info[:message]}\n" : ""
                  error_message + "dispatched service id: #{dispatch.id}"
                end
              end %>
            </ul>
          </div>
        </li>
      <% end %>
    </ul>
  </div>
<% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
umlaut-4.1.7 app/views/resolve/_service_errors.html.erb
umlaut-4.1.6 app/views/resolve/_service_errors.html.erb
umlaut-4.1.5 app/views/resolve/_service_errors.html.erb
umlaut-4.1.4 app/views/resolve/_service_errors.html.erb
umlaut-4.1.3 app/views/resolve/_service_errors.html.erb
umlaut-4.1.2 app/views/resolve/_service_errors.html.erb
umlaut-4.1.1 app/views/resolve/_service_errors.html.erb
umlaut-4.1.0 app/views/resolve/_service_errors.html.erb
umlaut-4.1.0.pre3 app/views/resolve/_service_errors.html.erb
umlaut-4.1.0.pre.2 app/views/resolve/_service_errors.html.erb
umlaut-4.1.0.pre.alpha.1 app/views/resolve/_service_errors.html.erb