localize question_header and questionbox
This commit is contained in:
parent
16ec60aa19
commit
7a0be2519a
|
@ -17,12 +17,12 @@
|
||||||
%li.text-danger
|
%li.text-danger
|
||||||
%a{href: '#', tabindex: -1, data: { action: 'ab-question-destroy', q_id: question.id, redirect: if question.author_is_anonymous? then "/" else show_user_questions_path(question.user.screen_name) end }}
|
%a{href: '#', tabindex: -1, data: { action: 'ab-question-destroy', q_id: question.id, redirect: if question.author_is_anonymous? then "/" else show_user_questions_path(question.user.screen_name) end }}
|
||||||
%i.fa.fa-trash-o
|
%i.fa.fa-trash-o
|
||||||
Delete Question
|
= t 'views.actions.delete'
|
||||||
- unless question.user == current_user
|
- unless question.user == current_user
|
||||||
%li
|
%li
|
||||||
%a{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: question.id }}
|
%a{href: '#', tabindex: -1, data: { action: 'ab-question-report', q_id: question.id }}
|
||||||
%i.fa.fa-exclamation-triangle
|
%i.fa.fa-exclamation-triangle
|
||||||
Report
|
= t 'views.actions.report'
|
||||||
%h6.text-muted.media-heading.answerbox--question-user
|
%h6.text-muted.media-heading.answerbox--question-user
|
||||||
= user_screen_name question.user, question.author_is_anonymous, !hidden
|
= user_screen_name question.user, question.author_is_anonymous, !hidden
|
||||||
- unless hidden
|
- unless hidden
|
||||||
|
|
|
@ -2,14 +2,14 @@
|
||||||
.panel-heading
|
.panel-heading
|
||||||
%h3.panel-title
|
%h3.panel-title
|
||||||
- if @user.motivation_header.blank?
|
- if @user.motivation_header.blank?
|
||||||
Ask something!
|
= t 'views.questionbox.title'
|
||||||
- else
|
- else
|
||||||
= @user.motivation_header
|
= @user.motivation_header
|
||||||
.panel-body
|
.panel-body
|
||||||
- if @user.banned?
|
- if @user.banned?
|
||||||
.row
|
.row
|
||||||
.col-xs-12.text-center
|
.col-xs-12.text-center
|
||||||
%strong This user got hit with ye olde banhammer.
|
%strong= t 'views.questionbox.banned'
|
||||||
- else
|
- else
|
||||||
- if user_signed_in? or @user.privacy_allow_anonymous_questions?
|
- if user_signed_in? or @user.privacy_allow_anonymous_questions?
|
||||||
#question-box
|
#question-box
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
- if user_signed_in?
|
- if user_signed_in?
|
||||||
- if @user.privacy_allow_anonymous_questions?
|
- if @user.privacy_allow_anonymous_questions?
|
||||||
%input{:name => "qb-anonymous", :type => "checkbox"}/
|
%input{:name => "qb-anonymous", :type => "checkbox"}/
|
||||||
Hide your name
|
= t 'views.actions.anonymous'
|
||||||
%br/
|
%br/
|
||||||
- else
|
- else
|
||||||
%input{:name => "qb-anonymous", :type => "hidden", :value => "false"}/
|
%input{:name => "qb-anonymous", :type => "hidden", :value => "false"}/
|
||||||
|
@ -34,24 +34,18 @@
|
||||||
#question-box-promote.row{:style => "display: none;"}
|
#question-box-promote.row{:style => "display: none;"}
|
||||||
.row
|
.row
|
||||||
.col-xs-12.text-center
|
.col-xs-12.text-center
|
||||||
%strong Your question has been sent.
|
%strong= t 'views.questionbox.promote.message'
|
||||||
.row
|
.row
|
||||||
.col-sm-1
|
.col-sm-1
|
||||||
.col-sm-5
|
.col-sm-5
|
||||||
%button#create-account.btn.btn-block.btn-primary Create an account
|
%button#create-account.btn.btn-block.btn-primary= t 'views.questionbox.promote.create'
|
||||||
.col-sm-5
|
.col-sm-5
|
||||||
%button#new-question.btn.btn-block.btn-default Ask another question
|
%button#new-question.btn.btn-block.btn-default= t 'views.questionbox.promote.another'
|
||||||
.col-sm-1
|
.col-sm-1
|
||||||
.row
|
.row
|
||||||
.col-sm-1
|
.col-sm-1
|
||||||
.col-xs-12.col-sm-10
|
.col-xs-12.col-sm-10.text-center
|
||||||
%small
|
%small= t('views.questionbox.promote.join', app_title: APP_CONFIG['site_name'])
|
||||||
Join
|
|
||||||
= APP_CONFIG['site_name']
|
|
||||||
today! You'll be able to follow and ask people you know and a lot more.
|
|
||||||
.col-sm-1
|
.col-sm-1
|
||||||
- else
|
- else
|
||||||
%p
|
%p= raw t 'views.questionbox.required', signup: link_to(t('views.sessions.new'),new_user_registration_path)
|
||||||
This user does not want to get asked by strangers. Why don't you
|
|
||||||
= succeed "?" do
|
|
||||||
%a{:href => "{{ url_for('register') }}"} sign up
|
|
|
@ -29,6 +29,7 @@ en:
|
||||||
follower: "follower"
|
follower: "follower"
|
||||||
following: "following"
|
following: "following"
|
||||||
actions:
|
actions:
|
||||||
|
anonymous: "Hide your name"
|
||||||
delete: "Delete"
|
delete: "Delete"
|
||||||
report: "Report"
|
report: "Report"
|
||||||
return: "Return to Inbox"
|
return: "Return to Inbox"
|
||||||
|
@ -121,4 +122,13 @@ en:
|
||||||
no_smile: "No one smiled this, yet."
|
no_smile: "No one smiled this, yet."
|
||||||
no_comment: "There are no comments yet."
|
no_comment: "There are no comments yet."
|
||||||
commentsmile: "People who smiled this comment"
|
commentsmile: "People who smiled this comment"
|
||||||
|
questionbox:
|
||||||
|
title: "Ask something!"
|
||||||
|
banned: "This user got hit with ye olde banhammer."
|
||||||
|
required: "This user does not want to get asked by strangers. Why don't you %{signup}?"
|
||||||
|
promote:
|
||||||
|
message: "Your question has been sent."
|
||||||
|
create: "Create an account"
|
||||||
|
another: "Ask another question"
|
||||||
|
join: "Join %{app_title} today! You'll be able to follow and ask people you know and a lot more."
|
||||||
hello: "Hello world"
|
hello: "Hello world"
|
||||||
|
|
Loading…
Reference in New Issue