Added Website Settings

This commit is contained in:
MrYummy
2017-05-28 17:46:39 -04:00
parent db3aea185b
commit a24d26dd7c
16 changed files with 236 additions and 60 deletions

View File

@@ -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