Fix sorting status column in emailLogList.tpl
authorjoshuaruesweg <ruesweg@woltlab.com>
Mon, 9 Aug 2021 13:22:31 +0000 (15:22 +0200)
committerjoshuaruesweg <ruesweg@woltlab.com>
Mon, 9 Aug 2021 13:24:25 +0000 (15:24 +0200)
wcfsetup/install/files/acp/templates/emailLogList.tpl

index 316b11b073e090b2436a4f075f66bec79de4f797..d230f763a0310d125c0eaf839855acc9ff5a1fac 100644 (file)
@@ -4,7 +4,7 @@
        <div class="contentHeaderTitle">
                <h1 class="contentTitle">{lang}wcf.acp.email.log{/lang}{if $items} <span class="badge badgeInverse">{#$items}</span>{/if}</h1>
        </div>
-       
+
        {hascontent}
                <nav class="contentHeaderNavigation">
                        <ul>
@@ -19,7 +19,7 @@
 <form method="post" action="{link controller='EmailLogList'}{/link}">
        <section class="section">
                <h2 class="sectionTitle">{lang}wcf.global.filter{/lang}</h2>
-               
+
                <div class="row rowColGap formGrid">
                        <dl class="col-xs-12 col-md-4">
                                <dt></dt>
@@ -39,7 +39,7 @@
                                        </script>
                                </dd>
                        </dl>
-                       
+
                        {if $__wcf->session->getPermission('admin.user.canEditMailAddress')}
                                <dl class="col-xs-12 col-md-4">
                                        <dt></dt>
@@ -69,7 +69,7 @@
                                </dd>
                        </dl>
                </div>
-               
+
                <div class="formSubmit">
                        <input type="submit" value="{lang}wcf.global.button.submit{/lang}" accesskey="s">
                </div>
                                        <th class="columnTitle columnSubject{if $sortField == 'subject'} active {@$sortOrder}{/if}">{lang}wcf.acp.email.log.subject{/lang}</th>
                                        <th class="columnText columnRecipient{if $sortField == 'recipient'} active {@$sortOrder}{/if}">{lang}wcf.user.email{/lang}</th>
                                        <th class="columnDate columnTime{if $sortField == 'time'} active {@$sortOrder}{/if}"><a href="{link controller='EmailLogList'}pageNo={@$pageNo}&sortField=time&sortOrder={if $sortField == 'time' && $sortOrder == 'ASC'}DESC{else}ASC{/if}&{@$filterParameter}{/link}">{lang}wcf.acp.email.log.time{/lang}</a></th>
-                                       <th class="columnText columnStatusMessage{if $sortField == 'status'} active {@$sortOrder}{/if}"><a href="{link controller='EmailLogList'}pageNo={@$pageNo}&sortField=status&sortOrder={if $sortField == 'success' && $sortOrder == 'ASC'}DESC{else}ASC{/if}&{@$filterParameter}{/link}">{lang}wcf.acp.email.log.status{/lang}</a></th>
-                                       
+                                       <th class="columnText columnStatusMessage{if $sortField == 'status'} active {@$sortOrder}{/if}"><a href="{link controller='EmailLogList'}pageNo={@$pageNo}&sortField=status&sortOrder={if $sortField == 'status' && $sortOrder == 'ASC'}DESC{else}ASC{/if}&{@$filterParameter}{/link}">{lang}wcf.acp.email.log.status{/lang}</a></th>
+
                                        {event name='columnHeads'}
                                </tr>
                        </thead>
-                       
+
                        <tbody>
                                {foreach from=$objects item=entry}
                                        <tr class="jsEmailLogEntry">
                                                        {/if}
                                                </td>
                                                <td class="columnDate columnTime">{@$entry->time|time}</td>
-                                               
+
                                                <td class="columnText columnStatusMessage">
                                                        <span class="
                                                                badge
                                                                </div>
                                                        {/if}
                                                </td>
-                                               
+
                                                {event name='columns'}
                                        </tr>
                                {/foreach}
                        </tbody>
                </table>
        </div>
-       
+
        <footer class="contentFooter">
                {hascontent}
                        <div class="paginationBottom">
                                {content}{@$pagesLinks}{/content}
                        </div>
                {/hascontent}
-               
+
                {hascontent}
                        <nav class="contentFooterNavigation">
                                <ul>