Commit e1178678 authored by Wolf-Peter Utz's avatar Wolf-Peter Utz
Browse files

Merge branch 'task/be-default-avatar-svg' into 'task/be-functionality'

change path to default svg

See merge request services/voting.typo3.org/extensions/election!25
parents c23a9356 5e71f0d6
{namespace core=TYPO3\CMS\Core\ViewHelpers}
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:core="http://typo3.org/ns/TYPO3/Core/ViewHelpers"
data-namespace-typo3-fluid="true">
<table class="table">
<thead>
<tr>
......@@ -29,7 +30,7 @@
<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:image src="EXT:core/Resources/Public/Icons/T3Icons/svgs/avatar/avatar-default.svg" width="50c" height="50c"/>
</f:else>
</f:if>
</td>
......@@ -74,3 +75,4 @@
</f:for>
</tbody>
</table>
</html>
\ No newline at end of file
{namespace core=TYPO3\CMS\Core\ViewHelpers}
<table class="table table-hover">
<thead>
<tr>
<th>
<f:translate key="model.nominee.field.image">Image</f:translate>
</th>
<th>
<f:translate key="model.abstract_person.field.full_name">Name</f:translate>
</th>
<th>
<f:translate key="view.fe.election.vote.vote">Vote</f:translate>
</th>
</tr>
</thead>
<tbody class="shuffle-rows">
<f:for each="{nominees}" as="nominee">
<f:if condition="{nominee.public}">
<tr>
<td>
<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>
<f:if condition="{nominee.url}">
<f:then>
<f:link.external target="_blank" uri="{nominee.url}">{nominee.fullName}</f:link.external>
</f:then>
<f:else>
{nominee.fullName}
</f:else>
</f:if>
</td>
<td>
<f:form.checkbox property="nominees.{nominee.uid}" value="{nominee.uid}"/>
</td>
</tr>
</f:if>
</f:for>
</tbody>
</table>
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
xmlns:core="http://typo3.org/ns/TYPO3/Core/ViewHelpers"
data-namespace-typo3-fluid="true">
<table class="table table-hover">
<thead>
<tr>
<th>
<f:translate key="model.nominee.field.image">Image</f:translate>
</th>
<th>
<f:translate key="model.abstract_person.field.full_name">Name</f:translate>
</th>
<th>
<f:translate key="view.fe.election.vote.vote">Vote</f:translate>
</th>
</tr>
</thead>
<tbody class="shuffle-rows">
<f:for each="{nominees}" as="nominee">
<f:if condition="{nominee.public}">
<tr>
<td>
<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/svgs/avatar/avatar-default.svg"
width="50c" height="50c"/>
</f:else>
</f:if>
</td>
<td>
<f:if condition="{nominee.url}">
<f:then>
<f:link.external target="_blank" uri="{nominee.url}">{nominee.fullName}</f:link.external>
</f:then>
<f:else>
{nominee.fullName}
</f:else>
</f:if>
</td>
<td>
<f:form.checkbox property="nominees.{nominee.uid}" value="{nominee.uid}"/>
</td>
</tr>
</f:if>
</f:for>
</tbody>
</table>
</html>
\ No newline at end of file
<html xmlns:f="http://typo3.org/ns/TYPO3/CMS/Fluid/ViewHelpers"
data-namespace-typo3-fluid="true">
<f:layout name="Frontend"/>
<f:section name="Main">
......@@ -37,7 +39,7 @@
<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"
<f:image src="EXT:core/Resources/Public/Icons/T3Icons/avatar/svgs/avatar-default.svg"
width="50c" height="50c"/>
</f:else>
</f:if>
......@@ -89,7 +91,7 @@
<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"
<f:image src="EXT:core/Resources/Public/Icons/T3Icons/svgs/avatar/avatar-default.svg"
width="50c" height="50c"/>
</f:else>
</f:if>
......@@ -118,3 +120,4 @@
</f:else>
</f:if>
</f:section>
</html>
\ No newline at end of file
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