[vhffs-dev] [1697] History source was displayed for non-moderators

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1697
Author:   beuss
Date:     2011-05-09 22:42:35 +0200 (Mon, 09 May 2011)
Log Message:
-----------
History source was displayed for non-moderators

Modified Paths:
--------------
    trunk/vhffs-panel/templates/misc/history.tt

Modified: trunk/vhffs-panel/templates/misc/history.tt
===================================================================
--- trunk/vhffs-panel/templates/misc/history.tt	2011-05-09 20:14:01 UTC (rev 1696)
+++ trunk/vhffs-panel/templates/misc/history.tt	2011-05-09 20:42:35 UTC (rev 1697)
@@ -1,18 +1,22 @@
 [% IF history.size() %]
 [% USE date %]
 <table>
+    <thead>
     <tr>
         <th>[% 'Date' | i18n | html %]</th>
         <th>[% 'Event' | i18n | html %]</th>
         [% IF current_user.is_moderator() || current_user.is_admin() %]<th>[% 'Source' | i18n | html %]</td>[% END %]
     </tr>
+    </thead>
+    <tbody>
 [% FOREACH h IN history %]
     <tr>
         <td>[% h.date %]</td>
         <td>[% h.message %]</td>
-        <td>[% h.source || 'N/A' %]</td>
+        [% IF current_user.is_moderator() || current_user.is_admin() %]<td>[% h.source || 'N/A' %]</td>[% END %]
     </tr>
 [% END %]
+    </tbody>
 </table>
 [% ELSE %]
 <p class="info">[% 'No history information about this object.' | i18n | html %]</p>


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/