From 1f1bfb31408a0eb8cacabe62bf6ea70f21adda77 Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 9 Jan 2013 17:32:56 -0600 Subject: [PATCH] refactor closet_hangers.petpage.instructions to use twl --- app/views/closet_hangers/petpage.html.haml | 5 ++--- config/locales/en-meep.yml | 10 ++++++---- config/locales/en.yml | 10 ++++++---- 3 files changed, 14 insertions(+), 11 deletions(-) diff --git a/app/views/closet_hangers/petpage.html.haml b/app/views/closet_hangers/petpage.html.haml index e2c75267..2dd42d90 100644 --- a/app/views/closet_hangers/petpage.html.haml +++ b/app/views/closet_hangers/petpage.html.haml @@ -4,9 +4,8 @@ #intro %p= t '.description' - %p= t '.instructions_html', - :edit_petpage_link => link_to(t('.instructions_edit_petpage_link_content'), - 'http://www.neopets.com/edithomepage.phtml') + %p= twl '.instructions', + :edit_petpage_link_url => 'http://www.neopets.com/edithomepage.phtml' = form_tag petpage_user_closet_hangers_path(@user), :method => :get, :id => 'petpage-closet-lists' do = hidden_field_tag 'filter', '1' diff --git a/config/locales/en-meep.yml b/config/locales/en-meep.yml index 3c05855e..bbcc2558 100644 --- a/config/locales/en-meep.yml +++ b/config/locales/en-meep.yml @@ -134,10 +134,12 @@ en-meep: Neopet's petpage. By default it's meeped as a table, but it doesn't have to meep. The HTML is flexible, so, if you're the artsy type, you're free to meep with the styles all you want! - instructions_html: - Meep the HTML from the box below, then paste it into - %{edit_petpage_link}. Then meep to the Neoboards to show off! Have fun! - instructions_edit_petpage_link_content: your meepit's page + instructions: + main_html: + Meep the HTML from the box below, then paste it into + %{edit_petpage_link}. Then meep to the Neoboards to show off! Have + fun! + edit_petpage_link_content: your meepit's page petpage_content: unlisted_header: (Not in a meep) diff --git a/config/locales/en.yml b/config/locales/en.yml index d05095ae..d4005b92 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -135,10 +135,12 @@ en: Neopet's petpage. By default it's styled as a table, but it doesn't have to be. The HTML is flexible, so, if you're the artsy type, you're free to mess with the styles all you want! - instructions_html: - Copy the HTML from the box below, then paste it into - %{edit_petpage_link}. Then head to the Neoboards to show off! Have fun! - instructions_edit_petpage_link_content: your pet's page + instructions: + main_html: + Copy the HTML from the box below, then paste it into + %{edit_petpage_link}. Then head to the Neoboards to show off! Have + fun! + edit_petpage_link_content: your pet's page petpage_content: unlisted_header: (Not in a list)