% if webhooks.any? %>
| <%= l :field_user %> | <% end %><%= l :field_active %> | <%= l :field_url %> | <%= l :label_webhook_events %> | <%= l :label_project_plural %> | |
|---|---|---|---|---|---|
| <%= link_to_user webhook.user %> | <% end %><%= webhook.active ? l(:general_text_Yes) : l(:general_text_No) %> | <%= truncate webhook.url, length: 40 %> | <%= safe_join webhook.events.map{|e| content_tag :code, e }, ', ' %> | <%= safe_join webhook.projects.to_a.select(&:visible?).map{|p| link_to_project(p) }, ', ' %> | <%= link_to sprite_icon('edit', l(:button_edit)), edit_webhook_path(webhook, link_params), class: 'icon icon-edit' %> <%= delete_link webhook_path(webhook, link_params) %> |
<%= l(:label_no_data) %>
<% end %>