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