From 0fcd5a6471bb2bfe08cbc260eb807adc5d01de55 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Thu, 23 Jan 2020 14:34:43 -0500 Subject: [PATCH] Move text into translations file and fix formatting to make file more readable --- .../applications/fragments/environments.html | 30 ++++++++++++++----- translations.yaml | 7 ++++- 2 files changed, 29 insertions(+), 8 deletions(-) diff --git a/templates/applications/fragments/environments.html b/templates/applications/fragments/environments.html index 5f92e6aa..51cad0fc 100644 --- a/templates/applications/fragments/environments.html +++ b/templates/applications/fragments/environments.html @@ -17,7 +17,7 @@ {% if 0 == environments_obj | length -%}

- This Application has no environments + {{ 'portfolios.applications.environments.blank_slate' | translate }}

{% else %} @@ -43,7 +43,7 @@ ) }} {% if user_can(permissions.EDIT_ENVIRONMENT) -%} - {% set edit_environment_button = "Edit" %} + {% set edit_environment_button = "common.edit"|translate %} {{ ToggleButton( open_html=edit_environment_button, @@ -56,8 +56,15 @@ {% if env['pending'] -%} {{ Label(type="changes_pending", classes='label--below')}} {% else %} - - {{ "portfolios.applications.csp_link" | translate }} {{ Icon('link', classes="icon--tiny") }} + + + {{ "portfolios.applications.csp_link" | translate }} + {{ Icon('link', classes="icon--tiny") }} + {%- endif %} @@ -66,7 +73,7 @@ {% call ToggleSection(section_name="members") %}