From 16ec60aa192b30cce2d49d175b027059aba0d7f7 Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Wed, 27 May 2015 04:13:13 +0200 Subject: [PATCH] localize question --- app/views/shared/_question.html.haml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/app/views/shared/_question.html.haml b/app/views/shared/_question.html.haml index a34f9dc6..393fad72 100644 --- a/app/views/shared/_question.html.haml +++ b/app/views/shared/_question.html.haml @@ -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