Commit d900e4da authored by Christoph Pascher's avatar Christoph Pascher
Browse files

Adding fallback image for listings

parent 64638664
...@@ -24,7 +24,14 @@ ...@@ -24,7 +24,14 @@
<f:for each="{nominees}" as="nominee"> <f:for each="{nominees}" as="nominee">
<tr {f:if(condition:'{nominee.public}',else:'style="background-color:#ddd;"')}> <tr {f:if(condition:'{nominee.public}',else:'style="background-color:#ddd;"')}>
<td> <td>
<f:image image="{nominee.image}" width="50c" height="50c"/> <f:if condition="{nominee.image}">
<f:then>
<f:image image="{nominee.image}" width="50c" height="50c"/>
</f:then>
<f:else>
<f:image src="EXT:core/Resources/Public/Icons/T3Icons/avatar/avatar-default.svg" width="50c" height="50c"/>
</f:else>
</f:if>
</td> </td>
<td> <td>
<f:link.action action="edit" controller="BeNominee" arguments="{nominee:nominee}"> <f:link.action action="edit" controller="BeNominee" arguments="{nominee:nominee}">
......
...@@ -22,7 +22,14 @@ ...@@ -22,7 +22,14 @@
<f:if condition="{nominee.public}"> <f:if condition="{nominee.public}">
<tr> <tr>
<td> <td>
<f:image image="{nominee.image}" width="50c" height="50c"/> <f:if condition="{nominee.image}">
<f:then>
<f:image image="{nominee.image}" width="50c" height="50c"/>
</f:then>
<f:else>
<f:image src="EXT:core/Resources/Public/Icons/T3Icons/avatar/avatar-default.svg" width="50c" height="50c"/>
</f:else>
</f:if>
</td> </td>
<td> <td>
{nominee.fullName} {nominee.fullName}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment