<% @page_title = "Webhooks" %> <% content_for :header do %> <%= render "filters/menu" %>
<%= link_to cards_path(collection_ids: [ @collection ]), class: "btn borderless txt-medium", data: { controller: "hotkey", action: "keydown.esc@document->hotkey#click" } do %> <%= @collection.name %> <% end %>

<%= @page_title %>

<%= link_to new_collection_webhook_path, class: "btn" do %> <%= icon_tag "add" %> Create a new webhook <% end %>
<% end %> <%= tag.section class: "panel shadow center webhooks" do %> <% if @page.records.any? %> <% else %>

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.

For example, you could create a webhook that posts to a Campfire chat in Basecamp when new cards are added to Fizzy.

<%= link_to new_collection_webhook_path, class: "btn btn--link" do %> <%= icon_tag "add" %> Set up a webhook <% end %> <% end %> <% end %>