diff --git a/README.md b/README.md index ba7d1c5..d912f92 100644 --- a/README.md +++ b/README.md @@ -41,12 +41,11 @@ Akf-forum has got an API for AJAX (fetch), other clients etc. And, you can learn - mod role, permissions - Fix footer's location. - upload other photos, model for it -- category system bloat. +- categories page is need a update. - preview for send messages in markdown format. - Limits for thread title, message content, username, user about - desp => description -- threads title and desp black theme, center -- scroll + ## Major Version History - V4: Caching - V3: New Theme diff --git a/routes/search.js b/routes/search.js index 14807d3..b1d80bf 100644 --- a/routes/search.js +++ b/routes/search.js @@ -42,8 +42,8 @@ app.get("/threads", async (req, res) => { if (req.query.authorID) query.authorID = req.query.authorID; const threads = await ThreadModel.find(query, null, req.so) res.reply("threads", { - threads, page: req.page, title: "Threads with query " + req.query.q, - pages: Math.ceil(await ThreadModel.count(query) / 10) + threads, page: req.page, title: `Threads with query '${req.query.q}'`, + pages: Math.ceil(await ThreadModel.count(query) / 10), desp: `${threads.length} threads are listed` }); }); diff --git a/routes/threads.js b/routes/threads.js index ab43529..6b74f4d 100644 --- a/routes/threads.js +++ b/routes/threads.js @@ -8,7 +8,7 @@ app.get("/", async (req, res) => { let threads = await ThreadModel.find(query).limit(10).skip(page * 10); threads = await Promise.all(threads.map(thread => thread.get_author())); - return res.reply("threads", { threads, page, title: "Threads", desp: threads.length + " thread listed", pages: Math.ceil(await ThreadModel.count(query) / 10) }); + return res.reply("threads", { threads, page, title: "Threads", desp: threads.length + " threads are listed", pages: Math.ceil(await ThreadModel.count(query) / 10) }); }); diff --git a/views/extra/navbar.ejs b/views/extra/navbar.ejs index 5bf4dda..7b93e5a 100644 --- a/views/extra/navbar.ejs +++ b/views/extra/navbar.ejs @@ -22,7 +22,7 @@ Login Register <% } %> diff --git a/views/thread.ejs b/views/thread.ejs index 592bb29..5b4a2ce 100644 --- a/views/thread.ejs +++ b/views/thread.ejs @@ -15,9 +15,9 @@
-
<%= thread.title %>
+ <%= thread.title %>
- <%= new Date(thread.time).toLocaleString() %> • Views: <%= thread.views %>%> + <%= new Date(thread.time).toLocaleString() %> • Views: <%= thread.views %>
<%= thread.author.name %> <%= "• "+(thread.edited ? "Edited" : "Not edited")%> diff --git a/views/threads.ejs b/views/threads.ejs index 458c666..bdd799e 100644 --- a/views/threads.ejs +++ b/views/threads.ejs @@ -2,7 +2,7 @@ <%- include("extra/meta", {title: "Thread list!" }) %> - +