impress/app/views/broken_image_reports/new.html.haml
Matchu 696b2aedaf give SWFs real, unique ID numbers
Lots of scary bugs were being caused by the fact that the possibly-duplicate Neopets ID
was being treated as an SWF's real primary key, meaning that a save meant for object swf
number 123 could be saved to biology swf number 123. Which is awful.

This update gives SWFs their own unique internal ID numbers. All external lookups still use
the remote ID and the type, meaning that the client side remains totally unchanged (phew).
However, all database relationships with SWFs use the new ID numbers, making everything
cleaner. Yay.

There are probably a few places where it would be appropriate to optimize certain lookups
that still depend on remote ID and type. Whatever. Today's goal was to remove crazy
glitches that have been floating around like mad. And I think that goal has been met.
2012-01-12 17:17:59 -06:00

32 lines
1.1 KiB
Text

- title 'Report broken image'
%p
Thanks for helping us find broken image! Sometimes the converters don't get
things quite right, and sometimes that can be fixed by just trying the
conversion again. If reconversion doesn't seem to solve the issue, consider
sending us a bug report at #{mail_to 'webmaster@openneo.net'}. Thanks!
%p
Which of these images looked broken? We'll put it in line for reconversion.
%ul#report-assets
- @swf_assets.each do |swf_asset|
%li
= link_to image_tag(swf_asset.s3_url([150, 150])), swf_asset.url
- unless swf_asset.image_pending_repair?
= form_tag(:action => :create) do
= hidden_field_tag 'swf_asset_remote_id', swf_asset.remote_id
= hidden_field_tag 'swf_asset_type', swf_asset.type
= submit_tag 'Report as broken'
- if swf_asset.converted_at?
%span.converted-at
Converted
= time_ago_in_words swf_asset.converted_at
ago
- else
%span.reported-broken-at
Reported
= time_ago_in_words swf_asset.reported_broken_at
ago