Sha256: 4810e96fe1b80c6a3282cd29997255809843a6a14657559fa1f55e3501571629

Contents?: true

Size: 984 Bytes

Versions: 1

Compression:

Stored size: 984 Bytes

Contents

%h1 Listing Message Routes

= div_for(@applications, :style => "margin-top: 20px; border-top-style: solid; border-top-width: 4px; border-color: #999;") do |application|

  %h2= application.name
  
  = div_for(application.message_types.order(:name), :style => 'margin-left: 15px;') do |message_type|
  
    %h2= message_type.name
    
    %table{ :style => "margin-left: 20px;"}
      %tr
        %th Incoming status
        %th Dispatch to
        %th 
        %th 
        %th 
    
      = content_tag_for(:tr, message_type.message_routes.order(:incoming_status)) do |message_route| 
        %td= message_route.match_errors ? "*ALL ERRORS*" : message_route.incoming_status 
        %td= message_route.dispatch_to 
        %td= link_to 'Show', message_route 
        %td= link_to 'Edit', edit_message_route_path(message_route) 
        %td= link_to 'Destroy', message_route, confirm: 'Are you sure?', method: :delete 
    
%br

= link_to 'New Message route', new_message_route_path 

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
eventbus-0.0.20 admin/app/views/message_routes/index.html.haml