diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-11-26 22:14:20 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-11-26 22:14:20 +0100 |
commit | 056db37c662864954181fea9c1af48d69866340f (patch) | |
tree | b85749b9dbd1973e03035727729a26e999b95b48 /view/tpl | |
parent | 5cb71fa5da219e97a4c105c6025ff9b79553a38c (diff) | |
download | volse-hubzilla-056db37c662864954181fea9c1af48d69866340f.tar.gz volse-hubzilla-056db37c662864954181fea9c1af48d69866340f.tar.bz2 volse-hubzilla-056db37c662864954181fea9c1af48d69866340f.zip |
beautify event item code
Diffstat (limited to 'view/tpl')
-rw-r--r-- | view/tpl/event_item_content.tpl | 10 | ||||
-rwxr-xr-x | view/tpl/event_item_header.tpl | 11 |
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> <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> <span class="dtstart" title="{{$dtstart_title}}">{{$dtstart_dt}}</span> +</div> +{{if $finish}} +<div class="event-start"> + <span class="event-label">{{$dtend_label}}</span> <span class="dtend" title="{{$dtend_title}}">{{$dtend_dt}}</span> +</div> +{{/if}} |