From 5cb97e8110cb11c34da9379ea4d5f2000edaefdf Mon Sep 17 00:00:00 2001 From: Frank Wall Date: Tue, 2 Mar 2021 17:02:36 +0100 Subject: [PATCH] net/haproxy: use a consistent wording throughout (GUI only, backend unchanged) While here, improve visibility of important table data in maintenance page. --- .../views/OPNsense/HAProxy/maintenance.volt | 26 +++++++++---------- .../conf/actions.d/actions_haproxy.conf | 2 +- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/maintenance.volt b/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/maintenance.volt index 9db0cab18..7934afc06 100644 --- a/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/maintenance.volt +++ b/net/haproxy/src/opnsense/mvc/app/views/OPNsense/HAProxy/maintenance.volt @@ -64,7 +64,7 @@ POSSIBILITY OF SUCH DAMAGE. $.post('/api/haproxy/maintenance/certDiff', payload, function(data) { BootstrapDialog.show({ type: BootstrapDialog.TYPE_INFO, - title: "{{ lang._('Diff between configured and active ssl certificates') }}", + title: "{{ lang._('Diff between configured and active SSL certificates') }}", message: `
${data}
`, buttons: [{ label: '{{ lang._('Close') }}', @@ -80,7 +80,7 @@ POSSIBILITY OF SUCH DAMAGE. $.post('/api/haproxy/maintenance/certActions', payload, function(data_actions) { question = '' question += `
${data_actions}
`; - question += '{{ lang._('Apply ssl certificates to HaProxy?') }}

'; + question += '{{ lang._('Apply SSL certificates to HAProxy?') }}

'; stdDialogConfirm('{{ lang._('Confirmation Required') }}', question, @@ -92,7 +92,7 @@ POSSIBILITY OF SUCH DAMAGE. var error_msg = syncErrorMessage(data.result.modified, data.result.deleted); BootstrapDialog.show({ type: BootstrapDialog.TYPE_DANGER, - title: "{{ lang._('Error applying ssl certificates to HAProxy') }}", + title: "{{ lang._('Error applying SSL certificates to HAProxy') }}", message: error_msg, buttons: [{ label: '{{ lang._('Close') }}', @@ -124,8 +124,8 @@ POSSIBILITY OF SUCH DAMAGE. formatters: { "commands": function (column, row) { buttons = "" - buttons += "" - buttons += " " + buttons += "" + buttons += " " return buttons; }, }, @@ -202,7 +202,7 @@ POSSIBILITY OF SUCH DAMAGE. var error_msg = syncErrorMessage(data.result.modified, data.result.deleted); BootstrapDialog.show({ type: BootstrapDialog.TYPE_DANGER, - title: "{{ lang._('Error applying ssl certificates to HAProxy') }}", + title: "{{ lang._('Error applying SSL certificates to HAProxy') }}", message: error_msg, buttons: [{ label: '{{ lang._('Close') }}', @@ -344,7 +344,7 @@ POSSIBILITY OF SUCH DAMAGE. }); question += ''; question += '{{ lang._('State: ') }}' + state + '

'; - question += '{{ lang._('Set administrative state for all selected server?') }}

'; + question += '{{ lang._('Set administrative state for all selected servers?') }}

'; stdDialogConfirm('{{ lang._('Confirmation Required') }}', question, @@ -389,7 +389,7 @@ POSSIBILITY OF SUCH DAMAGE. question += '
'; question += ''; question += '
'; - question += '{{ lang._('Set weight for all selected server?') }}

'; + question += '{{ lang._('Set weight for all selected servers?') }}

'; stdDialogConfirm('{{ lang._('Confirmation Required') }}', question, @@ -451,11 +451,11 @@ POSSIBILITY OF SUCH DAMAGE. {{ lang._('id') }} - {{ lang._('Proxy') }} - {{ lang._('Server') }} + {{ lang._('Virtual Service') }} + {{ lang._('Real Server') }} {{ lang._('Address') }} {{ lang._('Status') }} - {{ lang._('Check Status') }} + {{ lang._('Check Status') }} {{ lang._('Weight') }} {{ lang._('Sessions') }} {{ lang._('Bytes in') }} @@ -501,8 +501,8 @@ POSSIBILITY OF SUCH DAMAGE. - - + + diff --git a/net/haproxy/src/opnsense/service/conf/actions.d/actions_haproxy.conf b/net/haproxy/src/opnsense/service/conf/actions.d/actions_haproxy.conf index ac6bd8336..a9f3c5b25 100644 --- a/net/haproxy/src/opnsense/service/conf/actions.d/actions_haproxy.conf +++ b/net/haproxy/src/opnsense/service/conf/actions.d/actions_haproxy.conf @@ -113,7 +113,7 @@ command:configctl template reload OPNsense/HAProxy 2 > /dev/null; /usr/local/opn parameters: type:script_output message:Sync ssl certificates into HAProxy memory for all frontends -description:Sync ssl certificates changes into HAProxy memory +description:Sync SSL certificate changes into running HAProxy service [showconf] command:test -f /usr/local/etc/haproxy.conf.staging && cat /usr/local/etc/haproxy.conf.staging