784d6cf690
I doubt most collections will ever have more than a handul
38 lines
1.5 KiB
Plaintext
38 lines
1.5 KiB
Plaintext
<% @page_title = "Webhooks" %>
|
|
|
|
<% content_for :header do %>
|
|
<%= render "filters/menu", user_filtering: @user_filtering %>
|
|
<div class="header__actions header__actions--start">
|
|
<%= link_to cards_path(collection_ids: [ @collection ]), class: "btn borderless txt-medium", data: { controller: "hotkey", action: "keydown.esc@document->hotkey#click" } do %>
|
|
<span class="overflow-ellipsis">
|
|
←
|
|
<strong><%= @collection.name %></strong>
|
|
</span>
|
|
<% end %>
|
|
</div>
|
|
|
|
<h1 class="header__title"><%= @page_title %></h1>
|
|
|
|
<div class="header__actions header__actions--end">
|
|
<%= link_to new_collection_webhook_path, class: "btn" do %>
|
|
<%= icon_tag "add" %>
|
|
<span class="for-screen-reader">Create a new webhook</span>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<%= tag.section class: "panel shadow center webhooks" do %>
|
|
<% if @page.records.any? %>
|
|
<ul class="flex flex-column align-start gap margin-none unpad webhooks-list">
|
|
<%= render partial: "webhooks/webhook", collection: @page.records %>
|
|
</ul>
|
|
<% else %>
|
|
<p>Webhooks can notify another application when something happens in this Fizzy collection. You'll choose which events to subscribe to and provide a URL to receive the data.</p>
|
|
<p>For example, you could create a webhook that posts to a Campfire chat in Basecamp when new cards are added to Fizzy.</p>
|
|
<%= link_to new_collection_webhook_path, class: "btn btn--link" do %>
|
|
<%= icon_tag "add" %>
|
|
<span>Set up a webhook</span>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|