diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-11-26 16:38:14 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-11-26 16:38:14 +0100 |
commit | 8e3b796a2ff28d1c46fbae9d2b029e9f7252c0dc (patch) | |
tree | 622ae27ab83086e63acadd6dc3bae3e3b848305b | |
parent | 17e7b276f6c647bc65cb34dfcb1c395e528ef8a3 (diff) | |
download | volse-hubzilla-8e3b796a2ff28d1c46fbae9d2b029e9f7252c0dc.tar.gz volse-hubzilla-8e3b796a2ff28d1c46fbae9d2b029e9f7252c0dc.tar.bz2 volse-hubzilla-8e3b796a2ff28d1c46fbae9d2b029e9f7252c0dc.zip |
fix event rendering
-rwxr-xr-x | view/tpl/event_head.tpl | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl index ec43d7ab7..05d58aba2 100755 --- a/view/tpl/event_head.tpl +++ b/view/tpl/event_head.tpl @@ -64,34 +64,35 @@ }, eventRender: function(event, element, view) { + //console.log(view.name); if (event.item['author']['xchan_name']==null) return; switch(view.name){ case "month": - element.find(".fc-event-title").html( - "<img src='{0}' style='height:10px;width:10px'>{1} : {2}".format( + element.find(".fc-title").html( + "<img src='{0}' style='height:10px;width:10px'> {1}: {2}".format( event.item['author']['xchan_photo_s'], event.item['author']['xchan_name'], event.title )); break; case "agendaWeek": - element.find(".fc-event-title").html( - "<img src='{0}' style='height:12px; width:12px'>{1}<p>{2}</p><p>{3}</p>".format( + element.find(".fc-title").html( + "<img src='{0}' style='height:10px; width:10px'> {1}: {2}<p>{3}</p>".format( event.item['author']['xchan_photo_s'], event.item['author']['xchan_name'], - event.item.desc, - event.item.location + event.title, + event.item.description )); break; case "agendaDay": - element.find(".fc-event-title").html( - "<img src='{0}' style='height:24px;width:24px'>{1}<p>{2}</p><p>{3}</p>".format( + element.find(".fc-title").html( + "<img src='{0}' style='height:10px;width:10px'> {1}: {2}<p>{3}</p>".format( event.item['author']['xchan_photo_s'], event.item['author']['xchan_name'], - event.item.desc, - event.item.location + event.title, + event.item.description )); break; } |