--- a/src/pyams_content/shared/common/zmi/header.py Mon Oct 02 15:14:45 2017 +0200
+++ b/src/pyams_content/shared/common/zmi/header.py Mon Oct 02 15:20:10 2017 +0200
@@ -91,14 +91,13 @@
if (pub_info is not None) and not pub_info.is_published():
state_format = state_format.replace('{state}',
'{{state}} <i class="fa fa-fw fa-hourglass-half font-xs '
- 'opacity-75 hint align-base" data-ams-hint-offset="5" '
- 'title="{0}"></i>'.format(
+ 'text-danger opacity-75 hint align-base" '
+ 'data-ams-hint-offset="5" title="{0}"></i>'.format(
translate(_("Content publication start date is not passed yet"))))
- state_class = 'text-danger' # if state.state in workflow.update_states else 'txt-color-text'
+ state_class = 'text-danger'
state_format = state_format.replace('{state}',
'<span class="{0}">{{state}}</span>'.format(state_class))
# init principal format
- # principal_class = 'text-danger' if state.state_principal != owner else 'txt-color-text'
principal_class = 'text-danger' \
if state.state in (workflow.update_states | workflow.waiting_states) \
else 'txt-color-text'