<%= link_to sprite_icon('add', l(:label_webhook_new)), new_webhook_path, class: 'icon icon-add' %>
<%= title l :label_webhook_plural %> <% if @webhooks.any? %>
<% @webhooks.each do |webhook| %> "> <% end %>
<%= l :field_active %> <%= l :label_url %> <%= l :label_webhook_events %> <%= l :label_project_plural %>
<%= 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.visible.map{|p| link_to_project(p) }, ', ' %> <%= link_to sprite_icon('edit', l(:button_edit)), edit_webhook_path(webhook), class: 'icon icon-edit' %> <%= link_to sprite_icon('del', l(:button_delete)), webhook_path(webhook), :data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :class => 'icon icon-del' %>
<% else %>

<%= l(:label_no_data) %>

<% end %>