From d6a9a9927c23e8b4307dc2164407481f8c542682 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 15 Jul 2022 17:50:02 +0000 Subject: HQ dashboard - initial checkin --- view/tpl/messages_widget.tpl | 8 ++++++-- view/tpl/page_display.tpl | 5 +++++ view/tpl/page_display_empty.tpl | 7 ++++++- 3 files changed, 17 insertions(+), 3 deletions(-) (limited to 'view/tpl') diff --git a/view/tpl/messages_widget.tpl b/view/tpl/messages_widget.tpl index 83f563db6..ddb21beb5 100644 --- a/view/tpl/messages_widget.tpl +++ b/view/tpl/messages_widget.tpl @@ -69,7 +69,9 @@ $(document).ready(function () { $('.messages-timeago').timeago(); - $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active'); + if (bParam_mid) { + $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active'); + } }); $('#messages-widget').on('scroll', function() { @@ -130,7 +132,9 @@ else { $('#messages-empty').show(); } - $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active'); + if (bParam_mid) { + $('.message[data-b64mid=\'' + bParam_mid + '\']').addClass('active'); + } $('#messages-loading').hide(); $('.messages-timeago').timeago(); diff --git a/view/tpl/page_display.tpl b/view/tpl/page_display.tpl index a320920c7..589de0b41 100644 --- a/view/tpl/page_display.tpl +++ b/view/tpl/page_display.tpl @@ -9,6 +9,11 @@
{{$author}}
{{$date}}
{{$body}}
+ {{if $edit_link}} +
+ +
+ {{/if}} diff --git a/view/tpl/page_display_empty.tpl b/view/tpl/page_display_empty.tpl index 9f000dee8..5a3bdc530 100644 --- a/view/tpl/page_display_empty.tpl +++ b/view/tpl/page_display_empty.tpl @@ -1 +1,6 @@ -{{$body}} \ No newline at end of file +{{$body}} +{{if $edit_link}} +
+ +
+{{/if}} -- cgit v1.2.3