summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/index/threadbox.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-09-07 01:08:00 -0400
committerJules Laplace <jules@okfoc.us>2015-09-07 01:08:00 -0400
commit2bb87671b1c5b59d6c770627b99a17a784f81e1d (patch)
tree18f09b11a4d78a4cbaf4ddab66b6d62e0f8e7426 /public/assets/js/lib/views/index/threadbox.js
parent126c462fe0c93ef55a6dca9ba693d8b43a7a8300 (diff)
stub in details page
Diffstat (limited to 'public/assets/js/lib/views/index/threadbox.js')
-rw-r--r--public/assets/js/lib/views/index/threadbox.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/public/assets/js/lib/views/index/threadbox.js b/public/assets/js/lib/views/index/threadbox.js
index 2e7d211..9f12411 100644
--- a/public/assets/js/lib/views/index/threadbox.js
+++ b/public/assets/js/lib/views/index/threadbox.js
@@ -27,14 +27,16 @@ var ThreadBox = View.extend({
var comments = hush_null(thread.comment_count, "c")
var files = hush_null(thread.file_count, "f")
var dot = privacy_dot(thread.private)
+ var datetime = verbose_date(thread.lastmodified)
var t = this.template
.replace(/{{id}}/g, thread.id)
.replace(/{{username}}/g, thread.username)
.replace(/{{privacy_dot}}/g, dot)
.replace(/{{title}}/g, thread.title)
- .replace(/{{age}}/g, verbose_date(thread.lastmodified) )
- .replace(/{{age_class}}/g, carbon_date(thread.lastmodified) )
+ .replace(/{{date}}/g, datetime[0])
+ .replace(/{{time}}/g, datetime[1])
+ .replace(/{{date_class}}/g, carbon_date(thread.lastmodified) )
.replace(/{{views}}/g, views[1])
.replace(/{{comments}}/g, comments[1])
.replace(/{{files}}/g, files[1])