iqdb: add more info to iqdb thumbnails.
* Add the source (twitter, pixiv, etc) and upload date ("X minutes ago")
to iqdb thumbnails.
* Link the filesize to the full file so you can compare files in new tabs.
* Link the similarity to a iqdb search so you can pivot your search to other posts.
This commit is contained in:
@@ -67,7 +67,7 @@ module ApplicationHelper
|
||||
def time_ago_in_words_tagged(time, compact: false)
|
||||
if time.past?
|
||||
text = time_ago_in_words(time) + " ago"
|
||||
text = text.gsub(/almost|about|over/, "") if compact
|
||||
text = text.gsub(/almost|about|over/, "").strip if compact
|
||||
raw time_tag(text, time)
|
||||
else
|
||||
raw time_tag("in " + distance_of_time_in_words(Time.now, time), time)
|
||||
|
||||
Reference in New Issue
Block a user