<%= f.text_field :url, required: true, size: 60 %> + <%= l :webhook_url_info %> +
++ <%= f.text_field :secret %> + <%= raw l :webhook_secret_info_html %> +
+<%= f.check_box :active %>
+| <%= 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' %> + | +
<%= l(:label_no_data) %>
+<% end %> diff --git a/app/views/webhooks/new.html.erb b/app/views/webhooks/new.html.erb new file mode 100644 index 000000000..50359f320 --- /dev/null +++ b/app/views/webhooks/new.html.erb @@ -0,0 +1,7 @@ +