Compare commits

..

3 commits

Author SHA1 Message Date
38474d19d7 Oops, fix broken strings on Neopets page import wizard
Uhh I guess when I half-removed a feature from the translations list (I
don't remember when?), it left two different dictionaries labeled
`neopets_page_import_tasks.new`, and the second one overwrote the
first. Oops! Yikes!

By removing these, the translations *above* them actually get to apply
to the page correctly. Before this change, the page just showed the
translation keys as placeholders, womp womp.
2024-09-20 18:16:06 -07:00
73e0b3bb3c Remove some silly view template caching calls
When I was trying to debug slow view code one time long long ago, I was
like "let's cache any part of the template that's static!"

And like. no that's silly, I don't trust that this speeds anything up,
but it _definitely_ adds complexity. Let's just not.
2024-09-20 18:08:11 -07:00
1f53615654 Add "State of DTI: 2024" blog post announcement 2024-09-20 18:02:58 -07:00
11 changed files with 136 additions and 178 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View file

@ -1,5 +1,5 @@
module OutfitsHelper
LAST_DAY_OF_ANNOUNCEMENT = Date.parse("2024-09-13")
LAST_DAY_OF_ANNOUNCEMENT = Date.parse("2024-09-27")
def show_announcement?
Date.today <= LAST_DAY_OF_ANNOUNCEMENT
end

View file

@ -9,7 +9,6 @@
= will_paginate @items
- else
#search-info
- localized_cache :action_suffix => 'search_help' do
#search-help
%h2= t '.search_help_header'
%dl

View file

@ -16,12 +16,11 @@
= f.select :list_id, neopets_page_list_options(current_user)
= f.submit t('.submit')
- localized_cache :action_suffix => 'explanation' do
%p
%p
= t '.help.welcome', :name => @import_task.page.name
= t '.help.intro', :name => @import_task.page.name
%ol
%ol
%li
= twl '.help.check_frame.header', :page_link_url => @import_task.page.url,
:name => @import_task.page.name, :index => @import_task.page.expected_index

View file

@ -6,28 +6,22 @@
- if show_announcement?
%section.announcement
= image_tag "about/announcement.png", width: 70, height: 70,
srcset: {"about/announcement@2x.png": "2x"},
= image_tag "about/announcement-broom.png", width: 70, height: 70,
srcset: {"about/announcement-broom@2x.png": "2x"},
class: "neopass-thumbnail"
.content
%p
%strong
= link_to "We've updated the item page!",
item_path("37002-Floating-Negg-Faerie-Doll")
It should load faster, work better on phones, and be more reliable—no
more "failed to fetch"! Please try it out and let us know if it does
anything weird!!
%p{style: "font-style: italic; opacity: .85; font-size: 85%"}
By the way, our integration work with TNT is on pause while they focus
on the
= link_to "~Void Within plot~!", "https://www.neopets.com/tvw/",
target: "_blank", style: "color: purple; font-weight: bold"
%br
We'll start it back up closer to the new year.
= link_to "State of DTI: 2024!",
"https://blog.openneo.net/2024/09/20/state-of-dti-2024.html"
Here's what we've been up to this year! We talk a bit about the
cleanups, the partnerships, and the future!
%p
The themes are stability, simplicity, and sustainability. We've been
online for 15 years now, and we're gonna keep doing our best to keep
DTI here for a long time to come!
#outfit-forms
- localized_cache :action_suffix => 'outfit_forms_intro' do
#pet-preview
= image_tag 'default_preview.png', :alt => ''
%span
@ -114,18 +108,16 @@
= image_tag item.thumbnail_url
= nc_icon_for(item)
- localized_cache :action_suffix => 'templates' do
%script#pet-query-notice-template{:type => 'text/x-jquery-tmpl'}
%script#pet-query-notice-template{:type => 'text/x-jquery-tmpl'}
.notice
%img.inline-image{:src => '${pet_image_url}'}
= t '.pet_query.notice_html', :pet_name => '${pet_name}'
%script#preview-pet-type-not-found-template{:type => 'text/x-jquery-tmpl'}
%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'}
%script#preview-pet-not-found-template{:type => 'text/x-jquery-tmpl'}
= t '.preview.pet_not_found'
- content_for :javascripts do

View file

@ -1,7 +1,6 @@
- title t('modeling_hub')
= form_tag load_pet_path, :id => 'bulk-pets-form' do
- localized_cache :action_suffix => 'bulk_pets_content' do
%p= t '.explanation'
= origin_tag bulk_pets_path
@ -15,8 +14,7 @@
%button#bulk-pets-form-clear{:type => "button"}= t '.clear'
%ul
- localized_cache :action_suffix => 'templates' do
%script#item-template{:type => 'text/x-jquery-tmpl'}
%script#item-template{:type => 'text/x-jquery-tmpl'}
%li{:class => 'object{{if owned}} owned{{/if}}'}
= link_to item_path(':id').sub(':id', '${id}') do
%img{:src => '${thumbnail_url}', :alt => '${description}', :title => '${description}'}
@ -39,10 +37,10 @@
%span.object-owned= t '.needed_items.item_owned'
{{/if}}
%script#needed-items-pet-header-template{:type => 'text/x-jquery/tmpl'}
%script#needed-items-pet-header-template{:type => 'text/x-jquery/tmpl'}
= t '.needed_items.pet_header', :pet_name => '${pet_name}'
%script#bulk-pets-submission-template{:type => 'text/x-jquery/tmpl'}
%script#bulk-pets-submission-template{:type => 'text/x-jquery/tmpl'}
%li.waiting
%img{:src => '${pet_thumbnail}'}
%span.name ${pet_name}
@ -50,7 +48,7 @@
%span.loading-message= t '.loading'
%span.response
%script#bulk-pets-submission-success-template{:type => 'text/x-jquery/tmpl'}
%script#bulk-pets-submission-success-template{:type => 'text/x-jquery/tmpl'}
= t '.submission_success', :points => '${points}'
- content_for :javascripts do

View file

@ -396,15 +396,6 @@ en-MEEP:
to Impress meepit list. I meep that it's all safe, but, if you're
concerned, find a meepit and meep out the source code to be sure.
new:
title: Meemport from pets
your_items_link: Back to Your Meeps
explanation:
Meep your Neopets username below, and we'll meemport all the wearables
from all your pets. It's meepy!
username_label: Meopets Username
submit: Meemport all pets
outfits:
destroy:
success: Outfit "%{outfit_name}" succeessfully demeeped.

View file

@ -503,15 +503,6 @@ en:
concerned, find a programmer buddy and check out the source code to
be sure.
new:
title: Import from pets
your_items_link: Back to Your Items
explanation:
Enter your Neopets username below, and we'll import all the wearables
from all your pets. It's easy!
username_label: Neopets Username
submit: Import all pets
outfits:
destroy:
success: Outfit "%{outfit_name}" successfully deleted.

View file

@ -320,12 +320,6 @@ es:
submit:
header: ¡Envíalo!
description: El código será analizado y obtendrá sólo la información de la cantidad de objetos y qué objetos hay en tu %{name}. Estos objetos los podrás añadir a tus listas de Dress to Impress. Este proceso es totalmente seguro pero si no te fías contacta con algún programador para que revise el código y estar seguro.
new:
title: Importar de pets
your_items_link: Volver a Tus Objetos
explanation: Escribe tu nombre de usuario en Neopets, y nosotros importaremos toda la ropa Apta Para Usar de tus pets. ¡Es fácil!
username_label: Nombre en Neopets
submit: Importar todos los pets
outfits:
destroy:
success: El atuendo %{outfit_name}" se ha eliminado correctamente.

View file

@ -318,12 +318,6 @@ pt:
submit:
header: Enviar
description: Vamos analisar o código que você nos enviou, agarre exclusivamente a identidade e quantidade de itens em seu %{name}, e acrescentar a sua lista de itens do Dress to Impress. Eu prometo que é tudo seguro, mas, se você estiver preocupado, encontre um amigo programador e verifique o código fonte para ter certeza.
new:
title: "Importar dos pets "
your_items_link: Voltar para "Seus Items"
explanation: "Digite seu nome de usuário de Neopets abaixo e nós importaremos todos os aplicáveis de todos seus pets. É fácil! "
username_label: Nome de Usuário de Neopets
submit: Importar todos os Pets
outfits:
destroy:
success: Roupa "%{outfit_name}" excluída com sucesso.