2010-11-30 13:52:38 -08:00
|
|
|
- hide_home_link
|
2011-07-01 12:38:13 -07:00
|
|
|
|
2015-02-25 11:49:18 -08:00
|
|
|
= advertise_campaign_progress @campaign
|
2011-07-01 12:38:13 -07:00
|
|
|
|
2014-04-04 13:53:53 -07:00
|
|
|
%p#pet-not-found.alert= t 'pets.load.not_found'
|
|
|
|
|
2024-03-13 12:20:38 -07:00
|
|
|
%section.neopass-announcement
|
2024-04-27 14:19:27 -07:00
|
|
|
= image_tag "about/neopass-survey.png", width: 70, height: 70,
|
|
|
|
srcset: {"about/neopass-survey@2x.png": "2x"},
|
2024-03-13 12:20:38 -07:00
|
|
|
class: "neopass-thumbnail"
|
|
|
|
.neopass-content
|
|
|
|
%p
|
|
|
|
%strong
|
2024-04-27 14:19:27 -07:00
|
|
|
💭 Can you help us and TNT decide what to build next with NeoPass?
|
|
|
|
|
|
|
|
%p
|
2024-04-12 07:22:25 -07:00
|
|
|
- if user_signed_in?
|
|
|
|
- if current_user.uses_neopass?
|
2024-04-27 14:19:27 -07:00
|
|
|
= link_to "Login with NeoPass", about_neopass_path
|
|
|
|
is ready—and you're already on it, thank you! 🥰
|
2024-04-12 07:22:25 -07:00
|
|
|
- else
|
2024-04-27 14:19:27 -07:00
|
|
|
= link_to "Login with NeoPass", about_neopass_path
|
|
|
|
is ready! You can connect via the
|
2024-04-12 07:22:25 -07:00
|
|
|
#{link_to "Settings page", edit_auth_user_path}.
|
|
|
|
- else
|
2024-04-27 14:19:27 -07:00
|
|
|
= link_to "Login with NeoPass", about_neopass_path
|
|
|
|
is ready! If you're new to Dress to Impress, try logging in right now!!
|
|
|
|
🎉
|
2024-04-12 07:22:25 -07:00
|
|
|
|
2024-03-13 12:20:38 -07:00
|
|
|
%p
|
2024-04-27 14:19:27 -07:00
|
|
|
Now that we've built the foundation, TNT are looking for our help deciding what integration to build
|
|
|
|
next.
|
|
|
|
= link_to "Would you fill out this survey for us, please?",
|
|
|
|
"https://docs.google.com/forms/d/e/1FAIpQLSdyi7bZB3-gyztdOVSmikRrfts6KM5mK2r37D0SBla3JO3GbQ/viewform"
|
|
|
|
We've got some ideas, and we're looking for more! Even if you don't use
|
|
|
|
NeoPass yet, your input would be <em>super</em> useful.
|
2024-03-13 12:20:38 -07:00
|
|
|
|
2024-04-11 11:40:16 -07:00
|
|
|
%p
|
2024-04-27 14:19:27 -07:00
|
|
|
Thanks again to everyone for helping us out! We're grateful, as always 💖
|
2024-04-11 11:40:16 -07:00
|
|
|
%br
|
2024-04-12 07:22:25 -07:00
|
|
|
%em —Matchu
|
2024-04-11 07:29:01 -07:00
|
|
|
|
2010-11-05 15:45:05 -07:00
|
|
|
#outfit-forms
|
2012-12-29 22:46:36 -08:00
|
|
|
- localized_cache :action_suffix => 'outfit_forms_intro' do
|
2010-12-11 06:37:39 -08:00
|
|
|
#pet-preview
|
|
|
|
= image_tag 'default_preview.png', :alt => ''
|
|
|
|
%span
|
2012-12-29 22:46:36 -08:00
|
|
|
%h1= t 'app_name'
|
|
|
|
%h2= t '.tagline'
|
2014-09-17 20:47:29 -07:00
|
|
|
|
2023-10-12 22:30:16 -07:00
|
|
|
= form_tag load_pet_path, method: 'POST', class: 'primary load-pet-to-wardrobe' do
|
|
|
|
= hidden_field_tag 'destination', 'wardrobe'
|
|
|
|
%fieldset
|
|
|
|
%legend= t '.load_pet'
|
|
|
|
= pet_name_tag class: 'main-pet-name'
|
|
|
|
%button{:type => "submit"}
|
|
|
|
= t '.submit.primary'
|
|
|
|
|
|
|
|
= form_tag wardrobe_path, method: 'GET', class: 'secondary start-from-scratch', authenticity_token: false do
|
|
|
|
%fieldset
|
|
|
|
%legend= t '.start_from_scratch'
|
|
|
|
= pet_attribute_select 'color', @colors, 8
|
|
|
|
= pet_attribute_select 'species', @species
|
|
|
|
%button{:type => "submit"}
|
|
|
|
= t('.submit.secondary')
|
2011-07-01 12:38:13 -07:00
|
|
|
|
2012-08-07 14:32:51 -07:00
|
|
|
%ul#sections
|
2012-12-29 22:46:36 -08:00
|
|
|
- localized_cache :action_suffix => 'your_items_module' do
|
2011-07-31 19:55:29 -07:00
|
|
|
%li#your-items-module
|
2011-07-31 15:45:53 -07:00
|
|
|
= link_to image_tag('your_items.png'), your_items_path
|
2012-12-29 22:46:36 -08:00
|
|
|
%h3= link_to t('your_items'), your_items_path
|
2010-12-11 06:37:39 -08:00
|
|
|
%div
|
2013-01-09 16:40:35 -08:00
|
|
|
%h4= t '.your_items.tagline'
|
|
|
|
%p= t '.your_items.description'
|
2011-08-05 08:28:11 -07:00
|
|
|
= form_tag users_path, :method => 'get' do
|
2012-12-29 22:46:36 -08:00
|
|
|
= text_field_tag 'name', '', :type => 'search',
|
2013-01-09 16:40:35 -08:00
|
|
|
:placeholder => t('.your_items.user_search.placeholder')
|
|
|
|
= submit_tag t('.your_items.user_search.submit')
|
2011-07-31 15:45:53 -07:00
|
|
|
|
2012-12-29 22:46:36 -08:00
|
|
|
- localized_cache :action_suffix => 'infinite_closet_module' do
|
2010-12-11 06:37:39 -08:00
|
|
|
%li
|
2012-12-29 22:46:36 -08:00
|
|
|
= link_to image_tag('items.png'), items_path
|
|
|
|
%h3= link_to t('infinite_closet'), items_path
|
2010-12-11 06:37:39 -08:00
|
|
|
%div
|
2013-01-09 16:40:35 -08:00
|
|
|
%h4= t '.infinite_closet.tagline'
|
|
|
|
%p= t '.infinite_closet.description'
|
2010-12-11 06:37:39 -08:00
|
|
|
= form_tag items_path, :method => 'get' do
|
2012-12-29 22:46:36 -08:00
|
|
|
= text_field_tag 'q', '', :type => 'search',
|
2013-01-09 16:40:35 -08:00
|
|
|
:placeholder => t('.infinite_closet.item_search.placeholder')
|
|
|
|
= submit_tag t('.infinite_closet.item_search.submit')
|
2012-08-01 12:11:08 -07:00
|
|
|
|
2012-08-07 14:32:51 -07:00
|
|
|
%li
|
2012-12-29 22:46:36 -08:00
|
|
|
= link_to bulk_pets_path do
|
2023-10-25 15:16:46 -07:00
|
|
|
= image_tag 'https://images.neopets.com/items/mall_ac_garland_spotlight.gif'
|
2012-12-29 22:46:36 -08:00
|
|
|
%h3= link_to t('modeling_hub'), bulk_pets_path
|
2012-08-07 14:32:51 -07:00
|
|
|
%div
|
2013-01-09 16:40:35 -08:00
|
|
|
%h4= t '.modeling_hub.tagline'
|
|
|
|
%p= t '.modeling_hub.description'
|
2023-10-12 22:30:16 -07:00
|
|
|
= form_tag load_pet_path, method: 'POST' do
|
2014-04-16 09:11:15 -07:00
|
|
|
= pet_name_tag placeholder: t('.modeling_hub.load_pet.placeholder'),
|
|
|
|
required: true
|
2013-01-09 16:40:35 -08:00
|
|
|
= submit_tag t('.modeling_hub.load_pet.submit')
|
2012-08-01 12:11:08 -07:00
|
|
|
|
2023-08-02 12:04:09 -07:00
|
|
|
- if @latest_contribution # will be nil for a fresh copy of the site ;P
|
|
|
|
#latest-contribution
|
|
|
|
= link_to t('.latest_contribution.header'), contributions_path, :id => 'recent-contributions-link'
|
|
|
|
= latest_contribution_description(@latest_contribution)
|
|
|
|
%abbr#latest-contribution-created-at{:title => @latest_contribution.created_at.getutc.iso8601}
|
2012-08-01 12:11:08 -07:00
|
|
|
|
Update missing body ID prediction to handle, say, the Maraquan Mynci.
It turns out that some pets for seemingly nonstandard colors have the
standard body type anyway, and vice-versa. This implies that we should
stop relying on a color's standardness, but, for the time being, we've
just revised the prediction model:
Old model:
* If I see a body_id, I find the corresponding color_ids, and it's wearable
by all pet types with those color_ids.
New model:
* If I see a body_id,
* If it also belongs to a basic pet type, it's a standard body ID.
* It therefore fits all pet types of standard color (if there's
more than one body ID modeled already). (Not really,
because of weird exceptions like Orange Chia. Should that be
standard or not?)
* If it doesn't also belong to a basic pet type, it's a nonstandard
body ID.
* It therefore only belongs to one color, and therefore the item
fits all pet types of the same color.
2014-01-20 13:29:01 -08:00
|
|
|
#whats-new
|
|
|
|
- if @newest_unmodeled_items.present?
|
|
|
|
%h3= t '.newest_items.unmodeled.header'
|
|
|
|
%ul#newest-unmodeled-items
|
|
|
|
- @newest_unmodeled_items.each do |item|
|
|
|
|
- localized_cache "items/#{item.id} modeling_progress updated_at=#{item.updated_at.to_i}" do
|
|
|
|
%li{'data-item-id' => item.id}
|
2023-11-11 08:24:08 -08:00
|
|
|
= link_to image_tag(item.thumbnail_url), item, :class => 'image-link'
|
Update missing body ID prediction to handle, say, the Maraquan Mynci.
It turns out that some pets for seemingly nonstandard colors have the
standard body type anyway, and vice-versa. This implies that we should
stop relying on a color's standardness, but, for the time being, we've
just revised the prediction model:
Old model:
* If I see a body_id, I find the corresponding color_ids, and it's wearable
by all pet types with those color_ids.
New model:
* If I see a body_id,
* If it also belongs to a basic pet type, it's a standard body ID.
* It therefore fits all pet types of standard color (if there's
more than one body ID modeled already). (Not really,
because of weird exceptions like Orange Chia. Should that be
standard or not?)
* If it doesn't also belong to a basic pet type, it's a nonstandard
body ID.
* It therefore only belongs to one color, and therefore the item
fits all pet types of the same color.
2014-01-20 13:29:01 -08:00
|
|
|
= link_to item, :class => 'header' do
|
|
|
|
%h2= item.name
|
|
|
|
%span.meter{style: "width: #{@newest_unmodeled_items_predicted_modeled_ratio[item]*100}%"}
|
|
|
|
.missing-bodies
|
|
|
|
= render_predicted_missing_species_by_color(@newest_unmodeled_items_predicted_missing_species_by_color[item])
|
|
|
|
.models
|
|
|
|
- if @newest_modeled_items.present?
|
|
|
|
%h3= t '.newest_items.modeled.header'
|
|
|
|
%ul#newest-modeled-items
|
|
|
|
- @newest_modeled_items.each do |item|
|
|
|
|
%li.object
|
|
|
|
= link_to item, title: item.name, alt: item.name do
|
2023-11-11 08:24:08 -08:00
|
|
|
= image_tag item.thumbnail_url
|
Update missing body ID prediction to handle, say, the Maraquan Mynci.
It turns out that some pets for seemingly nonstandard colors have the
standard body type anyway, and vice-versa. This implies that we should
stop relying on a color's standardness, but, for the time being, we've
just revised the prediction model:
Old model:
* If I see a body_id, I find the corresponding color_ids, and it's wearable
by all pet types with those color_ids.
New model:
* If I see a body_id,
* If it also belongs to a basic pet type, it's a standard body ID.
* It therefore fits all pet types of standard color (if there's
more than one body ID modeled already). (Not really,
because of weird exceptions like Orange Chia. Should that be
standard or not?)
* If it doesn't also belong to a basic pet type, it's a nonstandard
body ID.
* It therefore only belongs to one color, and therefore the item
fits all pet types of the same color.
2014-01-20 13:29:01 -08:00
|
|
|
= nc_icon_for(item)
|
2013-12-13 18:54:02 -08:00
|
|
|
|
2012-08-01 12:11:08 -07:00
|
|
|
|
2013-01-10 16:24:12 -08:00
|
|
|
- localized_cache :action_suffix => 'templates' do
|
2013-01-10 14:47:46 -08:00
|
|
|
%script#pet-query-notice-template{:type => 'text/x-jquery-tmpl'}
|
2023-08-06 17:33:57 -07:00
|
|
|
.notice
|
2013-01-10 14:47:46 -08:00
|
|
|
%img.inline-image{:src => '${pet_image_url}'}
|
|
|
|
= t '.pet_query.notice_html', :pet_name => '${pet_name}'
|
2013-01-10 16:24:12 -08:00
|
|
|
|
|
|
|
%script#preview-pet-type-not-found-template{:type => 'text/x-jquery-tmpl'}
|
|
|
|
= t '.preview.pet_type_not_found', :color_name => '${color_name}',
|
|
|
|
:species_name => '${species_name}'
|
|
|
|
|
|
|
|
%script#preview-pet-not-found-template{:type => 'text/x-jquery-tmpl'}
|
|
|
|
= t '.preview.pet_not_found'
|
2013-01-10 14:47:46 -08:00
|
|
|
|
2010-12-06 15:50:13 -08:00
|
|
|
- content_for :javascripts do
|
2024-03-13 21:38:45 -07:00
|
|
|
= include_javascript_libraries :jquery, :jquery_tmpl
|
2024-03-13 21:26:22 -07:00
|
|
|
= javascript_include_tag 'ajax_auth', 'lib/jquery.timeago', defer: true
|
|
|
|
|
|
|
|
- content_for :javascripts_body do
|
|
|
|
= javascript_include_tag 'outfits/new', defer: true
|