Skip to content

Commit

Permalink
Fix intendation for rwnd span
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed Mar 22, 2024
1 parent 2ccb0b0 commit 0515b9d
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions Resources/Private/Plugins/Kitodo/Templates/Navigation/Main.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,22 +71,22 @@
</f:section>

<f:section name="render.pageStepBack">
<span class="rwnd">
<f:variable name="backTextTemplate" value="{f:translate(key: 'backXPages', arguments: '{0: \'PAGE_STEPS\'}')}" />
<f:comment>Make sure that no negative number is put into tx_dlf[page], so that a route enhancer that requires matches against "\d+" won't fail</f:comment>
<f:if condition="{viewData.requestData.page} > {pageSteps}">
<f:then>
<f:link.action class="page-step-back" addQueryString="1" addQueryStringMethod="GET" additionalParams="{'tx_dlf[page]':'{viewData.requestData.page - pageSteps}'}" additionalAttributes="{'data-text': '{backTextTemplate}'}">
<f:translate key="backXPages" arguments="{0: '{pageSteps}'}"/>
</f:link.action>
</f:then>
<f:else>
<f:link.action class="page-step-back disabled" additionalAttributes="{'data-text': '{backTextTemplate}'}">
<f:translate key="backXPages" arguments="{0: '{pageSteps}'}"/>
</f:link.action>
</f:else>
</f:if>
</span>
<span class="rwnd">
<f:variable name="backTextTemplate" value="{f:translate(key: 'backXPages', arguments: '{0: \'PAGE_STEPS\'}')}" />
<f:comment>Make sure that no negative number is put into tx_dlf[page], so that a route enhancer that requires matches against "\d+" won't fail</f:comment>
<f:if condition="{viewData.requestData.page} > {pageSteps}">
<f:then>
<f:link.action class="page-step-back" addQueryString="1" addQueryStringMethod="GET" additionalParams="{'tx_dlf[page]':'{viewData.requestData.page - pageSteps}'}" additionalAttributes="{'data-text': '{backTextTemplate}'}">
<f:translate key="backXPages" arguments="{0: '{pageSteps}'}"/>
</f:link.action>
</f:then>
<f:else>
<f:link.action class="page-step-back disabled" additionalAttributes="{'data-text': '{backTextTemplate}'}">
<f:translate key="backXPages" arguments="{0: '{pageSteps}'}"/>
</f:link.action>
</f:else>
</f:if>
</span>
</f:section>

<f:section name="render.pageBack">
Expand Down

0 comments on commit 0515b9d

Please sign in to comment.