diff --git a/Resources/views/themes/admin/dashboard/block/ez.html.twig b/Resources/views/themes/admin/dashboard/block/ez.html.twig
index 0251412d..f2e7f6b7 100644
--- a/Resources/views/themes/admin/dashboard/block/ez.html.twig
+++ b/Resources/views/themes/admin/dashboard/block/ez.html.twig
@@ -11,59 +11,89 @@
{% set levels = {0: "info", 1: "warning", 2: "danger"} %}
{% set icons = {0: "", 1: "⚠", 2: "⚠"} %}
{% set status %}
+{% set urls = {
+ 'contact': "https://ez.no/About-eZ/Contact-Us",
+ 'license': "https://ez.no/About-our-Software/Licenses-and-agreements",
+ 'ttl': "https://ez.no/About-our-Software/Licenses-and-agreements/eZ-Trial-and-Test-License-Agreement-eZ-TTL-v2.1",
+ 'service_life': "https://support.ez.no/Public/Service-Life",
+ 'support_service': "https://ez.no/Services/Support-Maintenance",
+ 'training_service': "https://ez.no/Services/Training",
+ 'consulting_service': "https://ez.no/Services/Consulting",
+ 'ee_product': "https://ez.no/Products/eZ-Platform-Enterprise-Edition",
+} %}
{% spaceless %}
{% if not ez.release %}
{% set severity = 1 %}
- The system could not find your composer.lock
file, it's needed in order to determine information about
- your eZ install, and recommended to be kept on project development to make sure same package versions are used across all environments.
+ {% trans %}
+ The system could not find your composer.lock
file, it's needed in order to determine information about
+ your eZ install, and recommended to be kept on project development to make sure same package versions are used across all environments.
+ {% endtrans %}
{% elseif ez.isTrial %}
{% set badge = 'Trial' %}
{% if ez.isEndOfLife %}
{% set severity = 2 %}
- Unfortunately your trial period has expired and your
TTL license
- is no longer valid.
Contact eZ or its partner(s)
- to purchase a subscription and follow the
online documentation
- to configure your project.
+ {% trans with {'%ttl_url%': urls['ttl']} %}
+ Unfortunately your trial period has expired and your
TTL license is no longer valid.
+ {% endtrans %}
+ {% trans with {'%contact_url%': urls['contact'], '%install_ee_url%': "https://doc.ezplatform.com/en/#{ez.release}/getting_started/install_ez_enterprise/"} %}
+
Contact eZ or its partner(s) to purchase a subscription.
+ And follow the
online documentation to configure your project.
+ {% endtrans %}
{% elseif ez.isEndOfMaintenance %}
{% set severity = 1 %}
- Your trial period is coming to an end.
Contact eZ or its partner(s)
- to purchase a subscription and follow the
online documentation to configure your project.
+ {% trans with {'%contact_url%': urls['contact'], '%install_ee_url%': "https://doc.ezplatform.com/en/#{ez.release}/getting_started/install_ez_enterprise/"} %}
+ Your trial period is coming to an end.
+ {% endtrans %}
+ {% trans with {'%contact_url%': urls['contact'], '%install_ee_url%': "https://doc.ezplatform.com/en/#{ez.release}/getting_started/install_ez_enterprise/"} %}
+
Contact eZ or its partner(s) to purchase a subscription.
+ And follow the
online documentation to configure your project.
+ {% endtrans %}
{% else %}
{% set severity = 0 %}
- Welcome to {{ ez.name }}, check our
online documentation,
- and
Contact eZ for
consulting service
- or
trainings in order to get the most out of your trial.
+ {% trans with {'%name%': ez.name, '%doc_url%': 'https://doc.ezplatform.com', '%consulting_url%': urls['consulting_service'], '%training_url%': urls['training_service']} %}
+ Welcome to %name%, check our
online documentation,
consulting
+ or
trainings services in order to get the most out of your trial.
+ {% endtrans %}
+ {% trans with {'%contact_url%': urls['contact'], '%install_ee_url%': "https://doc.ezplatform.com/en/#{ez.release}/getting_started/install_ez_enterprise/"} %}
+
Contact eZ or its partner(s) to purchase a subscription.
+ And follow the
online documentation to configure your project.
+ {% endtrans %}
{% endif %}
{% elseif not ez.isEnterpise %}
{% set badge = 'GPL' %}
{% if ez.isEndOfMaintenance %}
- {# In the future with retrival of info from updates.ez.no we can detect missing security fixes and make error for that when public #}
+ {# In the future with retrival of info from updates.ez.no we can detect missing (public) security fixes and then let this become an error #}
{% set severity = 1 %}
- Unfortunately {{ ez.release }} open source version has reached end of life,
please upgrade.
+ {% trans with {'%release%': ez.release, '%update_url%': 'https://doc.ezplatform.com/en/latest/releases/updating_ez_platform/'} %}
+ Unfortunately %release% open source version has reached end of life,
please upgrade.
+ {% endtrans %}
+
- Tip: If you upgrade to eZ Platform Enterprise you'll get access to:
- A business friendly license,
- several productivity features,
- professional Support and
- longer maintenance periode of your release.
+ {% trans with {'%license_url%': urls['license'], '%ee_product_url%': urls['ee_product'], '%support_service_url%': urls['support_service'], '%service_life_url%': urls['service_life']} %}
+ Tip: If you upgrade to eZ Platform Enterprise you'll get access to:
+ A business friendly license,
+ several productivity features,
+ professional Support and
+ longer maintenance periode of your release.
+ {% endtrans %}
{% else %}
{% set severity = 0 %}
- Welcome to the open source {{ ez.release }} release. Using the community friendly
-
GPL license,
-
sharing your code
- is what it's all about.
+ {% trans with {'%release%': ez.release, '%license_url%': urls['license'], '%gpl_faq_url%': 'https://www.gnu.org/licenses/old-licenses/gpl-2.0-faq.en.html#GPLModuleLicense'} %}
+ Welcome to the open source %release% release. Using the community friendly
GPL license,
+
sharing your code is what it's all about.
+ {% endtrans %}
{% endif %}
{% elseif ez.isEndOfLife %}
@@ -71,16 +101,23 @@
{% set severity = 1 %}
{% set badge = 'End of Life' %}
- Unfortunately {{ ez.release }} has reached
end of life,
- please plan to upgrade. If you need assistance, don't hesitate to
contact eZ.
+ {% trans with {'%release%': ez.release,'%service_life_url%': urls['service_life'], '%contact_url%': urls['contact']} %}
+ Unfortunately %release% has reached
end of life,
+ please plan to upgrade. If you need assistance, don't hesitate to
contact eZ.
+ {% endtrans %}
{% elseif not ez.debug and ez.stability != 'stable' %}
{% set severity = 1 %}
{% set badge = 'Development' %}
- Your setup is running with unstable packages, this is not recommended besides when testing updates.
+ {% trans %}
+ Your setup is running with unstable packages, this is not recommended besides when testing updates.
+ {% endtrans %}
+
{% if ez.isEnterpise %}
- If you need assistance
get in touch with us.
+ {% trans with {'%support_url%': 'https://support.ez.no'} %}
+ If you need assistance, don't hesitate to
get in touch with eZ support.
+ {% endtrans %}
{% endif %}
{% endif %}
@@ -95,7 +132,7 @@
{{ ez.name }}
{{ ez.release }}{% if ez.stability != 'stable' %}{{ ez.release ? '-' : '' }}{{ ez.stability }}{% endif %}
{% if status %}
- {{ icons[severity]|raw }} {{ badge }}
+ {{ icons[severity]|raw }} {{ badge }}
{% endif %}