impress/app/views/broken_image_reports/new.html.haml

25 lines
873 B
Text
Raw Normal View History

2012-12-29 23:13:58 -08:00
- title t('.title')
2011-08-07 15:23:44 -07:00
2012-12-29 23:13:58 -08:00
%p= t '.explanation_html', :contact_link => mail_to(contact_email)
2011-08-07 15:23:44 -07:00
2012-12-29 23:13:58 -08:00
%p= t '.call_to_action'
2011-08-07 15:23:44 -07:00
%ul#report-assets
- @swf_assets.each do |swf_asset|
%li
2012-07-16 13:34:44 -07:00
= link_to image_tag(swf_asset.image_url([150, 150])), swf_asset.url
- if swf_asset.image_manual?
%span.manual
= t '.image_manual.description'
= mail_to contact_email, t('.image_manual.contact')
- elsif swf_asset.image_pending_repair?
%span.reported-broken-at= format_reported_at(swf_asset.reported_broken_at)
- else
= 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
2012-12-29 23:13:58 -08:00
= submit_tag t('.submit')
2011-08-07 15:23:44 -07:00
- if swf_asset.converted_at?
2012-12-29 23:13:58 -08:00
%span.converted-at= format_converted_at(swf_asset.converted_at)