Commit e9b02de6 authored by Andreas Wolf's avatar Andreas Wolf Committed by Thomas Löffler
Browse files

[CLEANUP] Reformat templates/layouts/partials

Change-Id: I229a1eacf9aa668ef8c56dd6ad461975630d6e0e
Reviewed-on: https://review.typo3.org/50620

Reviewed-by: Thomas Löffler's avatarThomas Löffler <loeffler@spooner-web.de>
Tested-by: Thomas Löffler's avatarThomas Löffler <loeffler@spooner-web.de>
parent 0992608f
<div class="tx_terfe2">
<div class="tx_terfe2_messages">
<f:flashMessages renderMode="div" />
</div>
<div class="tx_terfe2_content">
<f:render section="main" />
</div>
<div class="tx_terfe2_messages">
<f:flashMessages renderMode="div"/>
</div>
<div class="tx_terfe2_content">
<f:render section="main"/>
</div>
</div>
\ No newline at end of file
{namespace terfe2=Tx_TerFe2_ViewHelpers}
<f:if condition="{authors}">
<f:then>
<f:widget.paginate objects="{authors}" as="paginateAuthors" configuration="{itemsPerPage: settings.authorListCount, insertAbove: 0, insertBelow: 1}">
<ul>
<f:for each="{paginateAuthors}" as="author">
<li><f:link.action controller="Author" action="show" arguments="{author : author}">{author.name}</f:link.action></li>
</f:for>
</ul>
</f:widget.paginate>
</f:then>
<f:else>
<f:translate key="msg.no_entries_found"/>
</f:else>
<f:then>
<f:widget.paginate objects="{authors}" as="paginateAuthors"
configuration="{itemsPerPage: settings.authorListCount, insertAbove: 0, insertBelow: 1}">
<ul>
<f:for each="{paginateAuthors}" as="author">
<li>
<f:link.action controller="Author" action="show" arguments="{author : author}">{author.name}
</f:link.action>
</li>
</f:for>
</ul>
</f:widget.paginate>
</f:then>
<f:else>
<f:translate key="msg.no_entries_found"/>
</f:else>
</f:if>
\ No newline at end of file
{namespace terfe2=Tx_TerFe2_ViewHelpers}
<f:if condition="{categories}">
<f:then>
<ul>
<f:for each="{categories}" as="category">
<li><f:link.action controller="Category" action="show" arguments="{category : category}">{category.title}</f:link.action></li>
</f:for>
</ul>
</f:then>
<f:else>
<f:translate key="msg.no_entries_found"/>
</f:else>
<f:then>
<ul>
<f:for each="{categories}" as="category">
<li>
<f:link.action controller="Category" action="show" arguments="{category : category}">
{category.title}
</f:link.action>
</li>
</f:for>
</ul>
</f:then>
<f:else>
<f:translate key="msg.no_entries_found"/>
</f:else>
</f:if>
\ No newline at end of file
<f:security.ifHasRole role="{settings.terAdminGroupUid}">
<div class="tab-content lite-tab-panes-black">
<f:widget.paginate objects="{adminExtensions}" as="paginatedExtensions" configuration="{itemsPerPage: 25, insertAbove: 1, insertBelow: 1}">
<table class="key-admin">
<thead>
<tr>
<th colspan="2" class="colA4"><f:translate key="extensionKey" /></th>
<th>User</th>
<th class="transfer-colum" class="colC1"><f:translate key="transferToUser" /></th>
</tr>
</thead>
<tbody>
<f:for each="{paginatedExtensions}" as="extension">
<!-- cycle values for rows -->
<f:cycle values="{0: 'tr-odd', 1: 'tr-even'}" as="columCycle">
<tr class="{columCycle}">
<td class="no-border-right">
{extension.extKey} <f:if condition="{extension.lastVersion}">({extension.lastVersion.title})</f:if><br />
<span class="b-comment-date"><f:if condition="{extension.versionCount} < 1"><f:then>
<f:translate key="tx_terfe2_domain_model_extension.versions.no" />
<div class="tab-content lite-tab-panes-black">
<f:widget.paginate objects="{adminExtensions}" as="paginatedExtensions"
configuration="{itemsPerPage: 25, insertAbove: 1, insertBelow: 1}">
<table class="key-admin">
<thead>
<tr>
<th colspan="2" class="colA4">
<f:translate key="extensionKey"/>
</th>
<th>User</th>
<th class="transfer-colum" class="colC1">
<f:translate key="transferToUser"/>
</th>
</tr>
</thead>
<tbody>
<f:for each="{paginatedExtensions}" as="extension">
<!-- cycle values for rows -->
<f:cycle values="{0: 'tr-odd', 1: 'tr-even'}" as="columCycle">
<tr class="{columCycle}">
<td class="no-border-right">
{extension.extKey}
<f:if condition="{extension.lastVersion}">({extension.lastVersion.title})</f:if>
<br/>
<span class="b-comment-date"><f:if condition="{extension.versionCount} < 1"><f:then>
<f:translate key="tx_terfe2_domain_model_extension.versions.no"/>
</f:then><f:else><f:if condition="{extension.versionCount} > 1"><f:then>
<f:translate key="tx_terfe2_domain_model_extension.versions.multiple" arguments="{0: extension.versionCount}" />
<f:translate
key="tx_terfe2_domain_model_extension.versions.multiple"
arguments="{0: extension.versionCount}"/>
({extension.lastVersion.versionString})
</f:then><f:else>
<f:translate key="tx_terfe2_domain_model_extension.versions.one" />
<f:translate key="tx_terfe2_domain_model_extension.versions.one"/>
</f:else></f:if></f:else></f:if>
<f:if condition="{extension.lastVersion}">
</f:if>
</span>
</td>
<td class="no-border-left a-r">
<f:if condition="{extension.versionCount} < 1">
<f:then>
<f:link.action class="bu bu-mini dark-grey" onclick="if (confirm('Really delete!!')) return true; else return false;" action="delete" controller="Registerkey" arguments="{extension: extension}"><f:translate key="delete-button" /></f:link.action>
</f:then>
<f:else>&nbsp;</f:else>
</f:if>
</td>
<td>{extension.frontendUser}</td>
<td>
<div class="b-form-inputs">
<f:form action="transfer" controller="Registerkey" name="transferKey" class="admin-transfer-key" method="POST" onsubmit="if (confirm('Are you sure? You might not be able to get your transfered key back.')) return true; else return false;">
<f:form.hidden name="extension" value="{extension}" />
<f:form.textfield class="admin-manage-keys-input manage-keys-input" name="newUser" value="" />
<f:form.submit class="bu bu-mini admin-manage-keys-submit manage-keys-submit" value="Transfer" />
</f:form>
</div>
</td>
</tr>
<f:for each="{extension.reverseVersionsByVersionNumber}" as="version">
<tr class="{columCycle}">
<td><span class="b-comment-date">{version.versionString}</span></td>
<td>
<f:link.action class="bu bu-mini dark-grey" onclick="if (confirm('Really delete!!')) return true; else return false;" action="deleteExtensionVersion" controller="Registerkey" arguments="{version : version}"><f:translate key="delete-button" /></f:link.action>
</td>
<td colspan="2">&nbsp;</td>
</tr>
</f:for>
</f:cycle>
</f:for>
</tbody>
</table>
</f:widget.paginate>
</div>
</td>
<td class="no-border-left a-r">
<f:if condition="{extension.versionCount} < 1">
<f:then>
<f:link.action class="bu bu-mini dark-grey"
onclick="if (confirm('Really delete!!')) return true; else return false;"
action="delete" controller="Registerkey"
arguments="{extension: extension}">
<f:translate key="delete-button"/>
</f:link.action>
</f:then>
<f:else>&nbsp;</f:else>
</f:if>
</td>
<td>{extension.frontendUser}</td>
<td>
<div class="b-form-inputs">
<f:form action="transfer" controller="Registerkey" name="transferKey"
class="admin-transfer-key" method="POST"
onsubmit="if (confirm('Are you sure? You might not be able to get your transfered key back.')) return true; else return false;">
<f:form.hidden name="extension" value="{extension}"/>
<f:form.textfield class="admin-manage-keys-input manage-keys-input"
name="newUser" value=""/>
<f:form.submit class="bu bu-mini admin-manage-keys-submit manage-keys-submit"
value="Transfer"/>
</f:form>
</div>
</td>
</tr>
<f:for each="{extension.reverseVersionsByVersionNumber}" as="version">
<tr class="{columCycle}">
<td><span class="b-comment-date">{version.versionString}</span></td>
<td>
<f:link.action class="bu bu-mini dark-grey"
onclick="if (confirm('Really delete!!')) return true; else return false;"
action="deleteExtensionVersion" controller="Registerkey"
arguments="{version : version}">
<f:translate key="delete-button"/>
</f:link.action>
</td>
<td colspan="2">&nbsp;</td>
</tr>
</f:for>
</f:cycle>
</f:for>
</tbody>
</table>
</f:widget.paginate>
</div>
</f:security.ifHasRole>
{namespace terfe2=Tx_TerFe2_ViewHelpers}
<f:if condition="{extensions}">
<f:then>
<div class="ter-ext-list-count">
<f:translate key="extensions_found" arguments="{0: '{f:count(subject : extensions)}'}" />
</div>
<f:then>
<div class="ter-ext-list-count">
<f:translate key="extensions_found" arguments="{0: '{f:count(subject : extensions)}'}"/>
</div>
<f:widget.paginate objects="{extensions}" as="paginateExtensions" configuration="{itemsPerPage: settings.listCount, insertAbove: 0, insertBelow: 1}">
<f:for each="{paginateExtensions}" as="extension">
<div class="ter-ext-list-row cl">
<f:widget.paginate objects="{extensions}" as="paginateExtensions"
configuration="{itemsPerPage: settings.listCount, insertAbove: 0, insertBelow: 1}">
<f:for each="{paginateExtensions}" as="extension">
<div class="ter-ext-list-row cl">
<!-- Headline -->
<div class="ter-ext-list-row-head">
<terfe2:extensionIcon version="{extension.lastVersion}" alt="{extension.lastVersion.title}" class="ter-ext-icon" />
<f:link.action controller="Extension" action="show" arguments="{extension : extension}">{extension.lastVersion.title}</f:link.action>
<span class="ter-ext-list-row-key">{extension.extKey}</span>
</div>
<!-- Headline -->
<div class="ter-ext-list-row-head">
<terfe2:extensionIcon version="{extension.lastVersion}" alt="{extension.lastVersion.title}"
class="ter-ext-icon"/>
<f:link.action controller="Extension" action="show" arguments="{extension : extension}">
{extension.lastVersion.title}
</f:link.action>
<span class="ter-ext-list-row-key">{extension.extKey}</span>
</div>
<!-- Content area -->
<div class="ter-ext-list-row-regular cl">
<!-- Content area -->
<div class="ter-ext-list-row-regular cl">
<!-- Description -->
<div class="ter-ext-list-row-description">
<div class="ter-ext-list-meta">
<f:translate key="by"/> {extension.lastVersion.author.name}
<f:if condition="{extension.categories}">
| <f:render partial="InlineCategoryList" arguments="{categories: extension.categories}"/>
</f:if>
</div>
<terfe2:crop length="{settings.descriptionLength}">{extension.lastVersion.description}</terfe2:crop>
</div>
<!-- Description -->
<div class="ter-ext-list-row-description">
<div class="ter-ext-list-meta">
<f:translate key="by"/>
{extension.lastVersion.author.name}
<f:if condition="{extension.categories}">
|
<f:render partial="InlineCategoryList"
arguments="{categories: extension.categories}"/>
</f:if>
</div>
<terfe2:crop length="{settings.descriptionLength}">{extension.lastVersion.description}
</terfe2:crop>
</div>
<!-- General information -->
<div class="ter-ext-list-row-info ter-ext-info">
<table>
<tr>
<th><f:translate key="version"/></th>
<td>{extension.lastVersion.versionString} <span class="ter-ext-state ter-ext-state-{extension.lastVersion.state}">{extension.lastVersion.state}</span></td>
</tr>
<tr>
<th><f:translate key="last_updated"/></th>
<td><terfe2:dateTime format="{settings.dateFormat}">{extension.lastVersion.uploadDate}</terfe2:dateTime></td>
</tr>
<tr>
<th><f:translate key="downloads"/></th>
<td>{extension.downloads}</td>
</tr>
<tr>
<th><f:translate key="manual"/></th>
<td>{documentationLink}</td>
</tr>
</table>
</div>
<!-- General information -->
<div class="ter-ext-list-row-info ter-ext-info">
<table>
<tr>
<th>
<f:translate key="version"/>
</th>
<td>{extension.lastVersion.versionString} <span
class="ter-ext-state ter-ext-state-{extension.lastVersion.state}">{extension.lastVersion.state}</span>
</td>
</tr>
<tr>
<th>
<f:translate key="last_updated"/>
</th>
<td>
<terfe2:dateTime format="{settings.dateFormat}">
{extension.lastVersion.uploadDate}
</terfe2:dateTime>
</td>
</tr>
<tr>
<th>
<f:translate key="downloads"/>
</th>
<td>{extension.downloads}</td>
</tr>
<tr>
<th>
<f:translate key="manual"/>
</th>
<td>{documentationLink}</td>
</tr>
</table>
</div>
</div>
</div>
<div class="ter-ext-list-row-downloads">
<f:link.action controller="Extension" action="download" arguments="{extension : extension, versionString : extension.lastVersion.versionString, format : 't3x'}" class="ter-download-icon ter-download-icon-t3x"><f:translate key="download_t3x"/></f:link.action>
<f:if condition="{extension.lastVersion.hasZipFile}">
<f:link.action controller="Extension" action="download" arguments="{extension : extension, versionString : extension.lastVersion.versionString, format : 'zip'}" class="ter-download-icon ter-download-icon-zip"><f:translate key="download_zip"/></f:link.action>
</f:if>
</div>
<div class="ter-ext-list-row-downloads">
<f:link.action controller="Extension" action="download"
arguments="{extension : extension, versionString : extension.lastVersion.versionString, format : 't3x'}"
class="ter-download-icon ter-download-icon-t3x">
<f:translate key="download_t3x"/>
</f:link.action>
<f:if condition="{extension.lastVersion.hasZipFile}">
<f:link.action controller="Extension" action="download"
arguments="{extension : extension, versionString : extension.lastVersion.versionString, format : 'zip'}"
class="ter-download-icon ter-download-icon-zip">
<f:translate key="download_zip"/>
</f:link.action>
</f:if>
</div>
</div>
</f:for>
</f:widget.paginate>
</f:then>
<f:else>
<f:translate key="msg.no_entries_found" />
</f:else>
</div>
</f:for>
</f:widget.paginate>
</f:then>
<f:else>
<f:translate key="msg.no_entries_found"/>
</f:else>
</f:if>
\ No newline at end of file
{namespace terfe2=Tx_TerFe2_ViewHelpers}
<div class="ter-ext-list-search">
<form method="post" action="{f:uri.action(controller:'Extension', action:'search', noCacheHash: 1)}">
<f:form.textfield name="tx_terfe2_pi1[search][needle]" id="ter-ext-list-search-needle" value="{search.needle}" />
<f:form.submit value="{f:translate(key: 'search')}" class="bu" />
<form method="post" action="{f:uri.action(controller:'Extension', action:'search', noCacheHash: 1)}">
<f:form.textfield name="tx_terfe2_pi1[search][needle]" id="ter-ext-list-search-needle" value="{search.needle}"/>
<f:form.submit value="{f:translate(key: 'search')}" class="bu"/>
<span class="ter-ext-list-search-sorting cl">
<label for="ter-ext-list-search-sorting"><f:translate key="sorting" />: </label>
<f:form.select name="tx_terfe2_pi1[search][sorting]" id="ter-ext-list-search-sorting" class="jsSubmit" value="{search.sorting}" options="{
<span class="ter-ext-list-search-sorting cl">
<label for="ter-ext-list-search-sorting"><f:translate key="sorting"/>: </label>
<f:form.select name="tx_terfe2_pi1[search][sorting]" id="ter-ext-list-search-sorting" class="jsSubmit"
value="{search.sorting}" options="{
updated: '{f:translate(key:\'sorting.updated\')}',
downloads: '{f:translate(key:\'sorting.downloads\')}',
title: '{f:translate(key:\'sorting.title\')}'
}" />
}"/>
</span>
</form>
</form>
</div>
\ No newline at end of file
{namespace terfe2=Tx_TerFe2_ViewHelpers}
<div class="ter-ext-single-info ter-ext-info">
<table>
<tr class="ter-ext-single-info-key">
<th><f:translate key="extensionKey"/></th>
<td><strong>{extension.extKey}</strong></td>
</tr>
<tr>
<th><f:translate key="version"/></th>
<td>{extension.lastVersion.versionString} <span class="ter-ext-state ter-ext-state-{extension.lastVersion.state}">{extension.lastVersion.state}</span></td>
</tr>
<tr>
<th><f:translate key="last_updated"/></th>
<td><terfe2:dateTime format="{settings.dateFormat}">{extension.lastVersion.uploadDate}</terfe2:dateTime></td>
</tr>
<tr>
<th><f:translate key="first_upload"/></th>
<td><terfe2:dateTime format="{settings.dateFormat}">{extension.crdate}</terfe2:dateTime></td>
</tr>
<tr>
<th><f:translate key="downloads"/></th>
<td><f:format.number decimals="0" thousandsSeparator="," decimalSeparator=".">{extension.downloads}</f:format.number></td>
</tr>
<f:security.ifHasRole role="{settings.reviewerGroupUid}">
<tr>
<th>Owner:</th>
<td> Name: {owner.name}
<br />Email: {owner.email}
<br />Username: {owner.username}
</td>
</tr>
</f:security.ifHasRole>
<tr>
<th><f:translate key="category"/></th>
<td>
<f:if condition="{extension.lastVersion.emCategory}">
<f:then>
<f:translate key="category_{extension.lastVersion.emCategory}" />
</f:then>
<f:else>
<f:translate key="none" />
</f:else>
</f:if>
</td>
</tr>
<tr class="ter-ext-single-info-relations">
<th><f:translate key="dependencies"/></th>
<td><f:render partial="InlineRelationList" arguments="{relations: extension.lastVersion.dependencies}"/></td>
</tr>
<tr class="ter-ext-single-info-relations">
<th><f:translate key="conflicts"/>
</th>
<td>
<f:render partial="InlineRelationList" arguments="{relations: extension.lastVersion.conflicts}"/>
</td>
</tr>
<tr class="ter-ext-single-info-manual">
<th><f:translate key="manual"/></th>
<td>
<f:if condition="{documentationLink}">
<f:then>
<terfe2:raw>{documentationLink}</terfe2:raw>
<f:if condition="{extension.externalManual}">
<br />
<f:link.external rel="nofollow" uri="{extension.externalManual}" target="_blank"><f:translate key="external_manual" /></f:link.external>
</f:if>
</f:then>
<f:else>
<f:if condition="{extension.externalManual}">
<f:then><f:link.external rel="nofollow" uri="{extension.externalManual}" target="_blank"><f:translate key="extension_manual" /></f:link.external></f:then>
<f:else><f:translate key="extension_manual_not_available" /></f:else>
</f:if>
</f:else>
</f:if>
</td>
</tr>
<f:if condition="{extension.forgeLink}">
<tr class="ter-ext-single-info-key">
<th><f:translate key="bugtracker" /></th>
<td>
<f:link.external rel="nofollow" uri="{extension.forgeLink}" target="_blank"><f:translate key="found_a_bug" /></f:link.external>
</td>
</tr>
</f:if>
<f:if condition="{extension.repositoryUrl}">
<tr class="ter-ext-single-info-key">
<th><f:translate key="repository_url" /></th>
<td>
<f:link.external rel="nofollow" uri="{extension.repositoryUrl}" target="_blank"><f:translate key="repository_url_value" /></f:link.external>
</td>
</tr>
</f:if>
<f:if condition="{flattrUrl}">
<tr class="ter-ext-single-flattr">
<th><f:translate key="donate" /></th>
<td>
<f:link.external uri="{flattrUrl}" target="_blank"><img src="https://api.flattr.com/button/flattr-badge-large.png" alt="{f:translate(key:'donate')}" /></f:link.external>
</td>
</tr>
</f:if>
<f:if condition="{extension.paypalUrl}">
<tr class="ter-ext-single-info-key">
<th><f:translate key="like_it" /></th>
<td>
<f:link.external rel="nofollow" uri="{extension.paypalUrl}" target="_blank"><f:translate key="donate_url" /></f:link.external>
</td>
</tr>
</f:if>
<f:if condition="{owner.username}">
<tr>
<th>Username</th>
<td>
{owner.username}
</td>
</tr>
</f:if>
<f:if condition="{owner}">
<tr>
<th><f:translate key="author"/></th>
<td>
{owner.name}
<br />
<terfe2:userImage user="{owner}" alt="{owner.name}" size="mid" />
</td>
</tr>
</f:if>
</table>
<table>
<tr class="ter-ext-single-info-key">
<th>
<f:translate key="extensionKey"/>
</th>
<td><strong>{extension.extKey}</strong></td>
</tr>
<tr>
<th>
<f:translate key="version"/>
</th>
<td>{extension.lastVersion.versionString} <span
class="ter-ext-state ter-ext-state-{extension.lastVersion.state}">{extension.lastVersion.state}</span>
</td>
</tr>
<tr>
<th>
<f:translate key="last_updated"/>
</th>
<td>
<terfe2:dateTime format="{settings.dateFormat}">{extension.lastVersion.uploadDate}</terfe2:dateTime>
</td>
</tr>
<tr>
<th>
<f:translate key="first_upload"/>
</th>
<td>
<terfe2:dateTime format="{settings.dateFormat}">{extension.crdate}</terfe2:dateTime>
</td>
</tr>
<tr>
<th>
<f:translate key="downloads"/>
</th>
<td>
<f:format.number decimals="0" thousandsSeparator="," decimalSeparator=".">{extension.downloads}
</f:format.number>
</td>
</tr>
<f:security.ifHasRole role="{settings.reviewerGroupUid}">
<tr>
<th>Owner:</th>
<td> Name: {owner.name}
<br/>Email: {owner.email}
<br/>Username: {owner.username}
</td>
</tr>
</f:security.ifHasRole>
<tr>
<th>
<f:translate