aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2022-07-15 17:50:02 +0000
committerMario <mario@mariovavti.com>2022-07-15 17:50:02 +0000
commitd6a9a9927c23e8b4307dc2164407481f8c542682 (patch)
treedf67d55b5e19b884c02d92e014cfd5c4e24406ad /view/tpl
parent40b46368584036ede12fbc94619497bba73b6095 (diff)
downloadvolse-hubzilla-d6a9a9927c23e8b4307dc2164407481f8c542682.tar.gz
volse-hubzilla-d6a9a9927c23e8b4307dc2164407481f8c542682.tar.bz2
volse-hubzilla-d6a9a9927c23e8b4307dc2164407481f8c542682.zip
HQ dashboard - initial checkin
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/messages_widget.tpl8
-rw-r--r--view/tpl/page_display.tpl5
-rw-r--r--view/tpl/page_display_empty.tpl7
3 files changed, 17 insertions, 3 deletions
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 @@
<div class="page-author"><a class="page-author-link" href="{{$auth_url}}">{{$author}}</a></div>
<div class="page-date">{{$date}}</div>
<div class="page-body">{{$body}}</div>
+ {{if $edit_link}}
+ <div class="position-fixed bottom-0 end-0 m-3">
+ <a href="{{$edit_link}}" class="btn btn-lg btn-primary rounded-circle"><i class="fa fa-pencil"></i></a>
+ </div>
+ {{/if}}
</div>
</div>
</div>
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}}
+<div class="position-fixed bottom-0 end-0 m-3">
+ <a href="{{$edit_link}}" class="btn btn-lg btn-primary rounded-circle"><i class="fa fa-pencil"></i></a>
+</div>
+{{/if}}