From 505d25e29f1c13403bfbfe7cd9d1ab125be87a4b Mon Sep 17 00:00:00 2001
From: winter
Date: Mon, 23 Dec 2024 19:48:28 +0000
Subject: make the timelines look nicer and add local tl
---
templates/alertbox.php | 3 +++
templates/global_timeline.php | 4 ++++
templates/local_timeline.php | 10 ++++++++++
templates/note.php | 7 +++++--
templates/skeleton.php | 7 +++++--
5 files changed, 27 insertions(+), 4 deletions(-)
create mode 100644 templates/alertbox.php
create mode 100644 templates/local_timeline.php
(limited to 'templates')
diff --git a/templates/alertbox.php b/templates/alertbox.php
new file mode 100644
index 0000000..5d1f607
--- /dev/null
+++ b/templates/alertbox.php
@@ -0,0 +1,3 @@
+
\ No newline at end of file
diff --git a/templates/global_timeline.php b/templates/global_timeline.php
index dbecd7b..cdaac5e 100644
--- a/templates/global_timeline.php
+++ b/templates/global_timeline.php
@@ -1,5 +1,9 @@
'Global timeline'], function () {
global $notes;
+ call_template('alertbox', [
+ 'variety' => 'info',
+ 'message' => 'This timeline shows all known public indexable notes'
+ ]);
foreach ($notes as $n) {
call_template('note', ['note' => $n]);
}
diff --git a/templates/local_timeline.php b/templates/local_timeline.php
new file mode 100644
index 0000000..a4624b5
--- /dev/null
+++ b/templates/local_timeline.php
@@ -0,0 +1,10 @@
+ 'Local timeline'], function () {
+ global $notes;
+ call_template('alertbox', [
+ 'variety' => 'info',
+ 'message' => 'This timeline shows all public indexable notes posted by users on this server'
+ ]);
+ foreach ($notes as $n) {
+ call_template('note', ['note' => $n]);
+ }
+});
\ No newline at end of file
diff --git a/templates/note.php b/templates/note.php
index c3ec9fd..93a22fd 100644
--- a/templates/note.php
+++ b/templates/note.php
@@ -1,11 +1,14 @@
-
+
+
+
+
\ No newline at end of file
diff --git a/templates/skeleton.php b/templates/skeleton.php
index d1e08e0..5e181b6 100644
--- a/templates/skeleton.php
+++ b/templates/skeleton.php
@@ -8,9 +8,12 @@
- Digitigrade???????
--
cgit v1.3