diff options
| author | julian laplace <julescarbon@gmail.com> | 2022-11-02 15:32:26 +0100 |
|---|---|---|
| committer | julian laplace <julescarbon@gmail.com> | 2022-11-02 15:32:26 +0100 |
| commit | c06ed9cc555b915285c62883e12d48d00c142ea8 (patch) | |
| tree | 284172ed8458219cfccafb2263cdcbb8ec79959d /public/assets/js/lib/views | |
| parent | d789906d2f905cdcc92e40d9154db91195541b14 (diff) | |
show age on hover
Diffstat (limited to 'public/assets/js/lib/views')
| -rw-r--r-- | public/assets/js/lib/views/stream/hootstream.js | 5 |
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], |
