diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-11-26 20:53:42 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-11-26 20:53:42 +0100 |
commit | 8a269823d2fb0b8b8d39840042216e364c2567c7 (patch) | |
tree | 87b41181e526a97b6a55e660b44c0e9fa83b2c4f | |
parent | c407e72dcc4d4f892e88e8260e662104586695f2 (diff) | |
download | volse-hubzilla-8a269823d2fb0b8b8d39840042216e364c2567c7.tar.gz volse-hubzilla-8a269823d2fb0b8b8d39840042216e364c2567c7.tar.bz2 volse-hubzilla-8a269823d2fb0b8b8d39840042216e364c2567c7.zip |
improve event rendering
-rwxr-xr-x | view/tpl/event_head.tpl | 14 |
1 files changed, 8 insertions, 6 deletions
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( - "<img src='{0}' style='height:10px;width:10px'> {1}: {2}".format( + "<img src='{0}' style='height:12px;width:12px;' title='{1}'> <abbr title='{3}\r\n\r\n{4}'>{2}</abbr>".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( - "<img src='{0}' style='height:10px; width:10px'> {1}: {2}<p>{3}</p><p>{4}</p>".format( + "<img src='{0}' style='height:12px;width:12px;'> {1}: <abbr title='{3}\r\n\r\n{4}'>{2}</abbr>".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( - "<img src='{0}' style='height:10px;width:10px'> {1}: {2}<p>{3}</p><p>{4}</p>".format( + "<img src='{0}' style='height:12px;width:12px;'> {1}: <abbr title='{3}\r\n\r\n{4}'>{2}</abbr>".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; } |