0001-templates-add-option-to-hide-receiver-from-form-hist.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_receiver = get_publisher().get_site_option('hide_receiver_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_receiver': hide_receiver})
|
|
278 | 279 | |
279 | 280 |
def check_receiver(self): |
280 | 281 |
session = get_session() |
wcs/templates/wcs/formdata_history.html | ||
---|---|---|
22 | 22 |
{% endif %} |
23 | 23 |
<div class="msg"> |
24 | 24 |
{% if evolution.who %} |
25 |
{% if evolution.who != '_submitter' and hide_receiver %} |
|
26 |
{% else %} |
|
25 | 27 |
<span class="user">{{evolution.get_author_name|default_if_none:""}} |
26 | 28 |
<span>{% if evolution.get_author_qualification %}({{evolution.get_author_qualification}}){% endif %}</span> |
27 | 29 |
</span> |
28 | 30 |
{% endif %} |
31 |
{% endif %} |
|
29 | 32 |
{% if not evolution.status %} |
30 | 33 |
<span class="time">{{evolution.datetime}}</span> |
31 | 34 |
{% endif %} |
32 |
- |