check also for '_x' states when displaying source or target work items
This commit is contained in:
parent
b289b41807
commit
a930ec1f63
1 changed files with 3 additions and 3 deletions
|
@ -213,20 +213,20 @@
|
||||||
(<span tal:content="python:
|
(<span tal:content="python:
|
||||||
item.getUserForUserName(item.track.creator)['title']" />)</td>
|
item.getUserForUserName(item.track.creator)['title']" />)</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr tal:condition="python:state.name == 'delegated'">
|
<tr tal:condition="python:state.name in ('delegated', 'delegated_x')">
|
||||||
<td><span i18n:translate="">Delegated to</span>:</td>
|
<td><span i18n:translate="">Delegated to</span>:</td>
|
||||||
<td><a tal:define="party python:view.getObjectForUid(item.targetWorkItem.party)"
|
<td><a tal:define="party python:view.getObjectForUid(item.targetWorkItem.party)"
|
||||||
tal:attributes="href python:view.getUrlForTarget(party)"
|
tal:attributes="href python:view.getUrlForTarget(party)"
|
||||||
tal:content="party/title" /></td>
|
tal:content="party/title" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr tal:condition="python:state.name == 'moved'">
|
<tr tal:condition="python:state.name in ('moved', 'moved_x')">
|
||||||
<td><span i18n:translate="">Moved To</span>:</td>
|
<td><span i18n:translate="">Moved To</span>:</td>
|
||||||
<td><a tal:define="task python:view.getObjectForUid(item.targetWorkItem.taskId)"
|
<td><a tal:define="task python:view.getObjectForUid(item.targetWorkItem.taskId)"
|
||||||
tal:attributes="href python:view.getUrlForTarget(task)"
|
tal:attributes="href python:view.getUrlForTarget(task)"
|
||||||
tal:content="task/title" /></td>
|
tal:content="task/title" /></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr tal:define="source item/sourceWorkItem;
|
<tr tal:define="source item/sourceWorkItem;
|
||||||
isDelegated python:source and source.state == 'delegated'"
|
isDelegated python:source and source.state in ('delegated', 'delegated_x')"
|
||||||
tal:condition="source">
|
tal:condition="source">
|
||||||
<td>
|
<td>
|
||||||
<span tal:condition="isDelegated"
|
<span tal:condition="isDelegated"
|
||||||
|
|
Loading…
Add table
Reference in a new issue