Tweak timezone check and minor style tweaks

This commit is contained in:
Michael Ball 2020-07-29 22:16:34 -07:00
parent 2b598fb2d6
commit 7181b05a83
3 changed files with 4 additions and 4 deletions

View file

@ -189,8 +189,8 @@ module ApplicationHelper
end
# TODO:Snap!Con: Replace this with a search for a conference logo.
def nav_root_link_for(conference)
path = conference.try(:name) ? conference_path(conference) : root_path
def nav_root_link_for(conference = nil)
path = !conference.nil? ? conference_path(conference) : root_path
link_to(
image_tag('snapcon_logo.png'),
path,

View file

@ -24,6 +24,6 @@ module ConferenceHelper
def short_ticket_description(ticket)
return unless ticket.description
markdown(ticket.description&.split("\n").first&.strip)
markdown(ticket.description.split("\n").first&.strip)
end
end