impress/app/views/closet_hangers/petpage.html.haml
Emi Matchu cae2f3ca74 Serve jquery and jquery.tmpl from our own codebase, instead of a CDN
Right, yeah, we've been depending on an external CDN for a long time
for jQuery and the jQuery Template library, and I don't like that kind
of external dependency! Let's put it in with the rest of our libs.
2024-09-20 19:23:53 -07:00

33 lines
1.2 KiB
Text

- title t('.title')
- secondary_nav do
= link_to t('.your_items_link'), user_closet_hangers_path(current_user), :class => 'button'
#intro
%p= t '.description'
%p= twl '.instructions',
:edit_petpage_link_url => 'https://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'
- @closet_lists_by_owned.each do |owned, closet_lists|
%div
%h4= closet_lists_group_name(:you, owned)
%ul
- closet_lists.each do |closet_list|
%li
= label_tag do
= check_box_tag "lists[#{closet_list.id}]", '1', petpage_closet_list_checked(closet_list, owned)
= closet_list.name
%li.unlisted
= label_tag do
= check_box_tag "groups[#{owned}]", '1', petpage_group_checked(owned)
= t 'closet_lists.unlisted_name'
= submit_tag t('.submit')
%textarea#petpage-output
= '' + render('petpage_content',
:lists_by_owned => @visible_closet_lists_by_owned,
:unlisted_hangers_by_owned => @visible_unlisted_closet_hangers_by_owned)
- content_for :javascripts_body do
= javascript_include_tag 'jquery', 'closet_hangers/petpage'