Files
Redmine/app/views/webhooks/index.html.erb
Marius Balteanu 8a79459996 Fixes translation missing: en.label_url (#29664).
git-svn-id: https://svn.redmine.org/redmine/trunk@24197 e93f8b46-1217-0410-a6f0-8f06a7374b81
2025-12-03 22:29:42 +00:00

36 lines
1.3 KiB
Plaintext

<div class="contextual">
<%= link_to sprite_icon('add', l(:label_webhook_new)), new_webhook_path, class: 'icon icon-add' %>
</div>
<%= title l :label_webhook_plural %>
<% if @webhooks.any? %>
<div class="autoscroll">
<table class="list">
<thead><tr>
<th><%= l :field_active %></th>
<th><%= l :field_url %></th>
<th><%= l :label_webhook_events %></th>
<th><%= l :label_project_plural %></th>
<th></th>
</tr></thead>
<tbody>
<% @webhooks.each do |webhook| %>
<tr id="webhook_<%= webhook.id %>" class="<%= cycle("odd", "even") %>">
<td><%= webhook.active ? l(:general_text_Yes) : l(:general_text_No) %></td>
<td><%= truncate webhook.url, length: 40 %></td>
<td><%= safe_join webhook.events.map{|e| content_tag :code, e }, ', ' %></td>
<td><%= safe_join webhook.projects.visible.map{|p| link_to_project(p) }, ', ' %></td>
<td class="buttons">
<%= 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' %>
</td>
</tr>
<% end %>
</tbody>
</table>
</div>
<% else %>
<p class="nodata"><%= l(:label_no_data) %></p>
<% end %>