localize question

This commit is contained in:
pixeldesu 2015-05-27 04:13:13 +02:00
parent 75a7b393b9
commit 16ec60aa19
1 changed files with 4 additions and 9 deletions

View File

@ -16,22 +16,17 @@
%li.text-danger
%a{href: '#', tabindex: -1, data: { action: 'ab-question-destroy', q_id: q.id }}
%i.fa.fa-trash-o
Delete Question
= t 'views.actions.delete'
- unless q.user == current_user
%li
%a{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: q.id }}
%i.fa.fa-exclamation-triangle
Report
= t 'views.actions.report'
%h6.media-heading.text-muted.answerbox--question-user
= user_screen_name q.user
asked
%a{href: show_user_question_path(q.user.screen_name, q.id)}
%span{title: q.created_at, data: { toggle: :tooltip, placement: :bottom }}
= time_ago_in_words(q.created_at)
ago
= raw t('views.answerbox.asked', user: user_screen_name(q.user), time: time_tooltip(q))
- if q.answer_count > 1
·
%a{href: show_user_question_path(q.user.screen_name, q.id)}
#{q.answer_count} answers
= pluralize(q.answer_count, t('views.general.answer'))
%p.answerbox--question-text
= q.content