Author: tveronezi
Date: Sun Feb 16 11:39:18 2014
New Revision: 1568749

URL: http://svn.apache.org/r1568749
Log:
cosmetic - sessions table

Modified:
    
tomee/tomee/trunk/tomee/tomee-webaccess/src/main/webapp/app/js/handlebarsHelpers.js
    
tomee/tomee/trunk/tomee/tomee-webaccess/src/main/webapp/app/js/templates/sessions.handlebars

Modified: 
tomee/tomee/trunk/tomee/tomee-webaccess/src/main/webapp/app/js/handlebarsHelpers.js
URL: 
http://svn.apache.org/viewvc/tomee/tomee/trunk/tomee/tomee-webaccess/src/main/webapp/app/js/handlebarsHelpers.js?rev=1568749&r1=1568748&r2=1568749&view=diff
==============================================================================
--- 
tomee/tomee/trunk/tomee/tomee-webaccess/src/main/webapp/app/js/handlebarsHelpers.js
 (original)
+++ 
tomee/tomee/trunk/tomee/tomee-webaccess/src/main/webapp/app/js/handlebarsHelpers.js
 Sun Feb 16 11:39:18 2014
@@ -17,7 +17,7 @@
  "use strict";
  */
 
-define(['app/js/i18n', 'lib/handlebars'], function (i18n) {
+define(['app/js/i18n', 'underscore.string', 'lib/handlebars'], function (i18n, 
str) {
     'use strict';
 
     Handlebars.registerHelper('i18n', function (key) {
@@ -26,7 +26,14 @@ define(['app/js/i18n', 'lib/handlebars']
 
     Handlebars.registerHelper('timeStampToDate', function (value) {
         var date = new Date(value);
-        return date.toUTCString();
+        return str.sprintf('%d-%d-%d %d:%d:%d',
+            date.getFullYear(),
+            date.getMonth(),
+            date.getDate(),
+            date.getHours(),
+            date.getMinutes(),
+            date.getSeconds()
+        );
     });
 
 });

Modified: 
tomee/tomee/trunk/tomee/tomee-webaccess/src/main/webapp/app/js/templates/sessions.handlebars
URL: 
http://svn.apache.org/viewvc/tomee/tomee/trunk/tomee/tomee-webaccess/src/main/webapp/app/js/templates/sessions.handlebars?rev=1568749&r1=1568748&r2=1568749&view=diff
==============================================================================
--- 
tomee/tomee/trunk/tomee/tomee-webaccess/src/main/webapp/app/js/templates/sessions.handlebars
 (original)
+++ 
tomee/tomee/trunk/tomee/tomee-webaccess/src/main/webapp/app/js/templates/sessions.handlebars
 Sun Feb 16 11:39:18 2014
@@ -10,6 +10,7 @@
             <th>{{i18n "session.creation.date"}}</th>
             <th>{{i18n "session.last.access"}}</th>
             <th>{{i18n "session.expiration.date"}}</th>
+            <th></th>
         </tr>
         </thead>
         <tbody>
@@ -19,7 +20,8 @@
             <td>{{this.context}}</td>
             <td>{{timeStampToDate this.creationTs}}</td>
             <td>{{timeStampToDate this.lastAccessTs}}</td>
-            <td>{{timeStampToDate this.expirationTs}}
+            <td>{{timeStampToDate this.expirationTs}}</td>
+            <td>
                 <a class="ux-expire-btn" href="expire">
                 <span data-session-id="{{this.sessionId}}" 
data-context-id="{{this.context}}"
                       class="glyphicon glyphicon-trash"></span>


Reply via email to