From 8a269823d2fb0b8b8d39840042216e364c2567c7 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 26 Nov 2015 20:53:42 +0100 Subject: improve event rendering --- view/tpl/event_head.tpl | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'view') diff --git a/view/tpl/event_head.tpl b/view/tpl/event_head.tpl index 4362360d3..fcd0f0df1 100755 --- a/view/tpl/event_head.tpl +++ b/view/tpl/event_head.tpl @@ -71,30 +71,32 @@ switch(view.name){ case "month": element.find(".fc-title").html( - " {1}: {2}".format( + " {2}".format( event.item['author']['xchan_photo_s'], event.item['author']['xchan_name'], - event.title + event.title, + event.item.description, + event.item.location.replace(/(<([^>]+)>)/ig,"") )); break; case "agendaWeek": element.find(".fc-title").html( - " {1}: {2}

{3}

{4}

".format( + " {1}: {2}".format( event.item['author']['xchan_photo_s'], event.item['author']['xchan_name'], event.title, event.item.description, - event.item.location + event.item.location.replace(/(<([^>]+)>)/ig,"") )); break; case "agendaDay": element.find(".fc-title").html( - " {1}: {2}

{3}

{4}

".format( + " {1}: {2}".format( event.item['author']['xchan_photo_s'], event.item['author']['xchan_name'], event.title, event.item.description, - event.item.location + event.item.location.replace(/(<([^>]+)>)/ig,"") )); break; } -- cgit v1.2.3