1
0
Fork 0
forked from OpenNeo/impress
impress/app/views/neopets_pages/new.html.haml

71 lines
2.4 KiB
Text
Raw Normal View History

2012-12-30 14:07:29 -08:00
- title t('.title', :name => @neopets_page.name, :index => @neopets_page.index)
- content_for :before_flashes do
2012-12-30 14:07:29 -08:00
= link_to t('.your_items_link'), user_closet_hangers_path(current_user), :id => 'back-to-items'
2011-07-12 21:25:14 -07:00
2011-08-02 19:42:56 -07:00
= form_for @neopets_page, :html => {:id => 'closet-page-form'} do |f|
= f.hidden_field :index
2011-07-12 21:25:14 -07:00
#closet-page-frame-wrapper
%span
2012-12-30 14:07:29 -08:00
%strong
= t '.frame_header', :name => @neopets_page.name,
:index => @neopets_page.index
2011-08-02 19:42:56 -07:00
%iframe#closet-page-frame{:src => @neopets_page.url}
2011-07-12 21:25:14 -07:00
#closet-page-source
2012-12-30 14:07:29 -08:00
= f.label :source, t('.source_header')
2011-07-12 21:25:14 -07:00
= f.text_area :source
2012-12-30 14:07:29 -08:00
= f.submit t('.submit')
2011-07-12 21:25:14 -07:00
2012-12-30 14:07:29 -08:00
- localized_cache :action_suffix => 'explanation' do
%p
= t '.help.welcome', :name => @neopets_page.name
= t '.help.intro', :name => @neopets_page.name
%ol
%li
= t '.help.check_frame.header_html',
:page_link => link_to(t('.help.check_frame.page_link_content',
:name => @neopets_page.name,
:index => @neopets_page.index),
@neopets_page.url)
%ul
%li
%strong= t '.help.check_frame.check_login.summary'
= t '.help.check_frame.check_login.details'
%li
%strong
= t '.help.check_frame.login.summary_html',
:login_link => link_to_neopets_login(t('.help.check_frame.login.summary_login_link_content'))
= t '.help.check_frame.login.details_html',
:login_link => link_to_neopets_login(t('.help.check_frame.login.details_login_link_content'))
%li
%strong
= t '.help.check_frame.check_content.summary',
:name => @neopets_page.name
= t '.help.check_frame.check_content.details'
%li
= t '.help.view_source.header'
%ul
%li
= t '.help.view_source.chrome_html'
%li
= t '.help.view_source.firefox_html'
%li
= t '.help.view_source.other_html'
%li
= t '.help.view_source.troubleshooting_html',
:page_link => link_to(t('.help.view_source.troubleshooting_page_link_content'),
@neopets_page.url)
%li
= t '.help.copy_source.header'
%ul
%li
= t '.help.copy_source.shortcuts'
%li
= t '.help.submit.header'
%ul
%li
= t '.help.submit.description', :name => @neopets_page.name