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 %li.text-danger
%a{href: '#', tabindex: -1, data: { action: 'ab-question-destroy', q_id: q.id }} %a{href: '#', tabindex: -1, data: { action: 'ab-question-destroy', q_id: q.id }}
%i.fa.fa-trash-o %i.fa.fa-trash-o
Delete Question = t 'views.actions.delete'
- unless q.user == current_user - unless q.user == current_user
%li %li
%a{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: q.id }} %a{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: q.id }}
%i.fa.fa-exclamation-triangle %i.fa.fa-exclamation-triangle
Report = t 'views.actions.report'
%h6.media-heading.text-muted.answerbox--question-user %h6.media-heading.text-muted.answerbox--question-user
= user_screen_name q.user = raw t('views.answerbox.asked', user: user_screen_name(q.user), time: time_tooltip(q))
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
- if q.answer_count > 1 - if q.answer_count > 1
· ·
%a{href: show_user_question_path(q.user.screen_name, q.id)} %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 %p.answerbox--question-text
= q.content = q.content