0001-templates-hide-evolution-author-in-form-s-front-offi.patch
wcs/forms/common.py | ||
---|---|---|
272 | 272 |
if not self.formdef.is_user_allowed_read_status_and_history(get_request().user, self.filled): |
273 | 273 |
return |
274 | 274 | |
275 |
hide_author = get_publisher().get_site_option('hide_author_in_form_history', 'variables') |
|
275 | 276 |
return template.render( |
276 | 277 |
list(self.get_formdef_template_variants(self.history_templates)), |
277 |
{'formdata': self.filled}) |
|
278 |
{'formdata': self.filled, 'hide_author': hide_author, |
|
279 |
'is_in_backoffice': get_request().is_in_backoffice()}) |
|
278 | 280 | |
279 | 281 |
def check_receiver(self): |
280 | 282 |
session = get_session() |
wcs/templates/wcs/formdata_history.html | ||
---|---|---|
22 | 22 |
{% endif %} |
23 | 23 |
<div class="msg"> |
24 | 24 |
{% if evolution.who %} |
25 |
{% if is_in_backoffice or not hide_author %} |
|
25 | 26 |
<span class="user">{{evolution.get_author_name|default_if_none:""}} |
26 | 27 |
<span>{% if evolution.get_author_qualification %}({{evolution.get_author_qualification}}){% endif %}</span> |
27 | 28 |
</span> |
28 | 29 |
{% endif %} |
30 |
{% endif %} |
|
29 | 31 |
{% if not evolution.status %} |
30 | 32 |
<span class="time">{{evolution.datetime}}</span> |
31 | 33 |
{% endif %} |
32 |
- |