ugh, push temporary version without new items

This commit is contained in:
Emi Matchu 2014-01-20 14:46:50 -06:00
parent 63b34435c7
commit fb6df82570

View file

@ -72,31 +72,32 @@
%abbr#latest-contribution-created-at{:title => @latest_contribution.created_at.getutc.iso8601} %abbr#latest-contribution-created-at{:title => @latest_contribution.created_at.getutc.iso8601}
#whats-new -#
-# TODO: i18n all the things #whats-new
-# TODO: cache this entire block? or just request newest items every time? -# TODO: i18n all the things
- if @newest_unmodeled_items.present? -# TODO: cache this entire block? or just request newest items every time?
#modeling-neopets-users{'data-usernames' => @neopets_usernames.to_json} - if @newest_unmodeled_items.present?
%h3= t '.newest_items.unmodeled.header' #modeling-neopets-users{'data-usernames' => @neopets_usernames.to_json}
%ul#newest-unmodeled-items %h3= t '.newest_items.unmodeled.header'
- @newest_unmodeled_items.each do |item| %ul#newest-unmodeled-items
- localized_cache "items/#{item.id} modeling_progress updated_at=#{item.updated_at.to_i}" do - @newest_unmodeled_items.each do |item|
%li{'data-item-id' => item.id} - localized_cache "items/#{item.id} modeling_progress updated_at=#{item.updated_at.to_i}" do
= link_to image_tag(item.thumbnail_url), item, :class => 'image-link' %li{'data-item-id' => item.id}
= link_to item, :class => 'header' do = link_to image_tag(item.thumbnail_url), item, :class => 'image-link'
%h2= item.name = link_to item, :class => 'header' do
%span.meter{style: "width: #{@newest_unmodeled_items_predicted_modeled_ratio[item]*100}%"} %h2= item.name
.missing-bodies %span.meter{style: "width: #{@newest_unmodeled_items_predicted_modeled_ratio[item]*100}%"}
= render_predicted_missing_species_by_color(@newest_unmodeled_items_predicted_missing_species_by_color[item]) .missing-bodies
.models = render_predicted_missing_species_by_color(@newest_unmodeled_items_predicted_missing_species_by_color[item])
- if @newest_modeled_items.present? .models
%h3= t '.newest_items.modeled.header' - if @newest_modeled_items.present?
%ul#newest-modeled-items %h3= t '.newest_items.modeled.header'
- @newest_modeled_items.each do |item| %ul#newest-modeled-items
%li.object - @newest_modeled_items.each do |item|
= link_to item, title: item.name, alt: item.name do %li.object
= image_tag item.thumbnail_url = link_to item, title: item.name, alt: item.name do
= nc_icon_for(item) = image_tag item.thumbnail_url
= nc_icon_for(item)
- localized_cache :action_suffix => 'templates' do - localized_cache :action_suffix => 'templates' do