Skip to content

Commit

Permalink
show missing crop messages as alert
Browse files Browse the repository at this point in the history
  • Loading branch information
petschki committed Oct 10, 2023
1 parent b8b1445 commit 5446cfa
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/plone/app/imagecropping/browser/editor.pt
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
<tal:def define="
can_access_settings python:checkPermission('Manage portal', context);
">
<p class="documentDescription"
tal:condition="can_access_settings"
i18n:translate="noscales_message"
<div class="alert alert-warning"
tal:condition="can_access_settings"
i18n:translate="noscales_message"
>
There are no scales to crop. Make sure to add them to the
<a href="#"
Expand All @@ -35,13 +35,13 @@
>
List of scales with crop support</a>
in the controlpanel.
</p>
<p class="documentDescription"
tal:condition="not: can_access_settings"
i18n:translate="noscales_short_message"
</div>
<div class="alert alert-info"
tal:condition="not: can_access_settings"
i18n:translate="noscales_short_message"
>
There are no scales to crop.
</p>
</div>
</tal:def>
</tal:noscales>

Expand Down

0 comments on commit 5446cfa

Please sign in to comment.