Nessuna descrizione http://j1x-huginn.herokuapp.com

index.html.erb 906B

    <table class='table table-striped logs'> <tr> <th>Message</th> <th>When</th> <th></th> </tr> <% @logs.each do |log| %> <tr> <td><%= truncate log.message, :length => 200, :omission => "..." %></td> <td><%= time_ago_in_words log.created_at %> ago</td> <td> <div class="btn-group"> <% if log.inbound_event_id.present? %> <%= link_to 'Event In', event_path(log.inbound_event), class: "btn btn-mini" %> <% else %> <%= link_to 'Event In', '#', class: "btn btn-mini disabled" %> <% end %> <% if log.outbound_event_id.present? %> <%= link_to 'Event Out', event_path(log.outbound_event), class: "btn btn-mini" %> <% else %> <%= link_to 'Event Out', '#', class: "btn btn-mini disabled" %> <% end %> </div> </td> </tr> <% end %> </table>