index.html.erb 711 B

1234567891011121314151617181920
  1. <% if @events && @events.length > 0 %>
  2. <h5>Recently received events: </h5>
  3. <% @events.each do |event| %>
  4. <%= link_to '#', class: 'dry-run-event-sample', 'data-payload' => event.payload.to_json do %>
  5. <pre><%= truncate event.payload.to_json, :length => 90, :omission => "" %></pre>
  6. <% end %>
  7. <% end %>
  8. <% end %>
  9. <h5>Event to send<%= params[:with_event_mode] == 'maybe' ? ' (Optional)' : '' %></h5>
  10. <form class="dry-run-form" method="post">
  11. <div class="form-group">
  12. <textarea rows="10" name="event" class="payload-editor" data-height="200">
  13. {}
  14. </textarea>
  15. </div>
  16. <div class="form-group">
  17. <input value="Dry Run" class="btn btn-primary" type="submit" />
  18. </div>
  19. </form>