Module: Help::IssuesHelper

Defined in:
app/helpers/help/issues_helper.rb

Instance Method Summary collapse

Instance Method Details

#comment_by(comment) ⇒ Object



11
12
13
# File 'app/helpers/help/issues_helper.rb', line 11

def comment_by(comment)
  "staff" if comment.commenter_type == "User"
end

#posted_on_long(date) ⇒ Object



3
4
5
# File 'app/helpers/help/issues_helper.rb', line 3

def posted_on_long(date)
  date.strftime("%B #{date.day.ordinalize} %Y") + " at " + date.strftime("%H:%M%p").downcase
end

#posted_on_short(date) ⇒ Object



7
8
9
# File 'app/helpers/help/issues_helper.rb', line 7

def posted_on_short(date)
  date.strftime("%B #{date.day.ordinalize}, %Y %H:%M") + date.strftime("%p").downcase
end