1
0
Fork 0
forked from OpenNeo/impress

i18n for closet_hangers#petpage and items#_item (NC icon)

This commit is contained in:
Emi Matchu 2013-01-01 22:10:49 -05:00
parent b213f6d0ba
commit 30cdbface5
8 changed files with 71 additions and 34 deletions

View file

@ -75,8 +75,8 @@ module ItemsHelper
end end
def nc_icon def nc_icon
image_tag 'nc.png', :title => 'NC Mall Item', :alt => 'NC', image_tag 'nc.png', :title => t('items.item.nc.description'),
:class => 'nc-icon' :alt => t('items.item.nc.abbr'), :class => 'nc-icon'
end end
def nc_icon_for(item) def nc_icon_for(item)

View file

@ -19,7 +19,6 @@ body.closet_hangers-petpage
h4 h4
+inline-block +inline-block
width: 8em
vertical-align: middle vertical-align: middle
&::after &::after

View file

@ -77,7 +77,7 @@
- [true, false].each do |owned| - [true, false].each do |owned|
- lists = lists_by_owned[owned] - lists = lists_by_owned[owned]
- if lists || unlisted_hangers_by_owned[owned] - if lists || unlisted_hangers_by_owned[owned]
%h2.dti-item-group-header Items #OWNER #{ClosetHanger.verb(:someone, owned)} %h2.dti-item-group-header= closet_lists_group_name '#OWNER', true
%ul.dti-item-group %ul.dti-item-group
- if lists - if lists
- lists.each do |list| - lists.each do |list|
@ -92,10 +92,9 @@
- if unlisted_hangers_by_owned[owned] - if unlisted_hangers_by_owned[owned]
%li.dti-unlisted-items %li.dti-unlisted-items
- unless lists.blank? - unless lists.blank?
%h3 (Not in a list) %h3= t '.unlisted_header'
%div %div
= render_batched_petpage_hangers(unlisted_hangers_by_owned[owned]) = render_batched_petpage_hangers(unlisted_hangers_by_owned[owned])
#dti-item-footer #dti-item-footer= t '.footer'
I made this list on Dress to Impress. You can, too!

View file

@ -1,6 +1,7 @@
%div.dti-item %div.dti-item
= image_tag petpage_item_thumbnail_url(hanger.item), :alt => nil, :class => 'dti-item-thumbnail' = image_tag petpage_item_thumbnail_url(hanger.item), :alt => nil, :class => 'dti-item-thumbnail'
- if hanger.item.nc? - if hanger.item.nc?
= image_tag nc_icon_url, :alt => 'NC', :class => 'dti-item-nc', :title => 'This is an NC Mall item' = image_tag nc_icon_url, :alt => t('items.item.nc.abbr'),
:class => 'dti-item-nc', :title => t('items.item.nc.description')
%span= petpage_item_name hanger.item %span= petpage_item_name hanger.item

View file

@ -1,25 +1,18 @@
- title 'Export to petpage' - title t('.title')
- secondary_nav do - secondary_nav do
= link_to 'Back to Your Items', user_closet_hangers_path(current_user), :class => 'button' = link_to t('.your_items_link'), user_closet_hangers_path(current_user), :class => 'button'
#intro #intro
%p %p= t '.description'
We took your public lists and created a nice, simple HTML file for your %p= t '.instructions_html',
Neopet's petpage. By default it's styled as a table, but it doesn't have to :edit_petpage_link => link_to(t('.instructions_edit_petpage_link_content'),
be. The HTML is flexible, so, if you're the artsy type, you're free to mess 'http://www.neopets.com/edithomepage.phtml')
with the styles all you want!
%p
Copy the HTML from the box below, then paste it into
= succeed '.' do
= link_to "your pet's page", 'http://www.neopets.com/edithomepage.phtml'
Then head to the Neoboards to show off! Have fun!
= form_tag petpage_user_closet_hangers_path(@user), :method => :get, :id => 'petpage-closet-lists' do = form_tag petpage_user_closet_hangers_path(@user), :method => :get, :id => 'petpage-closet-lists' do
= hidden_field_tag 'filter', '1' = hidden_field_tag 'filter', '1'
- @closet_lists_by_owned.each do |owned, closet_lists| - @closet_lists_by_owned.each do |owned, closet_lists|
%div %div
%h4 Items you #{closet_list_verb(owned)} %h4= closet_lists_group_name(:you, owned)
%ul %ul
- closet_lists.each do |closet_list| - closet_lists.each do |closet_list|
%li %li
@ -29,8 +22,8 @@
%li.unlisted %li.unlisted
= label_tag do = label_tag do
= check_box_tag "groups[#{owned}]", '1', petpage_group_checked(owned) = check_box_tag "groups[#{owned}]", '1', petpage_group_checked(owned)
Not in a list = t 'closet_lists.unlisted_name'
= submit_tag 'Export checked lists to petpage' = submit_tag t('.submit')
%textarea#petpage-output %textarea#petpage-output
= '' + render('petpage_content', = '' + render('petpage_content',

View file

@ -91,6 +91,24 @@ en-meep:
header: (Not in a meepit) header: (Not in a meepit)
empty: There aren't any meepits here. empty: There aren't any meepits here.
petpage:
title: Export to meeppage
your_items_link: Back to Your Meeps
submit: Export meeped lists to meeppage
description:
We took your public lists and meeped a nice, simple HTML file for your
Neopet's petpage. By default it's meeped as a table, but it doesn't
have to meep. The HTML is flexible, so, if you're the artsy type, you're
free to meep with the styles all you want!
instructions_html:
Meep the HTML from the box below, then paste it into
%{edit_petpage_link}. Then meep to the Neoboards to show off! Have fun!
instructions_edit_petpage_link_content: your meepit's page
petpage_content:
unlisted_header: (Not in a meep)
footer: I meeped this list on Dreep to Impreep. You can, too!
visibility: visibility:
private: private:
name: Preevate name: Preevate
@ -202,6 +220,11 @@ en-meep:
newest_items_header: New Meeps newest_items_header: New Meeps
species_search_header: Can't decide? Meep by species species_search_header: Can't decide? Meep by species
item:
nc:
abbr: MC
description: This is a MC Meep item
show: show:
rarity: Meepity rarity: Meepity
jn_items: JN Meepits jn_items: JN Meepits

View file

@ -92,6 +92,24 @@ en:
header: (Not in a list) header: (Not in a list)
empty: There aren't any items here. empty: There aren't any items here.
petpage:
title: Export to petpage
your_items_link: Back to Your Items
submit: Export checked lists to petpage
description:
We took your public lists and created a nice, simple HTML file for your
Neopet's petpage. By default it's styled as a table, but it doesn't
have to be. The HTML is flexible, so, if you're the artsy type, you're
free to mess with the styles all you want!
instructions_html:
Copy the HTML from the box below, then paste it into
%{edit_petpage_link}. Then head to the Neoboards to show off! Have fun!
instructions_edit_petpage_link_content: your pet's page
petpage_content:
unlisted_header: (Not in a list)
footer: I made this list on Dress to Impress. You can, too!
visibility: visibility:
private: private:
name: Private name: Private
@ -203,6 +221,11 @@ en:
newest_items_header: Newest items newest_items_header: Newest items
species_search_header: Can't decide? Search by species species_search_header: Can't decide? Search by species
item:
nc:
abbr: NC
description: This is an NC Mall item
show: show:
rarity: Rarity rarity: Rarity
jn_items: JN Items jn_items: JN Items

View file

@ -1332,24 +1332,23 @@ body.closet_hangers-petpage #petpage-closet-lists h4 {
display: inline-block; display: inline-block;
vertical-align: middle; vertical-align: middle;
*vertical-align: auto; *vertical-align: auto;
width: 8em;
vertical-align: middle; vertical-align: middle;
} }
/* line 7, ../../../../../../.rvm/gems/ruby-1.9.3-p362/gems/compass-0.10.6/frameworks/compass/stylesheets/compass/css3/_inline-block.scss */ /* line 7, ../../../../../../.rvm/gems/ruby-1.9.3-p362/gems/compass-0.10.6/frameworks/compass/stylesheets/compass/css3/_inline-block.scss */
body.closet_hangers-petpage #petpage-closet-lists h4 { body.closet_hangers-petpage #petpage-closet-lists h4 {
*display: inline; *display: inline;
} }
/* line 25, ../../../app/stylesheets/closet_hangers/_petpage.sass */ /* line 24, ../../../app/stylesheets/closet_hangers/_petpage.sass */
body.closet_hangers-petpage #petpage-closet-lists h4::after { body.closet_hangers-petpage #petpage-closet-lists h4::after {
content: ":"; content: ":";
} }
/* line 28, ../../../app/stylesheets/closet_hangers/_petpage.sass */ /* line 27, ../../../app/stylesheets/closet_hangers/_petpage.sass */
body.closet_hangers-petpage #petpage-closet-lists ul { body.closet_hangers-petpage #petpage-closet-lists ul {
list-style: none; list-style: none;
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
/* line 33, ../../../app/stylesheets/closet_hangers/_petpage.sass */ /* line 32, ../../../app/stylesheets/closet_hangers/_petpage.sass */
body.closet_hangers-petpage #petpage-closet-lists ul li { body.closet_hangers-petpage #petpage-closet-lists ul li {
display: -moz-inline-box; display: -moz-inline-box;
-moz-box-orient: vertical; -moz-box-orient: vertical;
@ -1364,11 +1363,11 @@ body.closet_hangers-petpage #petpage-closet-lists ul li {
body.closet_hangers-petpage #petpage-closet-lists ul li { body.closet_hangers-petpage #petpage-closet-lists ul li {
*display: inline; *display: inline;
} }
/* line 39, ../../../app/stylesheets/closet_hangers/_petpage.sass */ /* line 38, ../../../app/stylesheets/closet_hangers/_petpage.sass */
body.closet_hangers-petpage #petpage-closet-lists ul li label { body.closet_hangers-petpage #petpage-closet-lists ul li label {
padding: 0.25em 0.75em 0.25em 0.25em; padding: 0.25em 0.75em 0.25em 0.25em;
} }
/* line 42, ../../../app/stylesheets/closet_hangers/_petpage.sass */ /* line 41, ../../../app/stylesheets/closet_hangers/_petpage.sass */
body.closet_hangers-petpage #petpage-closet-lists ul li.checked { body.closet_hangers-petpage #petpage-closet-lists ul li.checked {
background: #eeffee; background: #eeffee;
-moz-border-radius: 3px; -moz-border-radius: 3px;
@ -1380,15 +1379,15 @@ body.closet_hangers-petpage #petpage-closet-lists ul li.checked {
border: 1px solid #006600; border: 1px solid #006600;
padding: 0; padding: 0;
} }
/* line 48, ../../../app/stylesheets/closet_hangers/_petpage.sass */ /* line 47, ../../../app/stylesheets/closet_hangers/_petpage.sass */
body.closet_hangers-petpage #petpage-closet-lists ul li.unlisted { body.closet_hangers-petpage #petpage-closet-lists ul li.unlisted {
font-style: italic; font-style: italic;
} }
/* line 51, ../../../app/stylesheets/closet_hangers/_petpage.sass */ /* line 50, ../../../app/stylesheets/closet_hangers/_petpage.sass */
body.closet_hangers-petpage #petpage-closet-lists input[type=submit] { body.closet_hangers-petpage #petpage-closet-lists input[type=submit] {
float: right; float: right;
} }
/* line 54, ../../../app/stylesheets/closet_hangers/_petpage.sass */ /* line 53, ../../../app/stylesheets/closet_hangers/_petpage.sass */
body.closet_hangers-petpage #petpage-output { body.closet_hangers-petpage #petpage-output {
display: block; display: block;
height: 30em; height: 30em;