From 659a177c3fbded070719c2266fdbfff22883a4bc Mon Sep 17 00:00:00 2001 From: salman Date: Sat, 2 Sep 2023 13:53:54 +0330 Subject: [PATCH 1/2] Update _show.html.erb make URL translatable --- app/views/webhook_settings/_show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/webhook_settings/_show.html.erb b/app/views/webhook_settings/_show.html.erb index d9bf953..143f2a3 100644 --- a/app/views/webhook_settings/_show.html.erb +++ b/app/views/webhook_settings/_show.html.erb @@ -3,7 +3,7 @@ <% Webhook.where(:project_id => @project.id).each do |webhook|%> <%= form_tag(update_webhook_path(@project, webhook.id), :method => :put, :class => "tabular") do %> - URL + <%= l(:field_url) %> <%= text_field_tag :url, webhook.url, :size => 80 %> <%= submit_tag l(:button_update) %> @@ -17,7 +17,7 @@ <%= form_tag(create_webhook_path(@project), :method => :post, :class => "tabular") do %>
- URL + <%= l(:field_url) %> <%= text_field_tag :url, '', :size => 80 %> <%= submit_tag l(:button_add) %> From 92893a7c06542f6df79250576547ab85326748bb Mon Sep 17 00:00:00 2001 From: salman Date: Sat, 2 Sep 2023 13:56:03 +0330 Subject: [PATCH 2/2] Update en.yml Add two item to support i8n --- config/locales/en.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/locales/en.yml b/config/locales/en.yml index 75cd412..856463c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -7,4 +7,6 @@ en: notice_successful_update_webhook : Webhook updated successfully. notice_fail_delete_webhook: Webhook delete failed. notice_successful_delete_webhook : Webhook deleted successfully. + project_module_webhooks: Webhooks + permission_manage_hook: Manage webhook