Use different message is deleted version is the first one or not
authorThierry Florac <thierry.florac@onf.fr>
Wed, 12 Jul 2017 11:49:11 +0200
changeset 107 b41cf853ff8c
parent 106 b82200b101a9
child 108 8d9c44f19754
Use different message is deleted version is the first one or not
src/pyams_content/shared/common/zmi/templates/wf-delete-message.pt
--- a/src/pyams_content/shared/common/zmi/templates/wf-delete-message.pt	Wed Jul 12 11:48:01 2017 +0200
+++ b/src/pyams_content/shared/common/zmi/templates/wf-delete-message.pt	Wed Jul 12 11:49:11 2017 +0200
@@ -1,3 +1,8 @@
-<p class="alert alert-info padding-5 margin-bottom-5" i18n:domain="pyams_content" i18n:translate="">
-	The content version is going to be definitely deleted. Will only remain the currently published version.
+<p class="alert alert-danger padding-5 margin-bottom-5" i18n:domain="pyams_content" i18n:translate=""
+   tal:condition="view.version_id == 1">This content was never published. If you confirm deletion, it won't be possible
+										to restore it.
 </p>
+<p class="alert alert-info padding-5 margin-bottom-5" i18n:domain="pyams_content" i18n:translate=""
+   tal:condition="view.version_id != 1">The content version is going to be definitely deleted. Will only remain the currently
+										published version.
+</p>