i18n for broken_image_reports#new
This commit is contained in:
parent
1356fdaa0c
commit
34d919179a
5 changed files with 48 additions and 17 deletions
|
@ -154,6 +154,10 @@ module ApplicationHelper
|
||||||
%(<meta name="user-signed-in" content="#{user_signed_in?}">).html_safe
|
%(<meta name="user-signed-in" content="#{user_signed_in?}">).html_safe
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def labeled_time_ago_in_words(time)
|
||||||
|
content_tag :abbr, time_ago_in_words(time), :title => time
|
||||||
|
end
|
||||||
|
|
||||||
def title(value)
|
def title(value)
|
||||||
content_for :title, value
|
content_for :title, value
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,2 +1,11 @@
|
||||||
module BrokenImageReportsHelper
|
module BrokenImageReportsHelper
|
||||||
|
def format_converted_at(converted_at)
|
||||||
|
translate 'broken_image_reports.new.converted_at_html',
|
||||||
|
:converted_at_ago => labeled_time_ago_in_words(converted_at)
|
||||||
|
end
|
||||||
|
|
||||||
|
def format_reported_at(reported_at)
|
||||||
|
translate 'broken_image_reports.new.reported_at_html',
|
||||||
|
:reported_at_ago => labeled_time_ago_in_words(reported_at)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -1,13 +1,8 @@
|
||||||
- title 'Report broken image'
|
- title t('.title')
|
||||||
|
|
||||||
%p
|
%p= t '.explanation_html', :contact_link => mail_to(contact_email)
|
||||||
Thanks for helping us find broken image! Sometimes the converters don't get
|
|
||||||
things quite right, and sometimes that can be fixed by just trying the
|
|
||||||
conversion again. If reconversion doesn't seem to solve the issue, consider
|
|
||||||
sending us a bug report at #{mail_to 'webmaster@openneo.net'}. Thanks!
|
|
||||||
|
|
||||||
%p
|
%p= t '.call_to_action'
|
||||||
Which of these images looked broken? We'll put it in line for reconversion.
|
|
||||||
|
|
||||||
%ul#report-assets
|
%ul#report-assets
|
||||||
- @swf_assets.each do |swf_asset|
|
- @swf_assets.each do |swf_asset|
|
||||||
|
@ -17,16 +12,10 @@
|
||||||
= form_tag(:action => :create) do
|
= form_tag(:action => :create) do
|
||||||
= hidden_field_tag 'swf_asset_remote_id', swf_asset.remote_id
|
= hidden_field_tag 'swf_asset_remote_id', swf_asset.remote_id
|
||||||
= hidden_field_tag 'swf_asset_type', swf_asset.type
|
= hidden_field_tag 'swf_asset_type', swf_asset.type
|
||||||
= submit_tag 'Report as broken'
|
= submit_tag t('.submit')
|
||||||
|
|
||||||
- if swf_asset.converted_at?
|
- if swf_asset.converted_at?
|
||||||
%span.converted-at
|
%span.converted-at= format_converted_at(swf_asset.converted_at)
|
||||||
Converted
|
|
||||||
= time_ago_in_words swf_asset.converted_at
|
|
||||||
ago
|
|
||||||
- else
|
- else
|
||||||
%span.reported-broken-at
|
%span.reported-broken-at= format_reported_at(swf_asset.reported_broken_at)
|
||||||
Reported
|
|
||||||
= time_ago_in_words swf_asset.reported_broken_at
|
|
||||||
ago
|
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,20 @@ en-meep:
|
||||||
Images © 2000–%{year} Neopets, Inc. All Rights Reserved.
|
Images © 2000–%{year} Neopets, Inc. All Rights Reserved.
|
||||||
Used With Permission. Meep.
|
Used With Permission. Meep.
|
||||||
|
|
||||||
|
broken_image_reports:
|
||||||
|
new:
|
||||||
|
title: Meep broken image
|
||||||
|
explanation_html:
|
||||||
|
Thanks for helping us find broken meeps! Sometimes the meepits don't
|
||||||
|
get things quite right, and sometimes that can be meeped by just
|
||||||
|
meeping the conversion again. If reconversion doesn't seem to meep the
|
||||||
|
meep, consider sending us a meep at %{contact_link}. Meep!
|
||||||
|
call_to_action:
|
||||||
|
Which of these meeps looked meeped? We'll put it in line for remeeping.
|
||||||
|
submit: Meep as broken
|
||||||
|
converted_at_html: Conveeped %{converted_at_ago} ago
|
||||||
|
reported_at_html: Repeeped %{reported_at_ago} ago
|
||||||
|
|
||||||
outfits:
|
outfits:
|
||||||
new:
|
new:
|
||||||
tagline: Meeps made meepy!
|
tagline: Meeps made meepy!
|
||||||
|
|
|
@ -30,6 +30,21 @@ en:
|
||||||
Images © 2000–%{year} Neopets, Inc. All Rights Reserved.
|
Images © 2000–%{year} Neopets, Inc. All Rights Reserved.
|
||||||
Used With Permission
|
Used With Permission
|
||||||
|
|
||||||
|
broken_image_reports:
|
||||||
|
new:
|
||||||
|
title: Report broken image
|
||||||
|
explanation_html:
|
||||||
|
Thanks for helping us find broken images! Sometimes the converters
|
||||||
|
don't get things quite right, and sometimes that can be fixed by just
|
||||||
|
trying the conversion again. If reconversion doesn't seem to solve the
|
||||||
|
issue, consider sending us a bug report at %{contact_link}. Thanks!
|
||||||
|
call_to_action:
|
||||||
|
Which of these images looked broken?
|
||||||
|
We'll put it in line for reconversion.
|
||||||
|
submit: Report as broken
|
||||||
|
converted_at_html: Converted %{converted_at_ago} ago
|
||||||
|
reported_at_html: Reported %{reported_at_ago} ago
|
||||||
|
|
||||||
outfits:
|
outfits:
|
||||||
new:
|
new:
|
||||||
tagline: Neopets wearables made easy!
|
tagline: Neopets wearables made easy!
|
||||||
|
|
Loading…
Reference in a new issue