mirror of
				https://gitlab.com/Chill-Projet/chill-bundles.git
				synced 2025-10-31 01:08:26 +00:00 
			
		
		
		
	Show userGroup in workflow breadcrumb
related: - https://champs-libres.openproject.com/wp/774 - OP#774 - Vendee/accent-suivi-developpement#1274
This commit is contained in:
		| @@ -42,7 +42,7 @@ | ||||
|                     <div class="item-col" style="width: inherit;"> | ||||
|                             <div> | ||||
|                                 {%- if step.transitionBy is not null -%} | ||||
|                                     {{ step.transitionBy|chill_entity_render_box({'at_date': step.transitionAt}) }} | ||||
|                                     <span class="badge-user">{{ step.transitionBy|chill_entity_render_box({'at_date': step.transitionAt}) }}</span> | ||||
|                                 {% else %} | ||||
|                                     <span class="chill-no-data-statement">{{ 'workflow.Automated transition'|trans }}</span> | ||||
|                                 {%- endif -%} | ||||
| @@ -105,7 +105,7 @@ | ||||
|                             <p><b>{{ 'workflow.Users put in Cc'|trans }} : </b></p> | ||||
|                             <ul> | ||||
|                                 {% for u in step.ccUser %} | ||||
|                                     <li>{{ u|chill_entity_render_box({'at_date': step.previous.transitionAt}) }}</li> | ||||
|                                     <li><span class="badge-user">{{ u|chill_entity_render_box({'at_date': step.previous.transitionAt}) }}</span></li> | ||||
|                                 {% endfor %} | ||||
|                             </ul> | ||||
|                         {% endif %} | ||||
| @@ -123,7 +123,7 @@ | ||||
|                             <p><b>{{ 'workflow.Those users are also granted to apply a transition by using an access key'|trans }} :</b></p> | ||||
|                             <ul> | ||||
|                                 {% for u in step.destUserByAccessKey %} | ||||
|                                     <li>{{ u|chill_entity_render_box({'at_date': step.previous.transitionAt}) }}</li> | ||||
|                                     <li><span class="badge-user">{{ u|chill_entity_render_box({'at_date': step.previous.transitionAt}) }}</span></li> | ||||
|                                 {% endfor %} | ||||
|                             </ul> | ||||
|                         {% endif %} | ||||
|   | ||||
| @@ -9,11 +9,13 @@ | ||||
|                 <span class="item-key">{{ 'Le'|trans ~ ' : ' }}</span> | ||||
|                 <b>{{ step.previous.transitionAt|format_datetime('short', 'short') }}</b> | ||||
|             </li> | ||||
|             {% if step.destUser|length > 0 %} | ||||
|             {% if step.destUser|length > 0 or step.destUserGroups|length > 0 %} | ||||
|                 <li> | ||||
|                     <span class="item-key">{{ 'workflow.For'|trans ~ ' : ' }}</span> | ||||
|                     <b> | ||||
|                         {% for d in step.destUser %}{{ d|chill_entity_render_string({'at_date': step.previous.transitionAt}) }}{% if not loop.last %}, {% endif %}{% endfor %} | ||||
|                         {% for d in step.destUser %}<span class="badge-user">{{ d|chill_entity_render_string({'at_date': step.previous.transitionAt}) }}</span>{% if not loop.last %}, {% endif -%}{% endfor -%} | ||||
|                         {%- if step.destUser|length > 0 and step.destUserGroups|length > 0 %}, {% endif -%} | ||||
|                         {%- for d in step.destUserGroups %}{{ d|chill_entity_render_box }}{% if not loop.last %}, {% endif %}{% endfor -%} | ||||
|                     </b> | ||||
|                 </li> | ||||
|             {% endif %} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user