From df1aa84d3ffcab5fc9a9348a0a86253d596a326e Mon Sep 17 00:00:00 2001 From: Davide Alberani Date: Sun, 17 May 2015 10:33:19 +0200 Subject: [PATCH] closes #32: nice-looking date and times --- angular_app/events-list.html | 4 ++-- angular_app/js/directives.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/angular_app/events-list.html b/angular_app/events-list.html index e6c38d8..b3d701d 100644 --- a/angular_app/events-list.html +++ b/angular_app/events-list.html @@ -37,8 +37,8 @@ {{event.title}} -

{{'Begins:' | translate}} {{event['begin-date']}}
- {{'Ends:' | translate}} {{event['end-date']}}

+

{{'Begins:' | translate}} {{event['begin-date'] | date:'fullDate' }} {{event['begin-time'] | date:'hh:mm' }}
+ {{'Ends:' | translate}} {{event['end-date'] | date:'fullDate' }} {{event['end-time'] | date:'hh:mm'}}

diff --git a/angular_app/js/directives.js b/angular_app/js/directives.js index 41fc68d..49447c0 100644 --- a/angular_app/js/directives.js +++ b/angular_app/js/directives.js @@ -16,6 +16,7 @@ eventManApp.directive('eventmanPressEnter', function () { }; }); + eventManApp.directive('eventmanFocus', function () { function link(scope, element, attrs) { element[0].focus();