add titles to more pages

This commit is contained in:
Lera Elvoé 2025-05-24 17:39:23 +03:00
parent ccb2819b01
commit 8a9a5e5bd9
Signed by: yagich
SSH Key Fingerprint: SHA256:6xjGb6uA7lAVcULa7byPEN//rQ0wPoG+UzYVMfZnbvc
3 changed files with 4 additions and 2 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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"}