refactor neopets_pages.new for twl

This commit is contained in:
Emi Matchu 2013-01-09 18:21:44 -06:00
parent 70ff4974a3
commit 82479315f0
3 changed files with 50 additions and 48 deletions

View file

@ -22,21 +22,18 @@
%ol %ol
%li %li
= t '.help.check_frame.header_html', = twl '.help.check_frame.header', :page_link_url => @neopets_page.url,
:page_link => link_to(t('.help.check_frame.page_link_content', :name => @neopets_page.name, :index => @neopets_page.index
:name => @neopets_page.name,
:index => @neopets_page.index),
@neopets_page.url)
%ul %ul
%li %li
%strong= t '.help.check_frame.check_login.summary' %strong= t '.help.check_frame.check_login.summary'
= t '.help.check_frame.check_login.details' = t '.help.check_frame.check_login.details'
%li %li
%strong %strong
= t '.help.check_frame.login.summary_html', = twl '.help.check_frame.login.summary',
:login_link => link_to_neopets_login(t('.help.check_frame.login.summary_login_link_content')) :login_link_url => neopets_login_url
= t '.help.check_frame.login.details_html', = twl '.help.check_frame.login.details',
:login_link => link_to_neopets_login(t('.help.check_frame.login.details_login_link_content')) :login_link_url => neopets_login_url
%li %li
%strong %strong
= t '.help.check_frame.check_content.summary', = t '.help.check_frame.check_content.summary',
@ -51,11 +48,10 @@
%li %li
= t '.help.view_source.firefox_html' = t '.help.view_source.firefox_html'
%li %li
= t '.help.view_source.other_html' = t '.help.view_source.other'
%li %li
= t '.help.view_source.troubleshooting_html', = twl '.help.view_source.troubleshooting',
:page_link => link_to(t('.help.view_source.troubleshooting_page_link_content'), :page_link_url => @neopets_page.url
@neopets_page.url)
%li %li
= t '.help.copy_source.header' = t '.help.copy_source.header'

View file

@ -379,11 +379,11 @@ en-meep:
Neopets.com %{name} data into your Dress to Impress meepit list. Neopets.com %{name} data into your Dress to Impress meepit list.
Here's how it meeps. Here's how it meeps.
check_frame: check_frame:
header_html: header:
main_html:
Check the framed Neopets.com meep on the left, Check the framed Neopets.com meep on the left,
meeping to %{page_link}. meeping to %{page_link}.
page_link_content: page_link_content: meep %{index} of your %{name}
meep %{index} of your %{name}
check_login: check_login:
summary: Confirm that you're meeped in. summary: Confirm that you're meeped in.
details: details:
@ -391,13 +391,15 @@ en-meep:
you're not, try enabling "third-party cookies" in your browser. you're not, try enabling "third-party cookies" in your browser.
(Most have meeped on by default.) (Most have meeped on by default.)
login: login:
summary_html: If you haven't meeped in, %{login_link}. summary:
summary_login_link_content: do so in another meepit main_html: If you haven't meeped in, %{login_link}.
details_html: login_link_content: do so in another meepit
details:
main_html:
It's never a good idea to meep in inside of a frame, unless It's never a good idea to meep in inside of a frame, unless
you're a web programmer pro who can meep that the frame does, in you're a web programmer pro who can meep that the frame does,
fact, meep to Neopets.com. To be safe, %{login_link}. in fact, meep to Neopets.com. To be safe, %{login_link}.
details_login_link_content: login_link_content:
meep up another window, meep the URL, and meep in safely meep up another window, meep the URL, and meep in safely
check_content: check_content:
summary: Meep that the page is, in fact, your %{name}. summary: Meep that the page is, in fact, your %{name}.
@ -416,10 +418,11 @@ en-meep:
Source</strong>. Source</strong>.
other_html: other_html:
In other meepits, right-meep and look for something similar. In other meepits, right-meep and look for something similar.
troubleshooting_html: troubleshooting:
main_html:
If you're still having trouble, try %{page_link}, right-meeping, If you're still having trouble, try %{page_link}, right-meeping,
and meeping View Source. and meeping View Source.
troubleshooting_page_link_content: meeping the page in a new window page_link_content: meeping the page in a new window
copy_source: copy_source:
header: header:
Meeplight the entire source code, Meeplight the entire source code,

View file

@ -379,11 +379,11 @@ en:
%{name} data into your Dress to Impress items list. Here's how it %{name} data into your Dress to Impress items list. Here's how it
works. works.
check_frame: check_frame:
header_html: header:
main_html:
Check the framed Neopets.com window on the left, Check the framed Neopets.com window on the left,
pointing to %{page_link}. pointing to %{page_link}.
page_link_content: page_link_content: page %{index} of your %{name}
page %{index} of your %{name}
check_login: check_login:
summary: Confirm that you're logged in. summary: Confirm that you're logged in.
details: details:
@ -391,13 +391,15 @@ en:
you're not, try enabling "third-party cookies" in your browser. you're not, try enabling "third-party cookies" in your browser.
(Most have that on by default.) (Most have that on by default.)
login: login:
summary_html: If you haven't logged in, %{login_link}. summary:
summary_login_link_content: do so in another window main_html: If you haven't logged in, %{login_link}.
details_html: login_link_content: do so in another window
It's never a good idea to log in inside of a frame, unless you're details:
a web programmer pro who can check that the frame does, in fact, main_html:
point to Neopets.com. To be safe, %{login_link}. It's never a good idea to log in inside of a frame, unless
details_login_link_content: you're a web programmer pro who can check that the frame does,
in fact, point to Neopets.com. To be safe, %{login_link}.
login_link_content:
pull up another window, check the URL, and log in safely pull up another window, check the URL, and log in safely
check_content: check_content:
summary: Confirm that the page is, in fact, your %{name}. summary: Confirm that the page is, in fact, your %{name}.
@ -414,12 +416,13 @@ en:
<strong>In Firefox</strong>, right-click the frame, choose <strong>In Firefox</strong>, right-click the frame, choose
<strong>This Frame</strong>, then <strong>View Frame <strong>This Frame</strong>, then <strong>View Frame
Source</strong>. Source</strong>.
other_html: other:
In other browsers, right-click and look for something similar. In other browsers, right-click and look for something similar.
troubleshooting_html: troubleshooting:
main_html:
If you're still having trouble, try %{page_link}, right-clicking, If you're still having trouble, try %{page_link}, right-clicking,
and choosing View Source. and choosing View Source.
troubleshooting_page_link_content: opening the page in a new window page_link_content: opening the page in a new window
copy_source: copy_source:
header: header:
Highlight the entire source code, Highlight the entire source code,