989363f743
better i18n for contributed description
2013-02-12 11:45:54 -06:00
15b939f946
align homepage forms, phew
2013-02-11 23:28:05 -06:00
7c57a3a207
use grayscale to better illustrate deactivated species on items#show
2013-02-06 13:35:10 -06:00
923335b8da
localize blog posts
2013-02-06 10:59:25 -06:00
e71530a958
only show item zones on outfits#edit occupies filter helper
2013-02-05 11:52:52 -06:00
5d618237a9
fix bug in determining special color
...
Specifically, the Tyrannian Meerca Spear is a pb item that contains
"pea", so its item page is only willing to show a Pea Chia. Now,
a color must be a whole word in the item name for special color
determination to work.
2013-02-03 13:31:22 -06:00
7f2ce2839b
appearance dropdown - wow, that was easy
2013-01-31 19:46:34 -06:00
5985e234da
pet states know their localized description
2013-01-31 19:11:15 -06:00
9c6797699e
enable hangers in development, disable in production
2013-01-29 23:06:37 -06:00
934923b0f6
sigh. disable user filters again :(
2013-01-28 18:30:04 -06:00
629ff2c45d
index items by *actual* species support ids
2013-01-28 17:54:50 -06:00
2cc688f7ff
bump up pet load timeout
2013-01-28 17:52:10 -06:00
f59fa92aa1
oops, dont include duplicate items in wardrobe after translating
2013-01-28 17:02:33 -06:00
f484fc5c21
update supported species list on items#show
2013-01-28 16:54:25 -06:00
2486e46a25
re-enable user filters, woo
2013-01-28 16:25:00 -06:00
eab14e31fd
waaay speed up Pet#translate_items
...
A few key changes:
* Don't reload the whole pet 8 times!! Sooo many bad things
happen, including redundant lookups of everything else and
too many item saves and reindexes. Instead, fetch the item
data, apply it to the items, and then save the items (once
each!)
* Updated my branch of globalize3 to be even better at avoiding
redundant queries when saving. Woo.
* Last realization: wrapping all the item saves in a single
transaction works wonders. COMMIT seems to have high overhead,
so doing only one took it from 50ms * 10 or whatever to 60ms.
Good stuff.
2013-01-28 15:18:11 -06:00
4efcdaac49
re-enable item translations, now that i made a corresponding server config change
2013-01-28 13:11:28 -06:00
f7ae45e3e7
temporarily disable item translation
2013-01-28 03:30:43 -06:00
482b1a155d
ugh, fine, save the pets sequentially
2013-01-28 03:02:20 -06:00
206811a2fb
oops, deal with missing item fields better
2013-01-28 03:01:25 -06:00
0b32e8ba59
cut down on pets#load zone queries
2013-01-28 02:19:37 -06:00
a39110884d
cut down on pets#load queries
2013-01-28 02:10:25 -06:00
6c3ff09f5d
make en-MEEP translatable - because sorting by translations doesnt work well with fallbacks
2013-01-27 20:43:08 -06:00
8d72bf6353
temporarily disable user-filters in item search
2013-01-27 01:45:18 -06:00
895aef86c2
oops: only infer public locales from language header
2013-01-27 00:35:22 -06:00
eaf875c6c7
zone, species, color alphabetical by the current locale
...
We were joining to the translations table to sort records
alphabetically, but then it sorted by *all* of the translations in
some strange way. Now use with_translations to restrict the join
to the current locale.
2013-01-27 00:25:52 -06:00
1ef39f854c
localize outfits#_outfit
2013-01-26 12:42:38 -06:00
52fee4f0c9
localize outfits#edit wear/unwear/closet/uncloset
2013-01-26 11:58:16 -06:00
8c348d4535
localize outfits#edit search helpers
2013-01-26 11:11:42 -06:00
361b5df256
translate zones
2013-01-26 09:54:29 -06:00
e86bcfaf54
improve globalized search queries: normalize input, fallbacks, etc
2013-01-26 09:52:58 -06:00
2798ebbd5c
fix pb filter for other locales
2013-01-26 09:52:21 -06:00
8bb553701a
remove N+1 queries in contributions#index
2013-01-25 15:23:48 -06:00
573e8a6459
use I18n.with_locale wherever possible, since it catches errors properly
...
In particular, pet#load was handling locale-switching itself, but wasn't
switching back to original locale on error. We could've used a rescue
block, but, when I18n.with_locale is so cool, may as well use it fully.
2013-01-25 15:09:56 -06:00
4e0ce6c20b
bugfix: zone-not-found raises error again
2013-01-25 11:15:54 -06:00
e6d9e5ee75
stop removing "item" from zone plain labels: background vs. backgrounditem
2013-01-25 10:47:47 -06:00
d0dffd6cff
fix ClosetHanger.set_quantity to not call destroy on a new hanger; it confuses flex
2013-01-25 10:44:15 -06:00
7f18fe12c1
user:owns, user:wants queries
2013-01-25 10:35:35 -06:00
dd30fbe0d7
move from with_translations to includes(:translations), since we dont usually care about requiring
2013-01-24 18:26:00 -06:00
b2822d901b
fix n+1 query for translations on items#index
2013-01-24 18:26:00 -06:00
26ac3782ec
move zones to database
2013-01-24 18:26:00 -06:00
ce4e2fd53c
move species to database
2013-01-24 18:25:59 -06:00
965465ca51
move species to database
2013-01-24 18:25:59 -06:00
94ecc6f02d
remove old item search interface
2013-01-24 18:24:35 -06:00
332a7e67d8
update ItemsController to show new search errors properly
2013-01-24 18:24:35 -06:00
cded361f73
update item search to original name-matching behavior
...
We originally had a regression on name-matching, where, among
other issues, `straw hat` returned items containing both "straw"
and "hat", which isn't really helpful behavior since we're sorting
alphabetically. Now, `straw hat` behaves as expected.
Additionally, "phrases like these" behave as expected, too.
2013-01-24 18:24:35 -06:00
04f29c8611
allow non-item zones in queries (mainly for restricts filters)
2013-01-24 18:24:35 -06:00
66e0ba28d7
species/zone conditions now render properly, instead of raising parse error from elastic
2013-01-24 18:24:35 -06:00
6e09b8bc10
globalized search first draft
...
Confirmed features:
* Output (retrieval, sorting, etc.)
* Name (positive and negative, but new behavior)
* Flags (positive and negative)
Planned features:
* users:owns, user:wants
Known issues:
* Sets are broken
* Don't render properly
* Shouldn't actually be done as joined sets, anyway, since
we actually want (set1_zone1 OR set1_zone2) AND
(set2_zone1 OR set2_zone2), which will require breaking
it into multiple terms queries.
* Name has regressed: ignores phrases, doesn't require *all*
words. While we're breaking sets into multiple queries,
maybe we'll do something similar for name. In fact, we
really kinda have to if we're gonna keep sorting by name,
since "straw hat" returns all hats. Eww.
2013-01-24 18:24:35 -06:00
c9ae7155b1
locale metadata, including hidden locales for item loading and selection
2013-01-24 18:24:34 -06:00
ef2423e87f
globalize3 for items
2013-01-24 18:24:34 -06:00
1439e4a74c
canonical paths are always in english
2013-01-24 18:24:34 -06:00
29ed401238
load pet by locale, prepare needed translations
2013-01-24 18:24:34 -06:00
9c8f7f498f
basic translation infrastructure for items - search is still english-only, and probably will have to be replaced with a legit search engine
2013-01-24 18:24:34 -06:00
d79c225c1e
apply globalize3 to items
2013-01-24 18:24:34 -06:00
b22188fa4a
locale cookie should be long-term, not a session cookie
2013-01-24 18:24:33 -06:00
0f49d3ed02
simple locale dropdown in layouts#application
2013-01-24 18:24:33 -06:00
d96c54f3cc
infer locale from params, then cookies, then Accept-Language header
2013-01-24 18:23:21 -06:00
3b1ffe71a9
i18n for will_paginate, including dynamically in outfits#edit
2013-01-24 18:23:21 -06:00
34e99bba72
i18n for outfits/new.js
2013-01-24 18:23:21 -06:00
8b15d31639
i18n for pet_query.js
2013-01-24 18:23:21 -06:00
062f485598
i18n for pets#load flashes
2013-01-24 18:23:21 -06:00
e833179155
refactor outfits.new for hierarchy
2013-01-24 18:23:21 -06:00
e54e4c606c
oops, re-refactor closet_hangers.index.autocomplete, since markdown wraps it in a paragraph
2013-01-24 18:23:21 -06:00
82479315f0
refactor neopets_pages.new for twl
2013-01-24 18:23:21 -06:00
70ff4974a3
refactor items.show for hierarchy and twl
2013-01-24 18:23:21 -06:00
0cbdc30a15
refactor items.index for hierarchy and twl
2013-01-24 18:23:21 -06:00
4bf73b4285
refactor closet_lists.form hierarchy
2013-01-24 18:23:20 -06:00
1f1bfb3140
refactor closet_hangers.petpage.instructions to use twl
2013-01-24 18:23:20 -06:00
5935ed055d
refactor tmd helper, move closet_hangers#index autocomplete to markdown
2013-01-24 18:23:20 -06:00
7f2070e78e
refactor userbar contributions to use twl
2013-01-24 18:23:20 -06:00
3d8266951f
i18n for outfits/edit.js item partials: no-data-yet and icons
2013-01-24 18:23:20 -06:00
629e5c68a9
i18n for outfits/edit.js userbar message and outfit save errors
2013-01-24 18:23:20 -06:00
ec6c7b550d
i18n for outfits/edit.js sharing urls
2013-01-24 18:23:20 -06:00
2b1cb2fe7f
i18n for outfits#edit base template - dynamic content in outfits/edit.js still needs examined
2013-01-24 18:23:20 -06:00
b346bcc6d9
i18n for outfits#index - plus the translate_with_links helper, which can be used for refactoring other stuff
2013-01-24 18:23:20 -06:00
029373addd
i18n for outfits#destroy flashes
2013-01-24 18:23:20 -06:00
8c9dda37d5
i18n for closet_hangers#index search bar autocomplete
2013-01-24 18:23:20 -06:00
706fad0174
localize items#item_link cache
2013-01-24 18:23:20 -06:00
467fb24c42
i18n for closet_hangers#create, closet_hangers#destroy, closet_hangers#update, closet_hangers#update_quantities (flashes, largely intertwined)
2013-01-24 18:23:20 -06:00
e55d407d63
i18n for neopets_pages#create (flashes - holy snap, that was nasty)
2013-01-24 18:23:19 -06:00
0f52ba5b4e
i18n for neopets_users#create flashes
2013-01-24 18:23:19 -06:00
7bc255e9c8
i18n for users#index, users#update flashes
2013-01-24 18:23:19 -06:00
3c9e37f614
i18n for broken_image_reports#create flashes
2013-01-24 18:23:19 -06:00
99e3bba72f
i18n for closet icons
2013-01-24 18:23:19 -06:00
30cdbface5
i18n for closet_hangers#petpage and items#_item (NC icon)
2013-01-24 18:23:19 -06:00
b213f6d0ba
i18n for closet_hangers#index, closet_lists#edit, closet_lists#new, and maybe some more closet-related things - this was a biggie
2013-01-24 18:23:19 -06:00
c32425bc14
i18n for neopets_pages#new
2013-01-24 18:23:19 -06:00
5498a739f2
i18n for pets#bulk
2013-01-24 18:23:19 -06:00
9488a27916
i18n for neopets_users#new
2013-01-24 18:23:19 -06:00
ac0490dc1d
i18n for items#show (including javascripts/items/show.js)
2013-01-24 18:23:19 -06:00
b69793c008
i18n for contributions#index
2013-01-24 18:23:18 -06:00
5e89e2b947
i18n for items#index (and layouts#items)
2013-01-24 18:23:18 -06:00
34d919179a
i18n for broken_image_reports#new
2013-01-24 18:23:18 -06:00
1356fdaa0c
i18n for users#top_contributors
2013-01-24 18:23:18 -06:00
fea0b42a17
i18n for outfits#show
2013-01-24 18:23:18 -06:00
132a49d30b
i18n for outfits#new (and layouts#application), including caching
2013-01-24 18:23:18 -06:00
75be12fe2e
update fonts to use google web font api properly
2013-01-23 00:31:15 -06:00
bfd825d98e
attempt to fix new species_support_ids format. sigh.
2013-01-23 00:25:09 -06:00
9701221035
wardrobe now considers item.species_support_ids when deciding compatibility
...
For example, the Meerca Maid Tray is a foreground item, so the SWF is marked
as compatible with all body types, but the item itself is clearly marked as
Meercas-only. items#show reflected this properly, but the swf_assets#index
call that the wardrobe uses ignored item.species_support_ids.
So, /bodies/:body_id/swf_assets.json?item_ids[]=... was deprecated in favor
of /pet_types/:pet_type_id/items/swf_assets.json?item_ids=[]..., which is
much like the former route but, before loading assets, also loads the pet
type and items, then filters the items by compatibility, then only loads
assets for the compatible items.
2013-01-02 23:15:32 -05:00