Skip to content

Commit

Permalink
EZP-32007: change icons form #information to #system-information for …
Browse files Browse the repository at this point in the history
…dashboard alert (#64)
  • Loading branch information
lucasOsti authored and kacper-wieczorek-ibexa committed Sep 24, 2021
1 parent 2bcb97b commit 57f4a9b
Showing 1 changed file with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
{% set severity = 1 %}
<div class="alert alert-warning mb-0 mt-3 ez-alert ez-alert--icon" role="alert">
<svg class="ez-icon ez-icon--small-medium ez-icon--light">
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#information"></use>
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#system-information"></use>
</svg>
<span>
{{ 'dashboard.ez_version.release_not_determined'|trans
Expand All @@ -30,7 +30,7 @@
{% set badge = 'Development' %}
<div class="alert alert-warning mb-0 mt-3 ez-alert ez-alert--icon" role="alert">
<svg class="ez-icon ez-icon--small-medium ez-icon--light">
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#information"></use>
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#system-information"></use>
</svg>
<span>
{% if ez.composerInfo.minimumStability != 'stable' %}
Expand All @@ -49,23 +49,23 @@
{% set severity = 2 %}
<div class="alert alert-danger mb-0 mt-3 ez-alert ez-alert--icon" role="alert">
<svg class="ez-icon ez-icon--small-medium ez-icon--light">
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#information"></use>
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#system-information"></use>
</svg>
<span>
{{ 'dashboard.ez_version.trial_expired'|trans({'%ttl_url%': urls['ttl']})|desc("Unfortunately your trial period has expired and your <a target=\"_blank\" href=\"%ttl_url%\">TTL license</a> is no longer valid.")|raw }}
{% elseif ez.isEndOfMaintenance %}
{% set severity = 1 %}
<div class="alert alert-warning mb-0 mt-3 ez-alert ez-alert--icon" role="alert">
<svg class="ez-icon ez-icon--small-medium ez-icon--light">
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#information"></use>
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#system-information"></use>
</svg>
<span>
{{ 'dashboard.ez_version.trial_end_of_maintenance'|trans|desc("Your trial period is coming to an end.")}}
{% else %}
{% set severity = 0 %}
<div class="alert alert-info mb-0 mt-3 ez-alert ez-alert--icon" role="alert">
<svg class="ez-icon ez-icon--small-medium ez-icon--light">
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#information"></use>
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#system-information"></use>
</svg>
<span>
{{ 'dashboard.ez_version.trial_notice'|trans({'%name%': ez.name, '%doc_url%': urls['doc'], '%consulting_url%': urls['consulting_service'], '%training_url%': urls['training_service']})
Expand All @@ -86,7 +86,7 @@
{% set severity = 1 %}
<div class="alert alert-warning mb-0 mt-3 ez-alert ez-alert--icon" role="alert">
<svg class="ez-icon ez-icon--small-medium ez-icon--light">
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#information"></use>
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#system-information"></use>
</svg>
<span>
{{ 'dashboard.ez_version.community_end_of_maintenance'|trans({
Expand Down Expand Up @@ -116,7 +116,7 @@
{% set severity = 0 %}
<div class="alert alert-info mb-0 mt-3 ez-alert ez-alert--icon" role="alert">
<svg class="ez-icon ez-icon--small-medium ez-icon--light">
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#information"></use>
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#system-information"></use>
</svg>
<span>
{{ 'dashboard.ez_version.community_severity_non'|trans({
Expand All @@ -136,7 +136,7 @@
{% set badge = 'End of Life' %}
<div class="alert alert-warning mb-0 mt-3 ez-alert ez-alert--icon" role="alert">
<svg class="ez-icon ez-icon--small-medium ez-icon--light">
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#information"></use>
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#system-information"></use>
</svg>
<span>
{{ 'dashboard.ez_version.end_of_life_upgrade'|trans({
Expand All @@ -153,24 +153,24 @@
{% endapply %}
{% endset %}

<div class="mb-4">
<br>
<h2 class="mb-0">
<div class="ez-dashboard__version-info">
<h2 class="ez-dashboard__version">
{{ ez.name }}&nbsp;
{{ ez.release }}{% if ez.stability != 'stable' %}{{ ez.release ? '-' : '' }}{{ ez.stability }}{% endif %}
{% if status %}
<a class="badge badge-{{ levels[severity] }} ez-badge ez-badge--round ez-badge--icon" data-toggle="collapse" href="#systemInfoCollapse">
{{ badge }}
{% if severity != 0 %}
<svg class="ez-icon ez-icon--small-medium ez-icon--light">
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#information"></use>
</svg>
{% endif %}
</a>
{% endif %}
</h2>

<div class="collapse" id="systemInfoCollapse">
{{ status|raw }}
</div>
{% if status %}
<a class="badge badge-{{ levels[severity] }} ez-badge ez-badge--round ez-badge--icon" data-toggle="collapse" href="#systemInfoCollapse">
{{ badge }}
{% if severity != 0 %}
<svg class="ez-icon ez-icon--small-medium ez-icon--light">
<use xlink:href="{{ asset('bundles/ezplatformadminui/img/ez-icons.svg') }}#system-information"></use>
</svg>
{% endif %}
</a>
{% endif %}
</div>

<div class="collapse" id="systemInfoCollapse">
{{ status|raw }}
</div>

0 comments on commit 57f4a9b

Please # to comment.