From ba399b8d03956af5ab394a7ebd586549a236e31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20Vill=C3=A9n?= <72191439+lvillen@users.noreply.github.com> Date: Fri, 27 Sep 2024 12:02:24 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Add=20description=20to=20Applica?= =?UTF-8?q?tions=20(#3892)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/api/applications/index.html.slim | 2 ++ app/views/provider/admin/applications/index.html.slim | 3 +-- config/locales/en.yml | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/api/applications/index.html.slim b/app/views/api/applications/index.html.slim index 04a274c276..1122cc646d 100644 --- a/app/views/api/applications/index.html.slim +++ b/app/views/api/applications/index.html.slim @@ -1,5 +1,7 @@ - service_name = @service.name - content_for :page_header_title, "Applications on #{service_name}" +- content_for :page_header_body do + = t('.description') - if current_user.accessible_services.empty? = render 'shared/service_access' diff --git a/app/views/provider/admin/applications/index.html.slim b/app/views/provider/admin/applications/index.html.slim index e3d777af09..9f65a86a7a 100644 --- a/app/views/provider/admin/applications/index.html.slim +++ b/app/views/provider/admin/applications/index.html.slim @@ -1,7 +1,6 @@ - content_for :page_header_title, 'Applications' - content_for :page_header_body do - ' Applications are a representation of an API consumer. They include credentials obtained through the API's authentication method, - ' along with usage metrics and other metadata. The application plan sets the limits for each application. + = t('api.applications.index.description') - if current_user.accessible_services.empty? = render 'shared/service_access' diff --git a/config/locales/en.yml b/config/locales/en.yml index a30651665a..12ee5e00fa 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -724,6 +724,9 @@ en: delete_alert_confirmation: Do you really want to delete this alert? applications: index: + description: | + Applications represent pieces of software consuming the API. They contain a set of credentials used to access the API, + along with usage metrics and other metadata. The application plan sets the limits for each application. empty_state: title: No applications yet body: There are no applications subscribed to %{name}.