Merge branch 'v3'

This commit is contained in:
Zixaphir 2014-03-07 18:57:19 -07:00
commit 072eb92e14
3 changed files with 9 additions and 11 deletions

View File

@ -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;
},

View File

@ -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;
},

View File

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