Sha256: 6bd5d264136fee04940f272a610359e8994c46c8b312ed7ca68d239921ecd3cb

Contents?: true

Size: 1.34 KB

Versions: 7

Compression:

Stored size: 1.34 KB

Contents

<% 
failed_dispatches = failed_service_dispatches()
unless ( failed_dispatches.nil? || failed_dispatches.empty? ) %>
  <div id="service_errors_content">
    <h5 class="warning"><i class="umlaut_icons-famfamfam-error"></i> Some content may not be included due to errors:</h5>
    <ul>
      <% failed_dispatches.each do | dispatch | %>
        <li class="text-small">
          Some <strong><%= dispatch.service.service_types_generated.collect { |type|
            type.display_name_pluralize.downcase}.join(",") %></strong>
          from <a class="collapse-toggle" 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">Technical Error Information</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

7 entries across 7 versions & 1 rubygems

Version Path
umlaut-3.3.1 app/views/resolve/_service_errors.html.erb
umlaut-3.3.0 app/views/resolve/_service_errors.html.erb
umlaut-3.2.0 app/views/resolve/_service_errors.html.erb
umlaut-3.1.1 app/views/resolve/_service_errors.html.erb
umlaut-3.1.0 app/views/resolve/_service_errors.html.erb
umlaut-3.1.0.pre2 app/views/resolve/_service_errors.html.erb
umlaut-3.1.0.pre1 app/views/resolve/_service_errors.html.erb