Skip to content

Commit

Permalink
fix: Close <small> tag in datetime helper
Browse files Browse the repository at this point in the history
  • Loading branch information
sman591 committed May 29, 2019
1 parent 1204516 commit 456b26a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/hackathon_manager_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def display_datetime(datetime, opts = {})
if Time.now - datetime < 5.hours
formatted << "#{time_ago_in_words(datetime, include_seconds: true)} ago"
else
format = datetime.year == Time.now.year ? "%b %-d <small>at %I:%M %P</span>" : "%b %-d, %Y <small>at %I:%M %P</small>"
format = datetime.year == Time.now.year ? "%b %-d <small>at %I:%M %P</small>" : "%b %-d, %Y <small>at %I:%M %P</small>"
if Time.now - datetime > 6.months
format = "%b %-d, %Y"
end
Expand Down

0 comments on commit 456b26a

Please sign in to comment.