Skip to content

Commit 456b26a

Browse files
committed
fix: Close <small> tag in datetime helper
1 parent 1204516 commit 456b26a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/helpers/hackathon_manager_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def display_datetime(datetime, opts = {})
9696
if Time.now - datetime < 5.hours
9797
formatted << "#{time_ago_in_words(datetime, include_seconds: true)} ago"
9898
else
99-
format = datetime.year == Time.now.year ? "%b %-d <small>at %I:%M %P</span>" : "%b %-d, %Y <small>at %I:%M %P</small>"
99+
format = datetime.year == Time.now.year ? "%b %-d <small>at %I:%M %P</small>" : "%b %-d, %Y <small>at %I:%M %P</small>"
100100
if Time.now - datetime > 6.months
101101
format = "%b %-d, %Y"
102102
end

0 commit comments

Comments
 (0)