mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 14:19:53 +01:00
Fix asked header in question and answerbox
This commit is contained in:
parent
842d9faa3f
commit
2a8711e7db
4 changed files with 4 additions and 4 deletions
|
@ -25,7 +25,7 @@
|
|||
%h6.text-muted.media-heading.answerbox__question-user
|
||||
- if a.question.author_is_anonymous
|
||||
%i.fa.fa-user-secret{ title: t(".anon_hint") }
|
||||
= raw t(".asked", user: user_screen_name(a.question.user, context_user: a.user, author_identifier: a.question.author_is_anonymous ? a.question.author_identifier: nil), time: time_tooltip(a.question))
|
||||
= t(".asked_html", user: user_screen_name(a.question.user, context_user: a.user, author_identifier: a.question.author_is_anonymous ? a.question.author_identifier: nil), time: time_tooltip(a.question))
|
||||
- if !a.question.author_is_anonymous && !a.question.direct
|
||||
·
|
||||
%a{ href: question_path(a.question.user.screen_name, a.question.id) }
|
||||
|
|
|
@ -34,5 +34,5 @@
|
|||
- if hidden
|
||||
= user_screen_name question.user, author_identifier: identifier, url: false
|
||||
- else
|
||||
= raw t("answerbox.header.asked", user: user_screen_name(question.user, author_identifier: identifier), time: time_tooltip(question))
|
||||
= t("answerbox.header.asked_html", user: user_screen_name(question.user, author_identifier: identifier), time: time_tooltip(question))
|
||||
.answerbox__question-text= question_markdown question.content
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
%i.fa.fa-gears
|
||||
= t("voc.view_in_rails_admin")
|
||||
%h6.media-heading.text-muted.answerbox__question-user
|
||||
= raw t('answerbox.header.asked', user: user_screen_name(q.user), time: time_tooltip(q))
|
||||
= t("answerbox.header.asked_html", user: user_screen_name(q.user), time: time_tooltip(q))
|
||||
- if q.answer_count > 1
|
||||
·
|
||||
%a{ href: question_path(q.user.screen_name, q.id) }
|
||||
|
|
|
@ -85,7 +85,7 @@ en:
|
|||
zero: "0 answers"
|
||||
one: "1 answer"
|
||||
other: "%{count} answers"
|
||||
asked: "%{user} asked %{time} ago"
|
||||
asked_html: "%{user} asked %{time} ago"
|
||||
actions:
|
||||
share:
|
||||
title: "Share"
|
||||
|
|
Loading…
Reference in a new issue