e-mail
+ - The page number on which threads are will now be displayed in OPs, to easily identify where threads are located when:
+
+
searching through the index.
+
using different index sorting types.
+
threads highlighted by the filter are moved to the top and move other threads down.
+
- The elapsed time since the last index refresh is now indicated at the top of the index.
- New setting: `Show replies`, enabled by default. Disable it to only show OPs in the index.
diff --git a/src/General/Build.coffee b/src/General/Build.coffee
index 31fbea6a9..9fbcf6315 100644
--- a/src/General/Build.coffee
+++ b/src/General/Build.coffee
@@ -190,10 +190,12 @@ Build =
else
''
- replyLink = if isOP and g.VIEW is 'index'
- " [Reply]"
+ if isOP and g.VIEW is 'index'
+ pageNum = Math.floor Index.liveThreadIDs.indexOf(postID) / Index.threadsNumPerPage
+ pageIcon = " #{pageNum} "
+ replyLink = " [Reply]"
else
- ''
+ pageIcon = replyLink = ''
container = $.el 'div',
id: "pc#{postID}"
@@ -226,6 +228,7 @@ Build =
(if isOP then fileHTML else '') +
"
" +
+ pageIcon +
" " +
"#{subject} " +
"" +
diff --git a/src/General/Index.coffee b/src/General/Index.coffee
index 251d6efe8..0df36998e 100644
--- a/src/General/Index.coffee
+++ b/src/General/Index.coffee
@@ -250,10 +250,11 @@ Index =
Index.nodes = []
threads = []
posts = []
- for threadData in Index.liveThreadData
+ for threadData, i in Index.liveThreadData
threadRoot = Build.thread g.BOARD, threadData
Index.nodes.push threadRoot, $.el 'hr'
if thread = g.BOARD.threads[threadData.no]
+ thread.setPage Math.floor i / Index.threadsNumPerPage
thread.setStatus 'Sticky', !!threadData.sticky
thread.setStatus 'Closed', !!threadData.closed
else
diff --git a/src/General/Thread.coffee b/src/General/Thread.coffee
index a02f4bc72..60de5ed4d 100644
--- a/src/General/Thread.coffee
+++ b/src/General/Thread.coffee
@@ -12,6 +12,11 @@ class Thread
g.threads[@fullID] = board.threads[@] = @
+ setPage: (pageNum) ->
+ icon = $ '.page-num', @OP.nodes.post
+ for key in ['title', 'textContent']
+ icon[key] = icon[key].replace /\d+/, pageNum
+ return
setStatus: (type, status) ->
name = "is#{type}"
return if @[name] is status