summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/stream
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/lib/views/stream')
-rw-r--r--public/assets/js/lib/views/stream/hootstream.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/stream/hootstream.js b/public/assets/js/lib/views/stream/hootstream.js
index cde591c..311d84e 100644
--- a/public/assets/js/lib/views/stream/hootstream.js
+++ b/public/assets/js/lib/views/stream/hootstream.js
@@ -384,6 +384,7 @@ var HootStream = View.extend({
age: get_age(date),
hoot_opacity: className === "first_post" ? 1.0 : age_opacity,
age_opacity: age_opacity,
+ age_string: verbose_date(date).join(" "),
...options,
});
},
@@ -435,7 +436,7 @@ var HootStream = View.extend({
const actions = [
hasAudio && { action: "play", label: "play music", icon: "play" },
- { action: "post", label: "post", icon: "edit" },
+ { action: "post", label: "post", icon: "add" },
!isViewingThread &&
!isCompleteThread && {
action: "expand",
@@ -466,6 +467,7 @@ var HootStream = View.extend({
username: thread.username,
className: postedToday ? "isRecent" : "",
date: thread.lastmodified,
+ age_string: verbose_date(thread.lastmodified).join(" "),
file_count: `${thread.file_count || 0} f.`,
file_opacity: age_opacity * get_size_opacity(thread.file_count),
comment_count: `${thread.comment_count || 0} c.`,
@@ -605,6 +607,7 @@ var HootStream = View.extend({
filename: file.filename,
age: get_age(file.date),
age_opacity: get_age_opacity(file.date),
+ age_string: verbose_date(file.date).join(" "),
date_class,
date: datetime[0],
// time: datetime[1],