Sha256: 3b5b309e250a8ca69f15942aac93994fa852f9b5f0fe74fc212214fcab068e45

Contents?: true

Size: 1.95 KB

Versions: 4

Compression:

Stored size: 1.95 KB

Contents

<% content_for :page_title do %>
  <%= link_to Spree.t('admin.webhooks_subscribers.webhooks_subscribers'), spree.admin_webhooks_subscribers_path %> /
  <%= Spree.t('admin.webhooks_subscribers.webhooks_events') %>
<% end %>

<fieldset>
  <div class="table-responsive">
    <table class="table table-bordered">
      <tr>
        <td><strong><%= Spree.t('admin.url') %></strong></td>
        <td><%= @webhooks_subscriber.url %></td>
      </tr>
      <tr>
        <td><strong><%= Spree.t('admin.active') %></strong></td>
        <td><%= active_badge(@webhooks_subscriber.active) %></td>
      </tr>
      <tr>
        <td><strong><%= Spree.t('admin.webhooks_subscribers.subscriptions') %></strong></td>
        <td><%= @webhooks_subscriber.subscriptions&.join(', ') %></td>
      </tr>
    </table>
  </div>
</fieldset>

<% if @events.any? %>
  <div class="table-responsive">
    <table class="table">
      <thead>
      <tr>
        <th><%= Spree.t('admin.name') %></th>
        <th><%= Spree.t('admin.successful') %></th>
        <th><%= Spree.t('admin.created_at') %></th>
        <th><%= Spree.t('admin.response_code') %></th>
        <th><%= Spree.t('admin.execution_time') %></th>
        <th><%= Spree.t('admin.request_errors') %></th>
        <th></th>
      </tr>
      </thead>
      <tbody>
      <% @events.each do |event| %>
        <tr id="<%= spree_dom_id event %>">
          <td><%= event.name %></td>
          <td><%= active_badge(event.success) %></td>
          <td><%= event.created_at %></td>
          <td><%= event.response_code %></td>
          <td><%= event.execution_time %></td>
          <td><%= sanitize event.request_errors.gsub('[SPREE WEBHOOKS]', '') %></td>
        </tr>
      <% end %>
      </tbody>
    </table>
  </div>
  <%= render 'spree/admin/shared/index_table_options', collection: @events, simple: true %>

<% else %>
  <div class="alert alert-info no-objects-found">
    <%= Spree.t('admin.webhooks_subscribers.no_events') %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
spree_backend-4.4.1 app/views/spree/admin/webhooks_subscribers/show.html.erb
spree_backend-4.4.0 app/views/spree/admin/webhooks_subscribers/show.html.erb
spree_backend-4.4.0.rc2 app/views/spree/admin/webhooks_subscribers/show.html.erb
spree_backend-4.4.0.rc1 app/views/spree/admin/webhooks_subscribers/show.html.erb