Sha256: 1ad0f72b4990efcddc75d99fdcef8e8c18a07fc457bd8a9e83566b509489c794

Contents?: true

Size: 995 Bytes

Versions: 2

Compression:

Stored size: 995 Bytes

Contents

<%= link_to "Aggregate:" + params[:aggregate_id], url_for(aggregate_id: nil), class: 'badge badge-secondary' if params[:aggregate_id] %>
<%= link_to "Stream: " + params[:stream_id], url_for(stream_id: nil), class: 'badge badge-secondary' if params[:stream_id] %>

<table class="table table-striped table-hover">
  <thead class="thead-dark">
    <tr>
      <th scope="col"> id</th>
      <th scope="col"> event_type</th>
      <th scope="col"> aggregate_id</th>
      <th scope="col"> sequence_number</th>
      <th scope="col"> event_json</th>
    </tr>
  </thead>

  <% @grouped_events.each do |command, events| %>
    <thead class="thead-light">
      <tr>
        <th colspan="4">
          <%= link_to command.command_type, command_path(command) %>
        </th>
        <th colspan="4">
          User: <%= command.user_id %>
        </th>
      </tr>
    </thead>
    <tbody class="events">
      <%= render collection: events, partial: 'event_record' %>
    </tbody>
  <% end %>
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sequent-rails-0.1.1 app/views/sequent/events/index.html.erb
sequent-rails-0.1.0 app/views/sequent/events/index.html.erb