Added Website Settings
This commit is contained in:
@@ -11,10 +11,12 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def ago(tm)
|
||||
if tm
|
||||
if tm && current_user.try(:utc_time) != true
|
||||
content_tag :time, title: tm.strftime("%e %b %Y, %H:%M %Z"), datetime: tm.to_datetime.rfc3339 do
|
||||
tm.strftime("%e %b %Y, %H:%M")
|
||||
end
|
||||
else
|
||||
tm
|
||||
end
|
||||
end
|
||||
|
||||
@@ -90,4 +92,4 @@ module ApplicationHelper
|
||||
https://www.youtube-nocookie.com/embed/\\1?theme=light&vq=hd720&hd=1&iv_load_policy=3&showinfo=1&showsearch=0&rel=0&modestbranding&hd=1&autohide=1&html5=1&start=\\3'>
|
||||
</iframe>")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user