From b55676d08914d58927b5503a1bfa283397cd6d44 Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 17 Jun 2021 07:33:45 +0000 Subject: New landing page HQ with separate views for direct messages, public/limited messages and starred messages if the feature is enabled --- view/tpl/head.tpl | 1 + view/tpl/hq_controls.tpl | 13 +- view/tpl/messages_widget.tpl | 123 +++++++++++ view/tpl/notes.tpl | 12 +- view/tpl/notifications_widget.tpl | 455 +++++++++++++++++++++++++++++++++----- 5 files changed, 527 insertions(+), 77 deletions(-) create mode 100644 view/tpl/messages_widget.tpl (limited to 'view/tpl') diff --git a/view/tpl/head.tpl b/view/tpl/head.tpl index ecb30afd3..bf61a7ee4 100644 --- a/view/tpl/head.tpl +++ b/view/tpl/head.tpl @@ -17,6 +17,7 @@ var channelId = {{if $channel_id}}{{$channel_id}}{{else}}false{{/if}};{{* Used in e.g. autocomplete *}} var preloadImages = {{$preload_images}}; var auto_save_draft = {{$auto_save_draft}}; + {{if $module}}var module = '{{$module}}';{{/if}} diff --git a/view/tpl/hq_controls.tpl b/view/tpl/hq_controls.tpl index d7f6d436f..f3860a949 100644 --- a/view/tpl/hq_controls.tpl +++ b/view/tpl/hq_controls.tpl @@ -1,8 +1,7 @@ -
-

{{$title}}

- +
+ {{foreach $entries as $e}} + + {{/foreach}}
diff --git a/view/tpl/messages_widget.tpl b/view/tpl/messages_widget.tpl new file mode 100644 index 000000000..7ba02e78e --- /dev/null +++ b/view/tpl/messages_widget.tpl @@ -0,0 +1,123 @@ + +
+ +
+ {{foreach $entries as $e}} + +
+
+ {{$e.icon}} + {{$e.author_name}} +
+ +
+
+
{{$e.summary}}
+
+ {{$e.info}} +
+ {{/foreach}} + +
+
+ diff --git a/view/tpl/notes.tpl b/view/tpl/notes.tpl index 4bee02aa0..0ae0604ef 100644 --- a/view/tpl/notes.tpl +++ b/view/tpl/notes.tpl @@ -1,24 +1,18 @@ {{if $app}} -
+

{{$banner}}

{{else}} -
+

{{$banner}}

{{/if}} - + @@ -199,4 +533,3 @@ {{/foreach}}
-{{/if}} -- cgit v1.2.3 From 12d7d1c3f028f2faa2329752a29f2814f624224b Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 17 Jun 2021 07:50:16 +0000 Subject: fix wrong variable --- view/tpl/hq_controls.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'view/tpl') diff --git a/view/tpl/hq_controls.tpl b/view/tpl/hq_controls.tpl index f3860a949..f46b7b298 100644 --- a/view/tpl/hq_controls.tpl +++ b/view/tpl/hq_controls.tpl @@ -1,6 +1,6 @@
{{foreach $entries as $e}} - {{/foreach}} -- cgit v1.2.3 From c268bc327a9c82acf05999039b0b3ab7191646eb Mon Sep 17 00:00:00 2001 From: Mario Date: Thu, 17 Jun 2021 10:14:23 +0000 Subject: fix issues with browser back button and minor cleanup --- view/tpl/messages_widget.tpl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/messages_widget.tpl b/view/tpl/messages_widget.tpl index 7ba02e78e..079bcdf3a 100644 --- a/view/tpl/messages_widget.tpl +++ b/view/tpl/messages_widget.tpl @@ -1,4 +1,4 @@ -