From fcc64b0d41bc9a96f7aeb6f81bc1b887a515ccb6 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 6 May 2016 13:23:00 +0200 Subject: * basic calendar info on calendar page --- app/php/controls/CalendarDetails.php | 7 +++++++ app/php/controls/CalendarDetails.tpl | 12 ++++++++++++ app/php/pages/Calendar.page | 7 ++++++- 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 app/php/controls/CalendarDetails.php create mode 100644 app/php/controls/CalendarDetails.tpl diff --git a/app/php/controls/CalendarDetails.php b/app/php/controls/CalendarDetails.php new file mode 100644 index 0000000..95ee563 --- /dev/null +++ b/app/php/controls/CalendarDetails.php @@ -0,0 +1,7 @@ + diff --git a/app/php/controls/CalendarDetails.tpl b/app/php/controls/CalendarDetails.tpl new file mode 100644 index 0000000..058a00f --- /dev/null +++ b/app/php/controls/CalendarDetails.tpl @@ -0,0 +1,12 @@ + + <%= $this->getCalendar()->Name %> + + + <%= $this->getCalendar()->Image %> + + + <%= $this->getCalendar()->Website %> + +

+ Last updated: <%= $this->getCalendar()->LastUpdated %> +

diff --git a/app/php/pages/Calendar.page b/app/php/pages/Calendar.page index 8b13789..e2d4dae 100644 --- a/app/php/pages/Calendar.page +++ b/app/php/pages/Calendar.page @@ -1 +1,6 @@ - + + + <%= CalendarFacade::getInstance() %> + <%= $this->Request->itemAt('calendar') %> + + -- cgit v1.2.3