Skip to content

Instantly share code, notes, and snippets.

@pixeldesu
Created May 27, 2015 00:32
Show Gist options
  • Save pixeldesu/d5d5837fe4c875b4a774 to your computer and use it in GitHub Desktop.
Save pixeldesu/d5d5837fe4c875b4a774 to your computer and use it in GitHub Desktop.
THE LONGEST LINE OF HAML YOU WILL EVER SEE
= raw t('views.answerbox.question', user: user_screen_name(a.question.user, a.question.author_is_anonymous), time: (@user.nil? or a.question.author_is_anonymous) ? tooltip(time_ago_in_words(a.question.created_at), a.question.created_at, "bottom") : link_to(tooltip(time_ago_in_words(a.question.created_at), a.question.created_at, "bottom"),show_user_question_path(a.question.user.screen_name, a.question.id)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment