docbrown/app/views/admin/webhook_endpoints/index.html.erb
ludwiczakpawel 8ec4044f3e
[deploy] Adding Crayons to Admin (#10015)
* layout

* user

* config

* header

* badges, badge_achievements, layout

* broadcasts

* chat channels

* comments.. not much really

* Events

* growth

* listings

* mod actions

* mods

* orgs

* pages

* permissions

* podcasts

* reactions

* profile fields

* reports

* response templates

* tools

* users

* Secrets

* webhooks

* welcome threads

* .

* internal

* css fix

* .

* main element elsewhere

* scope

* bring back some of the old styling

* .

* .

* .

* notice

* Revert schema.db

* add alert

* little fixes

* profile fields

* Update schema.rb

* closing span

* another span

* Fixed broken admin specs.

Co-authored-by: Nick Taylor <nick@dev.to>
2020-08-31 10:29:06 -04:00

28 lines
817 B
Text

<%= paginate @endpoints %>
<table class="crayons-table" width="100%">
<thead>
<tr>
<th scope="col">Target URL</th>
<th scope="col">ID</th>
<th scope="col">Events</th>
<th scope="col">Source</th>
<th scope="col">User</th>
<th scope="col">Created At</th>
</tr>
</thead>
<tbody class="crayons-card">
<% @endpoints.each do |endpoint| %>
<tr>
<td><%= link_to endpoint.target_url, endpoint.target_url %></td>
<td><%= endpoint.id %></td>
<td><%= endpoint.events.join(", ") %></td>
<td><%= endpoint.source %></td>
<td><%= link_to endpoint.user.username, endpoint.user.path %></td>
<td><%= endpoint.created_at.strftime("%H:%M %d %b %Y") %></td>
</tr>
<% end %>
</tbody>
</table>
<%= paginate @endpoints %>