Give life to editHistory.tpl
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 26 Jun 2014 19:29:07 +0000 (21:29 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Wed, 9 Jul 2014 19:51:08 +0000 (21:51 +0200)
com.woltlab.wcf/templates/editHistory.tpl

index 49fdedbdee5dd9a915d890403723f789d2368a6b..70e5f4902055866c8d05b4203cb9ee8f4e88374b 100644 (file)
 {include file='userNotice'}
 
 <pre>{$diff}</pre>
+<div class="tabularBox tabularBoxTitle marginTop">
+       <header>
+               <h2>{lang}wcf.edit.versions{/lang} <span class="badge badgeInverse">{#$objects|count}</span></h2>
+       </header>
+       
+       <table class="table">
+               <thead>
+                       <tr>
+                               <th class="columnID columnEditID" colspan="2">{lang}wcf.global.objectID{/lang}</th>
+                               <th class="columnText columnUser">{lang}wcf.user.username{/lang}</th>
+                               <th class="columnText columnTime">{lang}wcf.edit.time{/lang}</th>
+                               <th class="columnText columnEditReason">{lang}wcf.edit.reason{/lang}</th>
+                               
+                               {event name='columnHeads'}
+                       </tr>
+               </thead>
+               
+               <tbody>
+                       <tr>
+                               <td class="columnIcon">
+                                       <span class="icon icon16 icon-undo disabled"></span>
+                                       {event name='rowButtons'}
+                               </td>
+                               <td class="columnID"><strong>{lang}wcf.edit.currentVersion{/lang}</strong></td>
+                               <td class="columnText columnUser"><a href="{link controller='User' id=$object->getUserID() title=$object->getUsername()}{/link}">{$object->getUsername()}</a></td>
+                               <td class="columnText columnTime">{@$object->getTime()|time}</td>
+                               <td class="columnText columnEditReason">{$object->getEditReason()}</td>
+                               
+                               {event name='columns'}
+                       </tr>
+                       {foreach from=$objects item=edit}
+                               <tr class="jsEditRow">
+                                       <td class="columnIcon">
+                                               <span class="icon icon16 icon-undo"></span>
+                                               {event name='rowButtons'}
+                                       </td>
+                                       <td class="columnID">{@$edit->entryID}</td>
+                                       <td class="columnText columnUser"><a href="{link controller='User' id=$edit->userID title=$edit->username}{/link}">{$edit->username}</a></td>
+                                       <td class="columnText columnTime">{@$edit->time|time}</td>
+                                       <td class="columnText columnEditReason">{$edit->editReason}</td>
+                                       
+                                       {event name='columns'}
+                               </tr>
+                       {/foreach}
+               </tbody>
+       </table>
+       
+</div>
 
 {include file='footer'}