<% if webhooks.any? %>
<% if show_author %><% end %> <% webhooks.each do |webhook| %> <% link_params = back_url.present? ? {:back_url => back_url} : {} %> "> <% if show_author %><% end %> <% end %>
<%= l :field_user %><%= l :field_active %> <%= l :field_url %> <%= l :label_webhook_events %> <%= l :label_project_plural %>
<%= link_to_user webhook.user %><%= 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) %>
<% else %>

<%= l(:label_no_data) %>

<% end %>