aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/event_head.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-11-26 16:38:14 +0100
committerMario Vavti <mario@mariovavti.com>2015-11-26 16:38:14 +0100
commit8e3b796a2ff28d1c46fbae9d2b029e9f7252c0dc (patch)
tree622ae27ab83086e63acadd6dc3bae3e3b848305b /view/tpl/event_head.tpl
parent17e7b276f6c647bc65cb34dfcb1c395e528ef8a3 (diff)
downloadvolse-hubzilla-8e3b796a2ff28d1c46fbae9d2b029e9f7252c0dc.tar.gz
volse-hubzilla-8e3b796a2ff28d1c46fbae9d2b029e9f7252c0dc.tar.bz2
volse-hubzilla-8e3b796a2ff28d1c46fbae9d2b029e9f7252c0dc.zip
fix event rendering
Diffstat (limited to 'view/tpl/event_head.tpl')
-rwxr-xr-xview/tpl/event_head.tpl21
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'>&nbsp;{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'>&nbsp;{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'>&nbsp;{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;
}