From 8a9a5e5bd929ad283b54d1dbd498c9ff59976869 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lera=20Elvo=C3=A9?= Date: Sat, 24 May 2025 17:39:23 +0300 Subject: [PATCH] add titles to more pages --- apps/post.lua | 2 ++ apps/threads.lua | 2 +- apps/topics.lua | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/apps/post.lua b/apps/post.lua index 83f24ec..9bdfffe 100644 --- a/apps/post.lua +++ b/apps/post.lua @@ -48,6 +48,8 @@ app:get("edit_post", "/:post_id/edit", function(self) self.prev_context = db.query(context_prev_query, self.thread.id, self.editing_post.created_at) self.next_context = db.query(context_next_query, self.thread.id, self.editing_post.created_at) + self.page_title = "editing a post" + return {render = "post.edit-post"} end) diff --git a/apps/threads.lua b/apps/threads.lua index ad613a2..a51cece 100644 --- a/apps/threads.lua +++ b/apps/threads.lua @@ -23,7 +23,7 @@ app:get("thread_create", "/create", function(self) return "how did you get here?" end self.all_topics = all_topics - self.page_title = "creating thread" + self.page_title = "drafting a thread" self.me = user return {render = "threads.create"} end) diff --git a/apps/topics.lua b/apps/topics.lua index d9b1eec..a6cb525 100644 --- a/apps/topics.lua +++ b/apps/topics.lua @@ -53,7 +53,7 @@ app:get("topic_create", "/create", function(self) return {status = 403} end - self.page_title = "creating topic" + self.page_title = "creating a topic" self.me = user return {render = "topics.create"}