Merge branch 'v3'
This commit is contained in:
commit
072eb92e14
@ -5946,9 +5946,9 @@
|
||||
threadExcerpt: function(thread) {
|
||||
var OP, excerpt, _ref;
|
||||
OP = thread.OP;
|
||||
excerpt = ("/" + thread.board + "/ - ") + (((_ref = OP.info.subject) != null ? _ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || OP.getNameBlock());
|
||||
if (excerpt.length > 73) {
|
||||
excerpt = "" + excerpt.slice(0, 70) + "...";
|
||||
excerpt = ((_ref = OP.info.subject) != null ? _ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || OP.getNameBlock();
|
||||
if (excerpt.length > 70) {
|
||||
excerpt = "" + excerpt.slice(0, 67) + "...";
|
||||
}
|
||||
return "/" + thread.board + "/ - " + excerpt;
|
||||
},
|
||||
|
||||
@ -6005,9 +6005,9 @@
|
||||
threadExcerpt: function(thread) {
|
||||
var OP, excerpt, _ref;
|
||||
OP = thread.OP;
|
||||
excerpt = ("/" + thread.board + "/ - ") + (((_ref = OP.info.subject) != null ? _ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || OP.getNameBlock());
|
||||
if (excerpt.length > 73) {
|
||||
excerpt = "" + excerpt.slice(0, 70) + "...";
|
||||
excerpt = ((_ref = OP.info.subject) != null ? _ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || OP.getNameBlock();
|
||||
if (excerpt.length > 70) {
|
||||
excerpt = "" + excerpt.slice(0, 67) + "...";
|
||||
}
|
||||
return "/" + thread.board + "/ - " + excerpt;
|
||||
},
|
||||
|
||||
@ -1,13 +1,11 @@
|
||||
Get =
|
||||
threadExcerpt: (thread) ->
|
||||
{OP} = thread
|
||||
excerpt = "/#{thread.board}/ - " + (
|
||||
OP.info.subject?.trim() or
|
||||
excerpt = OP.info.subject?.trim() or
|
||||
OP.info.comment.replace(/\n+/g, ' // ') or
|
||||
OP.getNameBlock()
|
||||
)
|
||||
if excerpt.length > 73
|
||||
excerpt = "#{excerpt[...70]}..."
|
||||
if excerpt.length > 70
|
||||
excerpt = "#{excerpt[...67]}..."
|
||||
"/#{thread.board}/ - #{excerpt}"
|
||||
threadFromRoot: (root) ->
|
||||
g.threads["#{g.BOARD}.#{root.id[1..]}"]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user