aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-11-26 22:14:20 +0100
committerMario Vavti <mario@mariovavti.com>2015-11-26 22:14:20 +0100
commit056db37c662864954181fea9c1af48d69866340f (patch)
treeb85749b9dbd1973e03035727729a26e999b95b48 /view
parent5cb71fa5da219e97a4c105c6025ff9b79553a38c (diff)
downloadvolse-hubzilla-056db37c662864954181fea9c1af48d69866340f.tar.gz
volse-hubzilla-056db37c662864954181fea9c1af48d69866340f.tar.bz2
volse-hubzilla-056db37c662864954181fea9c1af48d69866340f.zip
beautify event item code
Diffstat (limited to 'view')
-rw-r--r--view/tpl/event_item_content.tpl10
-rwxr-xr-xview/tpl/event_item_header.tpl11
2 files changed, 21 insertions, 0 deletions
diff --git a/view/tpl/event_item_content.tpl b/view/tpl/event_item_content.tpl
new file mode 100644
index 000000000..868e5ad27
--- /dev/null
+++ b/view/tpl/event_item_content.tpl
@@ -0,0 +1,10 @@
+{{if $description}}
+<div class="event-description">
+ {{$description}}
+</div>
+{{/if}}
+{{if $location}}
+<div class="event-location">
+ <span class="event-label">{{$location_label}}</span>&nbsp;<span class="event_location">{{$location}}</span>
+</div>
+{{/if}}
diff --git a/view/tpl/event_item_header.tpl b/view/tpl/event_item_header.tpl
new file mode 100755
index 000000000..de1899457
--- /dev/null
+++ b/view/tpl/event_item_header.tpl
@@ -0,0 +1,11 @@
+<div class="event-title">
+ <h3>{{$title}}</h3>
+</div>
+<div class="event-start">
+ <span class="event-label">{{$dtstart_label}}</span>&nbsp;<span class="dtstart" title="{{$dtstart_title}}">{{$dtstart_dt}}</span>
+</div>
+{{if $finish}}
+<div class="event-start">
+ <span class="event-label">{{$dtend_label}}</span>&nbsp;<span class="dtend" title="{{$dtend_title}}">{{$dtend_dt}}</span>
+</div>
+{{/if}}