BACKTRACE

(expand)

GET

No GET data.

POST

No POST data.

Variable Value
currency
"USD"

Rack ENV

Variable Value
HTTP_ACCEPT
*/*
HTTP_ACCEPT_ENCODING
gzip, br
HTTP_CDN_LOOP
cloudflare
HTTP_CF_CONNECTING_IP
44.211.117.101
HTTP_CF_IPCOUNTRY
US
HTTP_CF_RAY
86b90261b80805eb-IAD
HTTP_CF_VISITOR
{"scheme":"https"}
HTTP_CONNECTION
close
HTTP_HOST
yugiohtopdecks.com
HTTP_USER_AGENT
claudebot
HTTP_VERSION
HTTP/1.0
HTTP_X_FORWARDED_FOR
44.211.117.101, 172.70.42.46
HTTP_X_FORWARDED_PROTO
https
HTTP_X_REAL_IP
172.70.42.46
PATH_INFO
/deck/8970
QUERY_STRING
REMOTE_ADDR
127.0.0.1
REQUEST_METHOD
GET
REQUEST_PATH
/deck/8970
REQUEST_URI
/deck/8970
SCRIPT_NAME
SERVER_NAME
yugiohtopdecks.com
SERVER_PORT
443
SERVER_PROTOCOL
HTTP/1.0
SERVER_SOFTWARE
Unicorn 6.1.0
rack.after_reply
[]
rack.errors
#<Object:0x0000000002270a18>
rack.hijack
#<Proc:0x000000012e7868b8 /home/sally/.rvm/gems/ruby-3.0.0/gems/rack-2.2.4/lib/rack/lint.rb:567>
rack.hijack?
true
rack.input
#<Rack::Lint::InputWrapper:0x000000012e786728 @input=#<StringIO:0x0000000001c87b10>>
rack.logger
#<Rack::NullLogger:0x0000000003898700 @app=#<Rack::Session::Cookie:0x0000000003898f48 @secrets=["d4127fb69dbfaded12e69eb9ddf844737df3e184c472be4931e9132e91ae18cfe3debf7f12ba2971bfaa33a84a2f80af5245c74a8631b2e068b86a274b6f5a07"], @hmac=OpenSSL::Digest::SHA1, @coder=#<Rack::Session::Cookie::Base64::Marshal:0x0000000003898db8>, @app=#<Rack::Protection::FrameOptions:0x00000000038993f8 @app=#<Rack::Protection::HttpOrigin:0x0000000003899650 @app=#<Rack::Protection::IPSpoofing:0x0000000003899d80 @app=#<Rack::Protection::JsonCsrf:0x0000000003899fd8 @app=#<Rack::Protection::RemoteToken:0x000000000389a1b8 @app=#<Rack::Protection::SessionHijacking:0x000000000389a3c0 @app=#<Rack::Protection::XSSHeader:0x000000000389a5c8 @app=#<TopDecks::WebApp:0x0000000003805130 @default_layout=:layout, @preferred_extension=nil, @app=nil, @template_cache=#<Tilt::Cache:0x0000000003805040 @cache={[:haml, :deck_profile, {:outvar=>"@_out_buf", :default_encoding=>"utf-8"}, "/srv/api/ygo_top_decks/web/views"]=>#<Tilt::HamlTemplate:0x000000012e7c4af0 @options={:outvar=>"@_out_buf"}, @line=1, @file="/srv/api/ygo_top_decks/web/views/deck_profile.haml", @compiled_method={[TopDecks::WebApp, []]=>#<UnboundMethod: Tilt::CompiledTemplates#__tilt_2980(locals) /srv/api/ygo_top_decks/web/views/deck_profile.haml:-2>}, @default_encoding="utf-8", @reader=#<Proc:0x000000012e7c4988 /home/sally/.rvm/gems/ruby-3.0.0/gems/tilt-2.0.11/lib/tilt/template.rb:85 (lambda)>, @data="-# Decklist Header\n\n-# Deck admin for fancy pants logged in users\n- if @user_logged_in\n %div{:class => 'row'}\n %div{:class => 'large-12 columns',\n :style => 'margin-bottom: -12px; width: 102%; margin-left: -1%'}\n %div{:class => 'panel',\n :style => 'padding-bottom: 8px'}\n -# Header and action buttons\n %div{:class => 'row',\n :style => 'margin-bottom: 4px'}\n -# Header Text\n %div{:class => 'large-4 columns'}\n %h6\n %b Manage Deck\n\n -# Action Buttons\n %div{:class => 'large-8 columns',\n :style => 'margin-bottom: -14px'}\n %div{:class => 'row',\n :style => 'margin-bottom: -20px'}\n %div{:class => 'large-3 right columns'}\n %a{:href => \"/edit_existing_deck/\#{@deck[:deck_list_id]}\",\n :class => 'button postfix success',\n :style => 'font-weight: bold'}\n Edit Deck\n\n\n-# We have a deck profile video\n- if @deck[:video]\n %div{:class => 'row'}\n %div{:class => 'large-5 columns'}\n %div{:class => 'row'}\n %div{:class => 'large-12 columns panel'}\n %h6\n %b= @deck[:deck_name]\n %p\n %b Built By:\n %a{:href => \"/duelist/\#{CGI.escape @deck[:deck_owner]}\"}\n = @deck[:deck_owner]\n %br\n %b Played In:\n %a{:href => \"/tournament/\#{CGI.escape @deck[:tournament_name]}\"}\n =\"\#{@deck[:tournament_name]} (\#{Date::ABBR_MONTHNAMES[@deck[:tournament_date].month]} \#{@deck[:tournament_date].year})\"\n %br\n %b Placed:\n %a{:href => \"/placed/\#{CGI.escape @deck[:tournament_placed]}\"}\n = @deck[:tournament_placed]\n %br\n %b Main Archetype:\n %a{:href => \"/decks/\#{CGI.escape @deck[:main_archetype]}\"}\n = @deck[:main_archetype]\n\n %div{:class => 'row'}\n %div{:class => 'large-12 columns panel',\n :style => 'margin-top: -12px'}\n %h6\n %b Deck Value\n\n %p{:id => 'deck_value_loading',\n :style => 'text-align: center; padding-top: 19px; padding-bottom: 20px'}\n Loading Data\n %br\n %img{:src => '/img/loading.gif',\n :style => 'margin-top: 6px'}\n\n %div{:class => 'large-7 columns'}\n %div{:class => 'row'}\n %div{:class => 'large-12 columns panel',\n :style => 'margin-left: 6px; margin-right: -6px; padding-top: 15px; padding-bottom: 15px'}\n - video_id = @deck[:video].split(\"v=\")[-1].split(\"/\")[-1].split(\"&\")[0].split(\"%\")[0]\n <iframe width=\"560\" height=\"337\" src=\"//www.youtube.com/embed/\#{video_id}\" frameborder=\"0\" allowfullscreen></iframe>\n\n- else\n %div{:class => 'row',\n 'data-equalizer' => ''}\n %div{:class => 'large-6 columns'}\n %div{:class => 'panel',\n 'data-equalizer-watch' => '',\n :style => 'width: 104%; margin-left: -2%'}\n %h6\n %b= @deck[:deck_name]\n %p\n %b Built By:\n %a{:href => \"/duelist/\#{CGI.escape @deck[:deck_owner]}\"}\n = @deck[:deck_owner]\n %br\n %b Played In:\n %a{:href => \"/tournament/\#{CGI.escape @deck[:tournament_name]}\"}\n =\"\#{@deck[:tournament_name]} (\#{Date::ABBR_MONTHNAMES[@deck[:tournament_date].month]} \#{@deck[:tournament_date].year})\"\n %br\n %b Placed:\n %a{:href => \"/placed/\#{CGI.escape @deck[:tournament_placed]}\"}\n = @deck[:tournament_placed]\n %br\n %b Main Archetype:\n %a{:href => \"/decks/\#{CGI.escape @deck[:main_archetype]}\"}\n = @deck[:main_archetype]\n\n %div{:class => 'large-6 columns end'}\n %div{:class => 'panel',\n 'data-equalizer-watch' => '',\n :style => 'width: 104%; margin-left: -2%'}\n %h6\n %b Deck Value\n %p{:id => 'deck_value_loading',\n :style => 'text-align: center; padding-top: 19px; padding-bottom: 20px'}\n Loading Data\n %br\n %img{:src => '/img/loading.gif',\n :style => 'margin-top: 6px'}\n\n-# TCGPlayer Mass Entry Link\n%div{:class => 'row'}\n %div{:class => 'large-12 columns',\n :style => 'margin-top: -12px'}\n %div{:class => 'panel',\n :style => 'width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px'}\n %h4{:style => 'text-align: center'}\n %a{:href => @tcg_player_link,\n :target => \"_blank\"}\n %b\n Buy This Deck On\n %br\n %img{:src => '/img/tcgplayer_logo.png',\n :style => 'height: 55px; padding-top: 4px'}\n\n-# YGOPro Download link\n%div{:class => 'row'}\n %div{:class => 'large-12 columns',\n :style => 'margin-top: -12px'}\n %div{:class => 'panel',\n :style => 'width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px'}\n -# Header\n %h4{:style => 'text-align: center'}\n %a{:href => \"/ygopro_deck/\#{@deck[:deck_list_id]}\"}\n %img{:src => '/img/ygopro_logo.png',\n :style => 'height: 50px; margin-top: -4px; margin-bottom: -4px'}\n %b\n Download Deck for YGOPro\n\n-# Yugioh Deck Builder Link\n%div{:class => 'row'}\n %div{:class => 'large-12 columns',\n :style => 'margin-top: -12px'}\n %div{:class => 'panel',\n :style => 'width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px'}\n -# Header\n %h4{:style => 'text-align: center'}\n %a{:href => \"http://yugiohdeckbuilder.com/import_ygo_top_deck/\#{@deck[:deck_list_id]}\",\n :target => '_blank'}\n %b Import Decklist into Yugioh Deck Builder\n\n\n-# Deck Lists\n%div{:class => 'row',\n 'data-equalizer' => ''}\n -# Main Deck\n - main_cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'main').order(:name)\n - total_main_cards = main_cards.map { |x| x[:count] }.inject(0, :+)\n %div{:class => 'large-6 columns',\n :style => 'margin-top: -12px'}\n %div{:class => 'panel',\n :style => 'width: 104%; margin-left: -2%',\n 'data-equalizer-watch' => ''}\n -# Header\n %h4{:style => 'text-align: center'}\n %b Main Deck\n %br\n %small\n %b= \"(\#{total_main_cards} Cards)\"\n\n -# Card List\n %ul\n - [\"monster\", \"spell\", \"trap\"].each do | card_type |\n - sub_cards = main_cards.where(:card_type => card_type).order(:name)\n - next if sub_cards.count == 0\n\n %h5{:style => 'margin-top: 12px'}\n %b= \"\#{card_type.title}s\"\n - sub_cards.each do | card |\n %li{:style => 'list-style: none;'}\n %b= \"\#{card[:count]}x\"\n %a{:href => \"/card/\#{CGI.escape card[:name]}\"}\n = card[:name]\n \n -# Side and Extra Decks\n %div{:class => 'large-6 columns',\n :style => 'margin-top: -12px'}\n %div{:class => 'panel',\n :style => 'width: 104%; margin-left: -2%',\n 'data-equalizer-watch' => ''}\n -# Get Extra Deck Cards\n - cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'extra').order(:name)\n - total_cards = cards.map { |x| x[:count] }.inject(0, :+)\n\n -# Extra Deck Header\n - if total_cards > 0\n %h4{:style => 'text-align: center'}\n %b Extra Deck\n %br\n %small\n %b= \"(\#{total_cards} Cards)\"\n\n -# Build array of card objects\n - card_names = cards.map { |x| x[:name] }\n - card_objects = Cards.where(:name => card_names).select(:name, :type).order(:name)\n\n -# Write cards to page\n %ul\n - card_objects.map { |x| x[:type].split(\"/\")[-1].strip }.uniq.sort.each do | card_type |\n %h5{:style => 'margin-top: 12px'}\n %b= card_type\n - card_objects.each do | card_obj |\n - next if not card_obj[:type] =~ /\#{Regexp.escape card_type}/i\n - card = cards.where(:name => card_obj[:name]).first\n %li{:style => 'list-style: none;'}\n %b= \"\#{card[:count]}x\"\n %a{:href => \"/card/\#{CGI.escape card[:name]}\"}\n = card[:name]\n\n\n -# Side Deck\n -# Get Cards\n - cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'side').order(:name)\n - total_cards = cards.map { |x| x[:count] }.inject(0, :+)\n\n - if total_cards > 0\n -# Header\n %h4{:style => 'text-align: center'}\n %b Side Deck\n %br\n %small\n %b= \"(\#{total_cards} Cards)\"\n\n -# Card List\n %ul\n - [\"monster\", \"spell\", \"trap\"].each do | card_type |\n - sub_cards = cards.where(:card_type => card_type).order(:name)\n - next if sub_cards.count == 0\n\n %h5{:style => 'margin-top: 12px'}\n %b= \"\#{card_type.title}s\"\n - sub_cards.each do | card |\n %li{:style => 'list-style: none;'}\n %b= \"\#{card[:count]}x\"\n %a{:href => \"/card/\#{CGI.escape card[:name]}\"}\n = card[:name]\n\n\n-# Deck Price Breakdown\n%div{:class => 'row'}\n %div{:class => 'large-12 columns',\n :style => 'margin-top: -12px'}\n %div{:class => 'panel',\n :style => 'width: 102%; margin-left: -1%'}\n %div{:id => 'price_table_loading'}\n %div{:class => 'row',\n :style => 'margin-bottom: -18px'}\n %div{:class => 'large-8 columns'}\n %h6\n %b Deck Price Breakdown\n\n %div{:class => 'large-4 columns text-right'}\n %p\n Loading Data...\n %img{:src => '/img/loading.gif'}\n\n-# Total Deck Value AJAX Loader\n:javascript\n $.ajaxSetup ({\n cache: false\n });\n\n function load_deck_value() {\n var url = \"/calculate_deck_value/\" + \"\#{@deck[:deck_list_id]}\"\n $.get(url, function(data) {\n $('#deck_value_loading').replaceWith(data);\n load_deck_price_breakdown();\n }).error(function() {\n load_deck_value();\n });\n }\n\n function load_deck_price_breakdown() {\n var url = \"/deck_price_breakdown/\" + \"\#{@deck[:deck_list_id]}\"\n $.get(url, function(data) {\n $('#price_table_loading').replaceWith(data);\n $(\"[id=price_breakdown]\").each(function() {\n sorttable.makeSortable(this);\n });\n }).error(function() {\n load_deck_price_breakdown();\n });\n }\n\n $(function() {\n load_deck_value();\n });\n", @engine=#<Haml::TempleEngine:0x000000012e7c4870 @options=#<Temple::ImmutableMap:0x000000012e7c42a8 @map=[{:attr_wrapper=>"'", :autoclose=>["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"], :encoding=>nil, :escape_attrs=>true, :escape_html=>false, :escape_filter_interpolations=>nil, :filename=>"/srv/api/ygo_top_decks/web/views/deck_profile.haml", :format=>:html5, :hyphenate_data_attrs=>true, :line=>1, :mime_type=>"text/html", :preserve=>["textarea", "pre", "code"], :remove_whitespace=>false, :suppress_eval=>false, :cdata=>false, :parser_class=>Haml::Parser, :compiler_class=>Haml::Compiler, :trace=>false, :filters=>{}, :buffer=>"@_out_buf", :save_buffer=>true}]>, @chain=[[:Parser, #<Proc:0x00000000038987a0 /home/sally/.rvm/gems/ruby-3.0.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:89>], [:Compiler, #<Proc:0x0000000003898570 /home/sally/.rvm/gems/ruby-3.0.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:89>], [:"Haml::Escapable", #<Proc:0x00000000038b3898 /home/sally/.rvm/gems/ruby-3.0.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:76>], [:ControlFlow, #<Proc:0x00000000038b1ca0 /home/sally/.rvm/gems/ruby-3.0.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:76>], [:MultiFlattener, #<Proc:0x00000000038b0968 /home/sally/.rvm/gems/ruby-3.0.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:76>], [:StaticMerger, #<Proc:0x00000000038bb430 /home/sally/.rvm/gems/ruby-3.0.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:76>], [:"Haml::Generator", #<Proc:0x00000000038baff8 /home/sally/.rvm/gems/ruby-3.0.0/gems/temple-0.8.2/lib/temple/mixins/engine_dsl.rb:76>]], @encoding=#<Encoding:UTF-8>, @call_chain=[#<Haml::Parser:0x000000012e7c4118 @options=#<Haml::Options:0x000000012e7c40a0 @attr_wrapper="'", @autoclose=["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"], @encoding="UTF-8", @escape_attrs=true, @escape_html=false, @escape_filter_interpolations=nil, @filename="/srv/api/ygo_top_decks/web/views/deck_profile.haml", @format=:html5, @hyphenate_data_attrs=true, @line=1, @mime_type="text/html", @preserve=["textarea", "pre", "code"], @remove_whitespace=false, @suppress_eval=false, @cdata=false, @parser_class=Haml::Parser, @compiler_class=Haml::Compiler, @trace=false, @filters={}>, @script_level_stack=[], @template_index=0, @template_tabs=0, @template=[], @parent=(root nil (haml_comment {:text=>" Decklist Header"}) (haml_comment {:text=>" Deck admin for fancy pants logged in users"}) (silent_script {:text=>" if @user_logged_in", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns", "style"=>"margin-bottom: -12px; width: 102%; margin-left: -1%"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"padding-bottom: 8px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Header and action buttons"}) (tag {:name=>"div", :attributes=>{"class"=>"row", "style"=>"margin-bottom: 4px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Header Text"}) (tag {:name=>"div", :attributes=>{"class"=>"large-4 columns"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h6", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Manage Deck"}))) (haml_comment {:text=>" Action Buttons"}) (tag {:name=>"div", :attributes=>{"class"=>"large-8 columns", "style"=>"margin-bottom: -14px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row", "style"=>"margin-bottom: -20px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-3 right columns"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/edit_existing_deck/\#{@deck[:deck_list_id]}\",\n:class => 'button postfix success',\n:style => 'font-weight: bold'}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (plain {:text=>"Edit Deck"})))))))))) (haml_comment {:text=>" We have a deck profile video"}) (silent_script {:text=>" if @deck[:video]", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-5 columns"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns panel"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h6", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"@deck[:deck_name]"})) (tag {:name=>"p", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Built By:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/duelist/\#{CGI.escape @deck[:deck_owner]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" @deck[:deck_owner]", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Played In:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/tournament/\#{CGI.escape @deck[:tournament_name]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"\"\#{@deck[:tournament_name]} (\#{Date::ABBR_MONTHNAMES[@deck[:tournament_date].month]} \#{@deck[:tournament_date].year})\"", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Placed:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/placed/\#{CGI.escape @deck[:tournament_placed]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" @deck[:tournament_placed]", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Main Archetype:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/decks/\#{CGI.escape @deck[:main_archetype]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" @deck[:main_archetype]", :escape_html=>false, :preserve=>false, :keyword=>nil}))))) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns panel", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h6", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Deck Value"})) (tag {:name=>"p", :attributes=>{"id"=>"deck_value_loading", "style"=>"text-align: center; padding-top: 19px; padding-bottom: 20px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (plain {:text=>"Loading Data"}) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"img", :attributes=>{"src"=>"/img/loading.gif", "style"=>"margin-top: 6px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}))))) (tag {:name=>"div", :attributes=>{"class"=>"large-7 columns"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns panel", "style"=>"margin-left: 6px; margin-right: -6px; padding-top: 15px; padding-bottom: 15px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" video_id = @deck[:video].split(\"v=\")[-1].split(\"/\")[-1].split(\"&\")[0].split(\"%\")[0]", :keyword=>nil}) (script {:text=>"\"<iframe width=\\\"560\\\" height=\\\"337\\\" src=\\\"//www.youtube.com/embed/\#{video_id}\\\" frameborder=\\\"0\\\" allowfullscreen></iframe>\"", :escape_html=>false, :preserve=>false, :keyword=>nil}))))) (silent_script {:text=>" else", :keyword=>"else"}) (tag {:name=>"div", :attributes=>{"class"=>"row", "data-equalizer"=>""}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-6 columns"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "data-equalizer-watch"=>"", "style"=>"width: 104%; margin-left: -2%"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h6", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"@deck[:deck_name]"})) (tag {:name=>"p", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Built By:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/duelist/\#{CGI.escape @deck[:deck_owner]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" @deck[:deck_owner]", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Played In:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/tournament/\#{CGI.escape @deck[:tournament_name]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"\"\#{@deck[:tournament_name]} (\#{Date::ABBR_MONTHNAMES[@deck[:tournament_date].month]} \#{@deck[:tournament_date].year})\"", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Placed:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/placed/\#{CGI.escape @deck[:tournament_placed]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" @deck[:tournament_placed]", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Main Archetype:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/decks/\#{CGI.escape @deck[:main_archetype]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" @deck[:main_archetype]", :escape_html=>false, :preserve=>false, :keyword=>nil}))))) (tag {:name=>"div", :attributes=>{"class"=>"large-6 columns end"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "data-equalizer-watch"=>"", "style"=>"width: 104%; margin-left: -2%"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h6", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Deck Value"})) (tag {:name=>"p", :attributes=>{"id"=>"deck_value_loading", "style"=>"text-align: center; padding-top: 19px; padding-bottom: 20px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (plain {:text=>"Loading Data"}) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"img", :attributes=>{"src"=>"/img/loading.gif", "style"=>"margin-top: 6px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil})))))) (haml_comment {:text=>" TCGPlayer Mass Entry Link"}) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h4", :attributes=>{"style"=>"text-align: center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => @tcg_player_link,\n:target => \"_blank\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (plain {:text=>"Buy This Deck On"})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"img", :attributes=>{"src"=>"/img/tcgplayer_logo.png", "style"=>"height: 55px; padding-top: 4px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil})))))) (haml_comment {:text=>" YGOPro Download link"}) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Header"}) (tag {:name=>"h4", :attributes=>{"style"=>"text-align: center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/ygopro_deck/\#{@deck[:deck_list_id]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"img", :attributes=>{"src"=>"/img/ygopro_logo.png", "style"=>"height: 50px; margin-top: -4px; margin-bottom: -4px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (plain {:text=>"Download Deck for YGOPro"}))))))) (haml_comment {:text=>" Yugioh Deck Builder Link"}) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Header"}) (tag {:name=>"h4", :attributes=>{"style"=>"text-align: center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"http://yugiohdeckbuilder.com/import_ygo_top_deck/\#{@deck[:deck_list_id]}\",\n:target => '_blank'}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Import Decklist into Yugioh Deck Builder"})))))) (haml_comment {:text=>" Deck Lists"}) (tag {:name=>"div", :attributes=>{"class"=>"row", "data-equalizer"=>""}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Main Deck"}) (silent_script {:text=>" main_cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'main').order(:name)", :keyword=>nil}) (silent_script {:text=>" total_main_cards = main_cards.map { |x| x[:count] }.inject(0, :+)", :keyword=>nil}) (tag {:name=>"div", :attributes=>{"class"=>"large-6 columns", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"width: 104%; margin-left: -2%", "data-equalizer-watch"=>""}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Header"}) (tag {:name=>"h4", :attributes=>{"style"=>"text-align: center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Main Deck"}) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"small", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"(\#{total_main_cards} Cards)\""}))) (haml_comment {:text=>" Card List"}) (tag {:name=>"ul", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" [\"monster\", \"spell\", \"trap\"].each do | card_type |", :keyword=>nil} (silent_script {:text=>" sub_cards = main_cards.where(:card_type => card_type).order(:name)", :keyword=>nil}) (silent_script {:text=>" next if sub_cards.count == 0", :keyword=>nil}) (tag {:name=>"h5", :attributes=>{"style"=>"margin-top: 12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"\#{card_type.title}s\""})) (silent_script {:text=>" sub_cards.each do | card |", :keyword=>nil} (tag {:name=>"li", :attributes=>{"style"=>"list-style: none;"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"\#{card[:count]}x\""}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/card/\#{CGI.escape card[:name]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" card[:name]", :escape_html=>false, :preserve=>false, :keyword=>nil})))))))) (haml_comment {:text=>" Side and Extra Decks"}) (tag {:name=>"div", :attributes=>{"class"=>"large-6 columns", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"width: 104%; margin-left: -2%", "data-equalizer-watch"=>""}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Get Extra Deck Cards"}) (silent_script {:text=>" cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'extra').order(:name)", :keyword=>nil}) (silent_script {:text=>" total_cards = cards.map { |x| x[:count] }.inject(0, :+)", :keyword=>nil}) (haml_comment {:text=>" Extra Deck Header"}) (silent_script {:text=>" if total_cards > 0", :keyword=>"if"} (tag {:name=>"h4", :attributes=>{"style"=>"text-align: center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Extra Deck"}) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"small", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"(\#{total_cards} Cards)\""}))) (haml_comment {:text=>" Build array of card objects"}) (silent_script {:text=>" card_names = cards.map { |x| x[:name] }", :keyword=>nil}) (silent_script {:text=>" card_objects = Cards.where(:name => card_names).select(:name, :type).order(:name)", :keyword=>nil}) (haml_comment {:text=>" Write cards to page"}) (tag {:name=>"ul", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" card_objects.map { |x| x[:type].split(\"/\")[-1].strip }.uniq.sort.each do | card_type |", :keyword=>nil} (tag {:name=>"h5", :attributes=>{"style"=>"margin-top: 12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"card_type"})) (silent_script {:text=>" card_objects.each do | card_obj |", :keyword=>nil} (silent_script {:text=>" next if not card_obj[:type] =~ /\#{Regexp.escape card_type}/i", :keyword=>nil}) (silent_script {:text=>" card = cards.where(:name => card_obj[:name]).first", :keyword=>nil}) (tag {:name=>"li", :attributes=>{"style"=>"list-style: none;"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"\#{card[:count]}x\""}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/card/\#{CGI.escape card[:name]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" card[:name]", :escape_html=>false, :preserve=>false, :keyword=>nil}))))))) (haml_comment {:text=>" Side Deck"}) (haml_comment {:text=>" Get Cards"}) (silent_script {:text=>" cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'side').order(:name)", :keyword=>nil}) (silent_script {:text=>" total_cards = cards.map { |x| x[:count] }.inject(0, :+)", :keyword=>nil}) (silent_script {:text=>" if total_cards > 0", :keyword=>"if"} (haml_comment {:text=>" Header"}) (tag {:name=>"h4", :attributes=>{"style"=>"text-align: center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Side Deck"}) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"small", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"(\#{total_cards} Cards)\""}))) (haml_comment {:text=>" Card List"}) (tag {:name=>"ul", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" [\"monster\", \"spell\", \"trap\"].each do | card_type |", :keyword=>nil} (silent_script {:text=>" sub_cards = cards.where(:card_type => card_type).order(:name)", :keyword=>nil}) (silent_script {:text=>" next if sub_cards.count == 0", :keyword=>nil}) (tag {:name=>"h5", :attributes=>{"style"=>"margin-top: 12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"\#{card_type.title}s\""})) (silent_script {:text=>" sub_cards.each do | card |", :keyword=>nil} (tag {:name=>"li", :attributes=>{"style"=>"list-style: none;"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"\#{card[:count]}x\""}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/card/\#{CGI.escape card[:name]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" card[:name]", :escape_html=>false, :preserve=>false, :keyword=>nil})))))))))) (haml_comment {:text=>" Deck Price Breakdown"}) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"width: 102%; margin-left: -1%"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"id"=>"price_table_loading"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row", "style"=>"margin-bottom: -18px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-8 columns"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h6", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Deck Price Breakdown"}))) (tag {:name=>"div", :attributes=>{"class"=>"large-4 columns text-right"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"p", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (plain {:text=>"Loading Data..."}) (tag {:name=>"img", :attributes=>{"src"=>"/img/loading.gif"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil})))))))) (haml_comment {:text=>" Total Deck Value AJAX Loader"}) (filter {:name=>"javascript", :text=>"$.ajaxSetup ({\n cache: false\n});\n\nfunction load_deck_value() {\n var url = \"/calculate_deck_value/\" + \"\#{@deck[:deck_list_id]}\"\n $.get(url, function(data) {\n $('#deck_value_loading').replaceWith(data);\n load_deck_price_breakdown();\n }).error(function() {\n load_deck_value();\n });\n}\n\nfunction load_deck_price_breakdown() {\n var url = \"/deck_price_breakdown/\" + \"\#{@deck[:deck_list_id]}\"\n $.get(url, function(data) {\n $('#price_table_loading').replaceWith(data);\n $(\"[id=price_breakdown]\").each(function() {\n sorttable.makeSortable(this);\n });\n }).error(function() {\n load_deck_price_breakdown();\n });\n}\n\n$(function() {\n load_deck_value();\n});\n"})), @root=(root nil (haml_comment {:text=>" Decklist Header"}) (haml_comment {:text=>" Deck admin for fancy pants logged in users"}) (silent_script {:text=>" if @user_logged_in", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns", "style"=>"margin-bottom: -12px; width: 102%; margin-left: -1%"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"padding-bottom: 8px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Header and action buttons"}) (tag {:name=>"div", :attributes=>{"class"=>"row", "style"=>"margin-bottom: 4px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Header Text"}) (tag {:name=>"div", :attributes=>{"class"=>"large-4 columns"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h6", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Manage Deck"}))) (haml_comment {:text=>" Action Buttons"}) (tag {:name=>"div", :attributes=>{"class"=>"large-8 columns", "style"=>"margin-bottom: -14px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row", "style"=>"margin-bottom: -20px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-3 right columns"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/edit_existing_deck/\#{@deck[:deck_list_id]}\",\n:class => 'button postfix success',\n:style => 'font-weight: bold'}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (plain {:text=>"Edit Deck"})))))))))) (haml_comment {:text=>" We have a deck profile video"}) (silent_script {:text=>" if @deck[:video]", :keyword=>"if"} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-5 columns"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns panel"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h6", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"@deck[:deck_name]"})) (tag {:name=>"p", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Built By:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/duelist/\#{CGI.escape @deck[:deck_owner]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" @deck[:deck_owner]", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Played In:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/tournament/\#{CGI.escape @deck[:tournament_name]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"\"\#{@deck[:tournament_name]} (\#{Date::ABBR_MONTHNAMES[@deck[:tournament_date].month]} \#{@deck[:tournament_date].year})\"", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Placed:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/placed/\#{CGI.escape @deck[:tournament_placed]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" @deck[:tournament_placed]", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Main Archetype:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/decks/\#{CGI.escape @deck[:main_archetype]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" @deck[:main_archetype]", :escape_html=>false, :preserve=>false, :keyword=>nil}))))) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns panel", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h6", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Deck Value"})) (tag {:name=>"p", :attributes=>{"id"=>"deck_value_loading", "style"=>"text-align: center; padding-top: 19px; padding-bottom: 20px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (plain {:text=>"Loading Data"}) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"img", :attributes=>{"src"=>"/img/loading.gif", "style"=>"margin-top: 6px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}))))) (tag {:name=>"div", :attributes=>{"class"=>"large-7 columns"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns panel", "style"=>"margin-left: 6px; margin-right: -6px; padding-top: 15px; padding-bottom: 15px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" video_id = @deck[:video].split(\"v=\")[-1].split(\"/\")[-1].split(\"&\")[0].split(\"%\")[0]", :keyword=>nil}) (script {:text=>"\"<iframe width=\\\"560\\\" height=\\\"337\\\" src=\\\"//www.youtube.com/embed/\#{video_id}\\\" frameborder=\\\"0\\\" allowfullscreen></iframe>\"", :escape_html=>false, :preserve=>false, :keyword=>nil}))))) (silent_script {:text=>" else", :keyword=>"else"}) (tag {:name=>"div", :attributes=>{"class"=>"row", "data-equalizer"=>""}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-6 columns"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "data-equalizer-watch"=>"", "style"=>"width: 104%; margin-left: -2%"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h6", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"@deck[:deck_name]"})) (tag {:name=>"p", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Built By:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/duelist/\#{CGI.escape @deck[:deck_owner]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" @deck[:deck_owner]", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Played In:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/tournament/\#{CGI.escape @deck[:tournament_name]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>"\"\#{@deck[:tournament_name]} (\#{Date::ABBR_MONTHNAMES[@deck[:tournament_date].month]} \#{@deck[:tournament_date].year})\"", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Placed:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/placed/\#{CGI.escape @deck[:tournament_placed]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" @deck[:tournament_placed]", :escape_html=>false, :preserve=>false, :keyword=>nil})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Main Archetype:"}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/decks/\#{CGI.escape @deck[:main_archetype]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" @deck[:main_archetype]", :escape_html=>false, :preserve=>false, :keyword=>nil}))))) (tag {:name=>"div", :attributes=>{"class"=>"large-6 columns end"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "data-equalizer-watch"=>"", "style"=>"width: 104%; margin-left: -2%"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h6", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Deck Value"})) (tag {:name=>"p", :attributes=>{"id"=>"deck_value_loading", "style"=>"text-align: center; padding-top: 19px; padding-bottom: 20px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (plain {:text=>"Loading Data"}) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"img", :attributes=>{"src"=>"/img/loading.gif", "style"=>"margin-top: 6px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil})))))) (haml_comment {:text=>" TCGPlayer Mass Entry Link"}) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h4", :attributes=>{"style"=>"text-align: center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => @tcg_player_link,\n:target => \"_blank\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (plain {:text=>"Buy This Deck On"})) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"img", :attributes=>{"src"=>"/img/tcgplayer_logo.png", "style"=>"height: 55px; padding-top: 4px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil})))))) (haml_comment {:text=>" YGOPro Download link"}) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Header"}) (tag {:name=>"h4", :attributes=>{"style"=>"text-align: center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/ygopro_deck/\#{@deck[:deck_list_id]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"img", :attributes=>{"src"=>"/img/ygopro_logo.png", "style"=>"height: 50px; margin-top: -4px; margin-bottom: -4px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (plain {:text=>"Download Deck for YGOPro"}))))))) (haml_comment {:text=>" Yugioh Deck Builder Link"}) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Header"}) (tag {:name=>"h4", :attributes=>{"style"=>"text-align: center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"http://yugiohdeckbuilder.com/import_ygo_top_deck/\#{@deck[:deck_list_id]}\",\n:target => '_blank'}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Import Decklist into Yugioh Deck Builder"})))))) (haml_comment {:text=>" Deck Lists"}) (tag {:name=>"div", :attributes=>{"class"=>"row", "data-equalizer"=>""}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Main Deck"}) (silent_script {:text=>" main_cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'main').order(:name)", :keyword=>nil}) (silent_script {:text=>" total_main_cards = main_cards.map { |x| x[:count] }.inject(0, :+)", :keyword=>nil}) (tag {:name=>"div", :attributes=>{"class"=>"large-6 columns", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"width: 104%; margin-left: -2%", "data-equalizer-watch"=>""}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Header"}) (tag {:name=>"h4", :attributes=>{"style"=>"text-align: center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Main Deck"}) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"small", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"(\#{total_main_cards} Cards)\""}))) (haml_comment {:text=>" Card List"}) (tag {:name=>"ul", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" [\"monster\", \"spell\", \"trap\"].each do | card_type |", :keyword=>nil} (silent_script {:text=>" sub_cards = main_cards.where(:card_type => card_type).order(:name)", :keyword=>nil}) (silent_script {:text=>" next if sub_cards.count == 0", :keyword=>nil}) (tag {:name=>"h5", :attributes=>{"style"=>"margin-top: 12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"\#{card_type.title}s\""})) (silent_script {:text=>" sub_cards.each do | card |", :keyword=>nil} (tag {:name=>"li", :attributes=>{"style"=>"list-style: none;"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"\#{card[:count]}x\""}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/card/\#{CGI.escape card[:name]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" card[:name]", :escape_html=>false, :preserve=>false, :keyword=>nil})))))))) (haml_comment {:text=>" Side and Extra Decks"}) (tag {:name=>"div", :attributes=>{"class"=>"large-6 columns", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"width: 104%; margin-left: -2%", "data-equalizer-watch"=>""}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (haml_comment {:text=>" Get Extra Deck Cards"}) (silent_script {:text=>" cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'extra').order(:name)", :keyword=>nil}) (silent_script {:text=>" total_cards = cards.map { |x| x[:count] }.inject(0, :+)", :keyword=>nil}) (haml_comment {:text=>" Extra Deck Header"}) (silent_script {:text=>" if total_cards > 0", :keyword=>"if"} (tag {:name=>"h4", :attributes=>{"style"=>"text-align: center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Extra Deck"}) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"small", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"(\#{total_cards} Cards)\""}))) (haml_comment {:text=>" Build array of card objects"}) (silent_script {:text=>" card_names = cards.map { |x| x[:name] }", :keyword=>nil}) (silent_script {:text=>" card_objects = Cards.where(:name => card_names).select(:name, :type).order(:name)", :keyword=>nil}) (haml_comment {:text=>" Write cards to page"}) (tag {:name=>"ul", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" card_objects.map { |x| x[:type].split(\"/\")[-1].strip }.uniq.sort.each do | card_type |", :keyword=>nil} (tag {:name=>"h5", :attributes=>{"style"=>"margin-top: 12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"card_type"})) (silent_script {:text=>" card_objects.each do | card_obj |", :keyword=>nil} (silent_script {:text=>" next if not card_obj[:type] =~ /\#{Regexp.escape card_type}/i", :keyword=>nil}) (silent_script {:text=>" card = cards.where(:name => card_obj[:name]).first", :keyword=>nil}) (tag {:name=>"li", :attributes=>{"style"=>"list-style: none;"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"\#{card[:count]}x\""}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/card/\#{CGI.escape card[:name]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" card[:name]", :escape_html=>false, :preserve=>false, :keyword=>nil}))))))) (haml_comment {:text=>" Side Deck"}) (haml_comment {:text=>" Get Cards"}) (silent_script {:text=>" cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'side').order(:name)", :keyword=>nil}) (silent_script {:text=>" total_cards = cards.map { |x| x[:count] }.inject(0, :+)", :keyword=>nil}) (silent_script {:text=>" if total_cards > 0", :keyword=>"if"} (haml_comment {:text=>" Header"}) (tag {:name=>"h4", :attributes=>{"style"=>"text-align: center"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Side Deck"}) (tag {:name=>"br", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil}) (tag {:name=>"small", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"(\#{total_cards} Cards)\""}))) (haml_comment {:text=>" Card List"}) (tag {:name=>"ul", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (silent_script {:text=>" [\"monster\", \"spell\", \"trap\"].each do | card_type |", :keyword=>nil} (silent_script {:text=>" sub_cards = cards.where(:card_type => card_type).order(:name)", :keyword=>nil}) (silent_script {:text=>" next if sub_cards.count == 0", :keyword=>nil}) (tag {:name=>"h5", :attributes=>{"style"=>"margin-top: 12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"\#{card_type.title}s\""})) (silent_script {:text=>" sub_cards.each do | card |", :keyword=>nil} (tag {:name=>"li", :attributes=>{"style"=>"list-style: none;"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>true, :value=>"\"\#{card[:count]}x\""}) (tag {:name=>"a", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old="{:href => \"/card/\#{CGI.escape card[:name]}\"}">, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (script {:text=>" card[:name]", :escape_html=>false, :preserve=>false, :keyword=>nil})))))))))) (haml_comment {:text=>" Deck Price Breakdown"}) (tag {:name=>"div", :attributes=>{"class"=>"row"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-12 columns", "style"=>"margin-top: -12px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"panel", "style"=>"width: 102%; margin-left: -1%"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"id"=>"price_table_loading"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"row", "style"=>"margin-bottom: -18px"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"div", :attributes=>{"class"=>"large-8 columns"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"h6", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"b", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>"Deck Price Breakdown"}))) (tag {:name=>"div", :attributes=>{"class"=>"large-4 columns text-right"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (tag {:name=>"p", :attributes=>{}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>false, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil} (plain {:text=>"Loading Data..."}) (tag {:name=>"img", :attributes=>{"src"=>"/img/loading.gif"}, :dynamic_attributes=>#<struct Haml::Parser::DynamicAttributes new=nil, old=nil>, :self_closing=>true, :nuke_inner_whitespace=>false, :nuke_outer_whitespace=>nil, :object_ref=>:nil, :escape_html=>false, :preserve_tag=>false, :preserve_script=>nil, :parse=>nil, :value=>nil})))))))) (haml_comment {:text=>" Total Deck Value AJAX Loader"}) (filter {:name=>"javascript", :text=>"$.ajaxSetup ({\n cache: false\n});\n\nfunction load_deck_value() {\n var url = \"/calculate_deck_value/\" + \"\#{@deck[:deck_list_id]}\"\n $.get(url, function(data) {\n $('#deck_value_loading').replaceWith(data);\n load_deck_price_breakdown();\n }).error(function() {\n load_deck_value();\n });\n}\n\nfunction load_deck_price_breakdown() {\n var url = \"/deck_price_breakdown/\" + \"\#{@deck[:deck_list_id]}\"\n $.get(url, function(data) {\n $('#price_table_loading').replaceWith(data);\n $(\"[id=price_breakdown]\").each(function() {\n sorttable.makeSortable(this);\n });\n }).error(function() {\n load_deck_price_breakdown();\n });\n}\n\n$(function() {\n load_deck_value();\n});\n"})), @flat=false, @filter_buffer=nil, @indentation=" ", @next_line=#<struct Haml::Parser::Line whitespace=nil, text="-#", full="-#", index=300, parser=#<Haml::Parser:0x000000012e7c4118 ...>, eod=true>, @line=#<struct Haml::Parser::Line whitespace=nil, text="-#", full="-#", index=300, parser=#<Haml::Parser:0x000000012e7c4118 ...>, eod=true>, @tab_up=nil, @flat_spaces=nil>, #<Haml::Compiler:0x000000012e7bece0 @options=#<Haml::Options:0x000000012e7becb8 @attr_wrapper="'", @autoclose=["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "menuitem", "meta", "param", "source", "track", "wbr"], @encoding="UTF-8", @escape_attrs=true, @escape_html=false, @escape_filter_interpolations=nil, @filename="/srv/api/ygo_top_decks/web/views/deck_profile.haml", @format=:html5, @hyphenate_data_attrs=true, @line=1, @mime_type="text/html", @preserve=["textarea", "pre", "code"], @remove_whitespace=false, @suppress_eval=false, @cdata=false, @parser_class=Haml::Parser, @compiler_class=Haml::Compiler, @trace=false, @filters={}>, @to_merge=[], @temple=[:multi, [:code, "\n\n\n if @user_logged_in\n"], [:static, "<div"], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='large-12 columns'"], [:static, " style='margin-bottom: -12px; width: 102%; margin-left: -1%'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='panel'"], [:static, " style='padding-bottom: 8px'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:newline], [:multi, [:static, " class='row'"], [:static, " style='margin-bottom: 4px'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:newline], [:multi, [:static, " class='large-4 columns'"]], [:static, ">\n"], [:static, "<h6"], [:newline], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Manage Deck</b>\n"], [:static, "</h6>\n"], [:static, "</div>\n"], [:static, "<div"], [:newline], [:newline], [:newline], [:multi, [:static, " class='large-8 columns'"], [:static, " style='margin-bottom: -14px'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='row'"], [:static, " style='margin-bottom: -20px'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='large-3 right columns'"]], [:static, ">\n"], [:static, "<a"], [:newline], [:multi, [:static, " class='button postfix success'"], [:multi, [:code, "_haml_attribute_compiler1 = (\"/edit_existing_deck/\#{@deck[:deck_list_id]}\")"], [:case, "_haml_attribute_compiler1", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler1 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler1"]], [:static, "'"]]]]], [:static, " style='font-weight: bold'"]], [:static, ">\n"], [:static, "Edit Deck\n"], [:static, "</a>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:code, "end;"], [:code, "\n\n\n\n\n\n\n if @deck[:video]\n"], [:static, "<div"], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='large-5 columns'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='large-12 columns panel'"]], [:static, ">\n"], [:static, "<h6"], [:newline], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:dynamic, "(@deck[:deck_name]\n).to_s"], [:static, "</b>\n"], [:static, "</h6>\n"], [:static, "<p"], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Built By:</b>\n"], [:static, "<a"], [:newline], [:multi, [:multi, [:code, "_haml_attribute_compiler2 = (\"/duelist/\#{CGI.escape @deck[:deck_owner]}\")"], [:case, "_haml_attribute_compiler2", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler2 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler2"]], [:static, "'"]]]]]], [:static, ">\n"], [:dynamic, "\n( @deck[:deck_owner]\n).to_s"], [:static, "\n"], [:static, "</a>\n"], [:static, "<br"], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Played In:</b>\n"], [:static, "<a"], [:newline], [:multi, [:multi, [:code, "_haml_attribute_compiler3 = (\"/tournament/\#{CGI.escape @deck[:tournament_name]}\")"], [:case, "_haml_attribute_compiler3", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler3 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler3"]], [:static, "'"]]]]]], [:static, ">\n"], [:dynamic, "\n(\"\#{@deck[:tournament_name]} (\#{Date::ABBR_MONTHNAMES[@deck[:tournament_date].month]} \#{@deck[:tournament_date].year})\"\n).to_s"], [:static, "\n"], [:static, "</a>\n"], [:static, "<br"], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Placed:</b>\n"], [:static, "<a"], [:newline], [:multi, [:multi, [:code, "_haml_attribute_compiler4 = (\"/placed/\#{CGI.escape @deck[:tournament_placed]}\")"], [:case, "_haml_attribute_compiler4", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler4 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler4"]], [:static, "'"]]]]]], [:static, ">\n"], [:dynamic, "\n( @deck[:tournament_placed]\n).to_s"], [:static, "\n"], [:static, "</a>\n"], [:static, "<br"], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Main Archetype:</b>\n"], [:static, "<a"], [:newline], [:multi, [:multi, [:code, "_haml_attribute_compiler5 = (\"/decks/\#{CGI.escape @deck[:main_archetype]}\")"], [:case, "_haml_attribute_compiler5", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler5 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler5"]], [:static, "'"]]]]]], [:static, ">\n"], [:dynamic, "\n( @deck[:main_archetype]\n).to_s"], [:static, "\n"], [:static, "</a>\n"], [:static, "</p>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='large-12 columns panel'"], [:static, " style='margin-top: -12px'"]], [:static, ">\n"], [:static, "<h6"], [:newline], [:newline], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Deck Value</b>\n"], [:static, "</h6>\n"], [:static, "<p"], [:newline], [:newline], [:multi, [:static, " id='deck_value_loading'"], [:static, " style='text-align: center; padding-top: 19px; padding-bottom: 20px'"]], [:static, ">\n"], [:static, "Loading Data\n"], [:static, "<br"], [:newline], [:newline], [:newline], [:multi], [:static, ">\n"], [:static, "<img"], [:newline], [:multi, [:static, " src='/img/loading.gif'"], [:static, " style='margin-top: 6px'"]], [:static, ">\n"], [:static, "</p>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "<div"], [:newline], [:newline], [:newline], [:multi, [:static, " class='large-7 columns'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='large-12 columns panel'"], [:static, " style='margin-left: 6px; margin-right: -6px; padding-top: 15px; padding-bottom: 15px'"]], [:static, ">\n"], [:code, "\n\n video_id = @deck[:video].split(\"v=\")[-1].split(\"/\")[-1].split(\"&\")[0].split(\"%\")[0]\n"], [:dynamic, "(\"<iframe width=\\\"560\\\" height=\\\"337\\\" src=\\\"//www.youtube.com/embed/\#{video_id}\\\" frameborder=\\\"0\\\" allowfullscreen></iframe>\"\n).to_s"], [:static, "\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:code, "\n else\n"], [:static, "<div"], [:multi, [:static, " class='row'"], [:static, " data-equalizer=''"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='large-6 columns'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='panel'"], [:static, " data-equalizer-watch=''"], [:static, " style='width: 104%; margin-left: -2%'"]], [:static, ">\n"], [:static, "<h6"], [:newline], [:newline], [:newline], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:dynamic, "(@deck[:deck_name]\n).to_s"], [:static, "</b>\n"], [:static, "</h6>\n"], [:static, "<p"], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Built By:</b>\n"], [:static, "<a"], [:newline], [:multi, [:multi, [:code, "_haml_attribute_compiler6 = (\"/duelist/\#{CGI.escape @deck[:deck_owner]}\")"], [:case, "_haml_attribute_compiler6", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler6 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler6"]], [:static, "'"]]]]]], [:static, ">\n"], [:dynamic, "\n( @deck[:deck_owner]\n).to_s"], [:static, "\n"], [:static, "</a>\n"], [:static, "<br"], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Played In:</b>\n"], [:static, "<a"], [:newline], [:multi, [:multi, [:code, "_haml_attribute_compiler7 = (\"/tournament/\#{CGI.escape @deck[:tournament_name]}\")"], [:case, "_haml_attribute_compiler7", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler7 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler7"]], [:static, "'"]]]]]], [:static, ">\n"], [:dynamic, "\n(\"\#{@deck[:tournament_name]} (\#{Date::ABBR_MONTHNAMES[@deck[:tournament_date].month]} \#{@deck[:tournament_date].year})\"\n).to_s"], [:static, "\n"], [:static, "</a>\n"], [:static, "<br"], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Placed:</b>\n"], [:static, "<a"], [:newline], [:multi, [:multi, [:code, "_haml_attribute_compiler8 = (\"/placed/\#{CGI.escape @deck[:tournament_placed]}\")"], [:case, "_haml_attribute_compiler8", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler8 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler8"]], [:static, "'"]]]]]], [:static, ">\n"], [:dynamic, "\n( @deck[:tournament_placed]\n).to_s"], [:static, "\n"], [:static, "</a>\n"], [:static, "<br"], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Main Archetype:</b>\n"], [:static, "<a"], [:newline], [:multi, [:multi, [:code, "_haml_attribute_compiler9 = (\"/decks/\#{CGI.escape @deck[:main_archetype]}\")"], [:case, "_haml_attribute_compiler9", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler9 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler9"]], [:static, "'"]]]]]], [:static, ">\n"], [:dynamic, "\n( @deck[:main_archetype]\n).to_s"], [:static, "\n"], [:static, "</a>\n"], [:static, "</p>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='large-6 columns end'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='panel'"], [:static, " data-equalizer-watch=''"], [:static, " style='width: 104%; margin-left: -2%'"]], [:static, ">\n"], [:static, "<h6"], [:newline], [:newline], [:newline], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Deck Value</b>\n"], [:static, "</h6>\n"], [:static, "<p"], [:newline], [:multi, [:static, " id='deck_value_loading'"], [:static, " style='text-align: center; padding-top: 19px; padding-bottom: 20px'"]], [:static, ">\n"], [:static, "Loading Data\n"], [:static, "<br"], [:newline], [:newline], [:newline], [:multi], [:static, ">\n"], [:static, "<img"], [:newline], [:multi, [:static, " src='/img/loading.gif'"], [:static, " style='margin-top: 6px'"]], [:static, ">\n"], [:static, "</p>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:code, "end;"], [:static, "<div"], [:newline], [:newline], [:newline], [:newline], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='large-12 columns'"], [:static, " style='margin-top: -12px'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='panel'"], [:static, " style='width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px'"]], [:static, ">\n"], [:static, "<h4"], [:newline], [:newline], [:multi, [:static, " style='text-align: center'"]], [:static, ">\n"], [:static, "<a"], [:newline], [:multi, [:multi, [:code, "_haml_attribute_compiler10 = (@tcg_player_link)"], [:case, "_haml_attribute_compiler10", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler10 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler10"]], [:static, "'"]]]]], [:static, " target='_blank'"]], [:static, ">\n"], [:static, "<b"], [:newline], [:newline], [:multi], [:static, ">\n"], [:static, "Buy This Deck On\n"], [:static, "</b>\n"], [:static, "<br"], [:newline], [:newline], [:multi], [:static, ">\n"], [:static, "<img"], [:newline], [:multi, [:static, " src='/img/tcgplayer_logo.png'"], [:static, " style='height: 55px; padding-top: 4px'"]], [:static, ">\n"], [:static, "</a>\n"], [:static, "</h4>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "<div"], [:newline], [:newline], [:newline], [:newline], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='large-12 columns'"], [:static, " style='margin-top: -12px'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='panel'"], [:static, " style='width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px'"]], [:static, ">\n"], [:static, "<h4"], [:newline], [:newline], [:newline], [:multi, [:static, " style='text-align: center'"]], [:static, ">\n"], [:static, "<a"], [:newline], [:multi, [:multi, [:code, "_haml_attribute_compiler11 = (\"/ygopro_deck/\#{@deck[:deck_list_id]}\")"], [:case, "_haml_attribute_compiler11", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler11 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler11"]], [:static, "'"]]]]]], [:static, ">\n"], [:static, "<img"], [:newline], [:multi, [:static, " src='/img/ygopro_logo.png'"], [:static, " style='height: 50px; margin-top: -4px; margin-bottom: -4px'"]], [:static, ">\n"], [:static, "<b"], [:newline], [:newline], [:multi], [:static, ">\n"], [:static, "Download Deck for YGOPro\n"], [:static, "</b>\n"], [:static, "</a>\n"], [:static, "</h4>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "<div"], [:newline], [:newline], [:newline], [:newline], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='large-12 columns'"], [:static, " style='margin-top: -12px'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='panel'"], [:static, " style='width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px'"]], [:static, ">\n"], [:static, "<h4"], [:newline], [:newline], [:newline], [:multi, [:static, " style='text-align: center'"]], [:static, ">\n"], [:static, "<a"], [:newline], [:multi, [:multi, [:code, "_haml_attribute_compiler12 = (\"http://yugiohdeckbuilder.com/import_ygo_top_deck/\#{@deck[:deck_list_id]}\")"], [:case, "_haml_attribute_compiler12", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler12 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler12"]], [:static, "'"]]]]], [:static, " target='_blank'"]], [:static, ">\n"], [:static, "<b"], [:newline], [:newline], [:multi], [:static, ">"], [:static, "Import Decklist into Yugioh Deck Builder</b>\n"], [:static, "</a>\n"], [:static, "</h4>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "<div"], [:newline], [:newline], [:newline], [:newline], [:multi, [:static, " class='row'"], [:static, " data-equalizer=''"]], [:static, ">\n"], [:code, "\n\n\n main_cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'main').order(:name)\n"], [:code, " total_main_cards = main_cards.map { |x| x[:count] }.inject(0, :+)\n"], [:static, "<div"], [:multi, [:static, " class='large-6 columns'"], [:static, " style='margin-top: -12px'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='panel'"], [:static, " data-equalizer-watch=''"], [:static, " style='width: 104%; margin-left: -2%'"]], [:static, ">\n"], [:static, "<h4"], [:newline], [:newline], [:newline], [:newline], [:multi, [:static, " style='text-align: center'"]], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Main Deck</b>\n"], [:static, "<br"], [:newline], [:multi], [:static, ">\n"], [:static, "<small"], [:newline], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:dynamic, "(\"(\#{total_main_cards} Cards)\"\n).to_s"], [:static, "</b>\n"], [:static, "</small>\n"], [:static, "</h4>\n"], [:static, "<ul"], [:newline], [:newline], [:multi], [:static, ">\n"], [:code, "\n [\"monster\", \"spell\", \"trap\"].each do | card_type |\n"], [:code, " sub_cards = main_cards.where(:card_type => card_type).order(:name)\n"], [:code, " next if sub_cards.count == 0\n"], [:static, "<h5"], [:newline], [:multi, [:static, " style='margin-top: 12px'"]], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:dynamic, "(\"\#{card_type.title}s\"\n).to_s"], [:static, "</b>\n"], [:static, "</h5>\n"], [:code, " sub_cards.each do | card |\n"], [:static, "<li"], [:multi, [:static, " style='list-style: none;'"]], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:dynamic, "(\"\#{card[:count]}x\"\n).to_s"], [:static, "</b>\n"], [:static, "<a"], [:multi, [:multi, [:code, "_haml_attribute_compiler13 = (\"/card/\#{CGI.escape card[:name]}\")"], [:case, "_haml_attribute_compiler13", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler13 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler13"]], [:static, "'"]]]]]], [:static, ">\n"], [:dynamic, "\n( card[:name]\n).to_s"], [:static, "\n"], [:static, "</a>\n"], [:static, "</li>\n"], [:code, "end;"], [:code, "end;"], [:static, "</ul>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='large-6 columns'"], [:static, " style='margin-top: -12px'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='panel'"], [:static, " data-equalizer-watch=''"], [:static, " style='width: 104%; margin-left: -2%'"]], [:static, ">\n"], [:code, "\n\n\n\n cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'extra').order(:name)\n"], [:code, " total_cards = cards.map { |x| x[:count] }.inject(0, :+)\n"], [:code, "\n\n if total_cards > 0\n"], [:static, "<h4"], [:multi, [:static, " style='text-align: center'"]], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Extra Deck</b>\n"], [:static, "<br"], [:newline], [:multi], [:static, ">\n"], [:static, "<small"], [:newline], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:dynamic, "(\"(\#{total_cards} Cards)\"\n).to_s"], [:static, "</b>\n"], [:static, "</small>\n"], [:static, "</h4>\n"], [:code, "\n\n card_names = cards.map { |x| x[:name] }\n"], [:code, " card_objects = Cards.where(:name => card_names).select(:name, :type).order(:name)\n"], [:static, "<ul"], [:newline], [:newline], [:multi], [:static, ">\n"], [:code, "\n card_objects.map { |x| x[:type].split(\"/\")[-1].strip }.uniq.sort.each do | card_type |\n"], [:static, "<h5"], [:multi, [:static, " style='margin-top: 12px'"]], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:dynamic, "(card_type\n).to_s"], [:static, "</b>\n"], [:static, "</h5>\n"], [:code, " card_objects.each do | card_obj |\n"], [:code, " next if not card_obj[:type] =~ /\#{Regexp.escape card_type}/i\n"], [:code, " card = cards.where(:name => card_obj[:name]).first\n"], [:static, "<li"], [:multi, [:static, " style='list-style: none;'"]], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:dynamic, "(\"\#{card[:count]}x\"\n).to_s"], [:static, "</b>\n"], [:static, "<a"], [:multi, [:multi, [:code, "_haml_attribute_compiler14 = (\"/card/\#{CGI.escape card[:name]}\")"], [:case, "_haml_attribute_compiler14", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler14 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler14"]], [:static, "'"]]]]]], [:static, ">\n"], [:dynamic, "\n( card[:name]\n).to_s"], [:static, "\n"], [:static, "</a>\n"], [:static, "</li>\n"], [:code, "end;"], [:code, "end;"], [:static, "</ul>\n"], [:code, "end;"], [:code, "\n\n\n\n cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'side').order(:name)\n"], [:code, " total_cards = cards.map { |x| x[:count] }.inject(0, :+)\n"], [:code, "\n if total_cards > 0\n"], [:static, "<h4"], [:newline], [:multi, [:static, " style='text-align: center'"]], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Side Deck</b>\n"], [:static, "<br"], [:newline], [:multi], [:static, ">\n"], [:static, "<small"], [:newline], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:dynamic, "(\"(\#{total_cards} Cards)\"\n).to_s"], [:static, "</b>\n"], [:static, "</small>\n"], [:static, "</h4>\n"], [:static, "<ul"], [:newline], [:newline], [:multi], [:static, ">\n"], [:code, "\n [\"monster\", \"spell\", \"trap\"].each do | card_type |\n"], [:code, " sub_cards = cards.where(:card_type => card_type).order(:name)\n"], [:code, " next if sub_cards.count == 0\n"], [:static, "<h5"], [:newline], [:multi, [:static, " style='margin-top: 12px'"]], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:dynamic, "(\"\#{card_type.title}s\"\n).to_s"], [:static, "</b>\n"], [:static, "</h5>\n"], [:code, " sub_cards.each do | card |\n"], [:static, "<li"], [:multi, [:static, " style='list-style: none;'"]], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:dynamic, "(\"\#{card[:count]}x\"\n).to_s"], [:static, "</b>\n"], [:static, "<a"], [:multi, [:multi, [:code, "_haml_attribute_compiler15 = (\"/card/\#{CGI.escape card[:name]}\")"], [:case, "_haml_attribute_compiler15", ["Hash", [:dynamic, "::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler15 }, nil, true, \"'\", true, true)"]], ["true", [:static, " href"]], ["false, nil", [:multi]], [:else, [:multi, [:static, " href='"], [:escape, #<struct Haml::Escapable::EscapeSafeBuffer value=true>, [:dynamic, "_haml_attribute_compiler15"]], [:static, "'"]]]]]], [:static, ">\n"], [:dynamic, "\n( card[:name]\n).to_s"], [:static, "\n"], [:static, "</a>\n"], [:static, "</li>\n"], [:code, "end;"], [:code, "end;"], [:static, "</ul>\n"], [:code, "end;"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "<div"], [:newline], [:newline], [:newline], [:multi, [:static, " class='row'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='large-12 columns'"], [:static, " style='margin-top: -12px'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='panel'"], [:static, " style='width: 102%; margin-left: -1%'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " id='price_table_loading'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:multi, [:static, " class='row'"], [:static, " style='margin-bottom: -18px'"]], [:static, ">\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='large-8 columns'"]], [:static, ">\n"], [:static, "<h6"], [:newline], [:multi], [:static, ">\n"], [:static, "<b"], [:newline], [:multi], [:static, ">"], [:static, "Deck Price Breakdown</b>\n"], [:static, "</h6>\n"], [:static, "</div>\n"], [:static, "<div"], [:newline], [:newline], [:multi, [:static, " class='large-4 columns text-right'"]], [:static, ">\n"], [:static, "<p"], [:newline], [:multi], [:static, ">\n"], [:static, "Loading Data...\n"], [:static, "<img"], [:newline], [:newline], [:multi, [:static, " src='/img/loading.gif'"]], [:static, ">\n"], [:static, "</p>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:static, "</div>\n"], [:dynamic, "\n\n\n(find_and_preserve(Haml::Filters::Javascript.render_with_options(\n\"$.ajaxSetup ({\n cache: false\n});\n\nfunction load_deck_value() {\n var url = \\\"/calculate_deck_value/\\\" + \\\"\#{@deck[:deck_list_id]}\\\"\n $.get(url, function(data) {\n $('#deck_value_loading').replaceWith(data);\n load_deck_price_breakdown();\n }).error(function() {\n load_deck_value();\n });\n}\n\nfunction load_deck_price_breakdown() {\n var url = \\\"/deck_price_breakdown/\\\" + \\\"\#{@deck[:deck_list_id]}\\\"\n $.get(url, function(data) {\n $('#price_table_loading').replaceWith(data);\n $(\\\"[id=price_breakdown]\\\").each(function() {\n sorttable.makeSortable(this);\n });\n }).error(function() {\n load_deck_price_breakdown();\n });\n}\n\n$(function() {\n load_deck_value();\n});\\n\", _hamlout.options))\n).to_s"], [:static, "\n"]], @node=nil, @filters={"plain"=>Haml::Filters::Plain, "javascript"=>Haml::Filters::Javascript, "css"=>Haml::Filters::Css, "cdata"=>Haml::Filters::Cdata, "escaped"=>Haml::Filters::Escaped, "ruby"=>Haml::Filters::Ruby, "preserve"=>Haml::Filters::Preserve, "sass"=>Haml::Filters::Sass, "scss"=>Haml::Filters::Scss, "less"=>Haml::Filters::Less, "markdown"=>Haml::Filters::Markdown, "erb"=>Haml::Filters::Erb, "coffee"=>Haml::Filters::Coffee, "coffeescript"=>Haml::Filters::Coffee}, @attribute_compiler=#<Haml::AttributeCompiler:0x000000012e7bd958 @is_html=true, @attr_wrapper="'", @escape_attrs=true, @hyphenate_data_attrs=true, @unique_name=15>, @output_line=301>, #<Haml::Escapable:0x000000012e7bd340 @options=#<Temple::ImmutableMap:0x000000012e7bcff8 @map=[{}]>, @escape=false, @escape_safe_buffer=false>, #<Temple::Filters::ControlFlow:0x000000012e7bca30 @options=#<Temple::ImmutableMap:0x000000012e7bc7d8 @map=[{}]>>, #<Temple::Filters::MultiFlattener:0x000000012e7bc2b0 @options=#<Temple::ImmutableMap:0x000000012e7b7fd0 @map=[{}]>>, #<Temple::Filters::StaticMerger:0x000000012e7b79b8 @options=#<Temple::ImmutableMap:0x000000012e7b7648 @map=[{}]>>, #<Haml::Generator:0x000000012e7b7058 @options=#<Temple::ImmutableMap:0x000000012e7b6ea0 @map=[{:freeze_static=>true}]>>], @precompiled="\n\n\n if @user_logged_in\n; _hamlout.buffer << (\"<div class='row'>\\n<div class='large-12 columns' style='margin-bottom: -12px; width: 102%; margin-left: -1%'>\\n<div class='panel' style='padding-bottom: 8px'>\\n<div class='row' style='margin-bottom: 4px'>\\n<div class='large-4 columns'>\\n<h6>\\n<b>Manage Deck</b>\\n</h6>\\n</div>\\n<div class='large-8 columns' style='margin-bottom: -14px'>\\n<div class='row' style='margin-bottom: -20px'>\\n<div class='large-3 right columns'>\\n<a class='button postfix success'\".freeze);; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; _haml_attribute_compiler1 = (\"/edit_existing_deck/\#{@deck[:deck_list_id]}\"); case (_haml_attribute_compiler1); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler1 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler1)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\" style='font-weight: bold'>\\nEdit Deck\\n</a>\\n</div>\\n</div>\\n</div>\\n</div>\\n</div>\\n</div>\\n</div>\\n\".freeze);; end;; \n\n\n\n\n\n\n if @deck[:video]\n; _hamlout.buffer << (\"<div class='row'>\\n<div class='large-5 columns'>\\n<div class='row'>\\n<div class='large-12 columns panel'>\\n<h6>\\n<b>\".freeze);; \n; \n; \n; \n; \n; _hamlout.buffer << (((@deck[:deck_name]\n).to_s).to_s);; _hamlout.buffer << (\"</b>\\n</h6>\\n<p>\\n<b>Built By:</b>\\n<a\".freeze);; \n; \n; _haml_attribute_compiler2 = (\"/duelist/\#{CGI.escape @deck[:deck_owner]}\"); case (_haml_attribute_compiler2); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler2 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler2)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">\\n\".freeze);; _hamlout.buffer << ((\n( @deck[:deck_owner]\n).to_s).to_s);; _hamlout.buffer << (\"\\n</a>\\n<br>\\n<b>Played In:</b>\\n<a\".freeze);; \n; \n; _haml_attribute_compiler3 = (\"/tournament/\#{CGI.escape @deck[:tournament_name]}\"); case (_haml_attribute_compiler3); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler3 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler3)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">\\n\".freeze);; _hamlout.buffer << ((\n(\"\#{@deck[:tournament_name]} (\#{Date::ABBR_MONTHNAMES[@deck[:tournament_date].month]} \#{@deck[:tournament_date].year})\"\n).to_s).to_s);; _hamlout.buffer << (\"\\n</a>\\n<br>\\n<b>Placed:</b>\\n<a\".freeze);; \n; \n; _haml_attribute_compiler4 = (\"/placed/\#{CGI.escape @deck[:tournament_placed]}\"); case (_haml_attribute_compiler4); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler4 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler4)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">\\n\".freeze);; _hamlout.buffer << ((\n( @deck[:tournament_placed]\n).to_s).to_s);; _hamlout.buffer << (\"\\n</a>\\n<br>\\n<b>Main Archetype:</b>\\n<a\".freeze);; \n; \n; _haml_attribute_compiler5 = (\"/decks/\#{CGI.escape @deck[:main_archetype]}\"); case (_haml_attribute_compiler5); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler5 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler5)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">\\n\".freeze);; _hamlout.buffer << ((\n( @deck[:main_archetype]\n).to_s).to_s);; _hamlout.buffer << (\"\\n</a>\\n</p>\\n</div>\\n</div>\\n<div class='row'>\\n<div class='large-12 columns panel' style='margin-top: -12px'>\\n<h6>\\n<b>Deck Value</b>\\n</h6>\\n<p id='deck_value_loading' style='text-align: center; padding-top: 19px; padding-bottom: 20px'>\\nLoading Data\\n<br>\\n<img src='/img/loading.gif' style='margin-top: 6px'>\\n</p>\\n</div>\\n</div>\\n</div>\\n<div class='large-7 columns'>\\n<div class='row'>\\n<div class='large-12 columns panel' style='margin-left: 6px; margin-right: -6px; padding-top: 15px; padding-bottom: 15px'>\\n\".freeze);; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n\n video_id = @deck[:video].split(\"v=\")[-1].split(\"/\")[-1].split(\"&\")[0].split(\"%\")[0]\n; _hamlout.buffer << (((\"<iframe width=\\\"560\\\" height=\\\"337\\\" src=\\\"//www.youtube.com/embed/\#{video_id}\\\" frameborder=\\\"0\\\" allowfullscreen></iframe>\"\n).to_s).to_s);; _hamlout.buffer << (\"\\n</div>\\n</div>\\n</div>\\n</div>\\n\".freeze);; \n else\n; _hamlout.buffer << (\"<div class='row' data-equalizer=''>\\n<div class='large-6 columns'>\\n<div class='panel' data-equalizer-watch='' style='width: 104%; margin-left: -2%'>\\n<h6>\\n<b>\".freeze);; \n; \n; \n; \n; \n; \n; \n; _hamlout.buffer << (((@deck[:deck_name]\n).to_s).to_s);; _hamlout.buffer << (\"</b>\\n</h6>\\n<p>\\n<b>Built By:</b>\\n<a\".freeze);; \n; \n; _haml_attribute_compiler6 = (\"/duelist/\#{CGI.escape @deck[:deck_owner]}\"); case (_haml_attribute_compiler6); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler6 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler6)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">\\n\".freeze);; _hamlout.buffer << ((\n( @deck[:deck_owner]\n).to_s).to_s);; _hamlout.buffer << (\"\\n</a>\\n<br>\\n<b>Played In:</b>\\n<a\".freeze);; \n; \n; _haml_attribute_compiler7 = (\"/tournament/\#{CGI.escape @deck[:tournament_name]}\"); case (_haml_attribute_compiler7); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler7 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler7)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">\\n\".freeze);; _hamlout.buffer << ((\n(\"\#{@deck[:tournament_name]} (\#{Date::ABBR_MONTHNAMES[@deck[:tournament_date].month]} \#{@deck[:tournament_date].year})\"\n).to_s).to_s);; _hamlout.buffer << (\"\\n</a>\\n<br>\\n<b>Placed:</b>\\n<a\".freeze);; \n; \n; _haml_attribute_compiler8 = (\"/placed/\#{CGI.escape @deck[:tournament_placed]}\"); case (_haml_attribute_compiler8); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler8 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler8)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">\\n\".freeze);; _hamlout.buffer << ((\n( @deck[:tournament_placed]\n).to_s).to_s);; _hamlout.buffer << (\"\\n</a>\\n<br>\\n<b>Main Archetype:</b>\\n<a\".freeze);; \n; \n; _haml_attribute_compiler9 = (\"/decks/\#{CGI.escape @deck[:main_archetype]}\"); case (_haml_attribute_compiler9); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler9 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler9)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">\\n\".freeze);; _hamlout.buffer << ((\n( @deck[:main_archetype]\n).to_s).to_s);; _hamlout.buffer << (\"\\n</a>\\n</p>\\n</div>\\n</div>\\n<div class='large-6 columns end'>\\n<div class='panel' data-equalizer-watch='' style='width: 104%; margin-left: -2%'>\\n<h6>\\n<b>Deck Value</b>\\n</h6>\\n<p id='deck_value_loading' style='text-align: center; padding-top: 19px; padding-bottom: 20px'>\\nLoading Data\\n<br>\\n<img src='/img/loading.gif' style='margin-top: 6px'>\\n</p>\\n</div>\\n</div>\\n</div>\\n\".freeze);; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; end;; _hamlout.buffer << (\"<div class='row'>\\n<div class='large-12 columns' style='margin-top: -12px'>\\n<div class='panel' style='width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px'>\\n<h4 style='text-align: center'>\\n<a\".freeze);; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; _haml_attribute_compiler10 = (@tcg_player_link); case (_haml_attribute_compiler10); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler10 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler10)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\" target='_blank'>\\n<b>\\nBuy This Deck On\\n</b>\\n<br>\\n<img src='/img/tcgplayer_logo.png' style='height: 55px; padding-top: 4px'>\\n</a>\\n</h4>\\n</div>\\n</div>\\n</div>\\n<div class='row'>\\n<div class='large-12 columns' style='margin-top: -12px'>\\n<div class='panel' style='width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px'>\\n<h4 style='text-align: center'>\\n<a\".freeze);; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; _haml_attribute_compiler11 = (\"/ygopro_deck/\#{@deck[:deck_list_id]}\"); case (_haml_attribute_compiler11); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler11 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler11)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">\\n<img src='/img/ygopro_logo.png' style='height: 50px; margin-top: -4px; margin-bottom: -4px'>\\n<b>\\nDownload Deck for YGOPro\\n</b>\\n</a>\\n</h4>\\n</div>\\n</div>\\n</div>\\n<div class='row'>\\n<div class='large-12 columns' style='margin-top: -12px'>\\n<div class='panel' style='width: 102%; margin-left: -1%; padding-top: 12px; padding-bottom: 12px'>\\n<h4 style='text-align: center'>\\n<a\".freeze);; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; _haml_attribute_compiler12 = (\"http://yugiohdeckbuilder.com/import_ygo_top_deck/\#{@deck[:deck_list_id]}\"); case (_haml_attribute_compiler12); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler12 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler12)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\" target='_blank'>\\n<b>Import Decklist into Yugioh Deck Builder</b>\\n</a>\\n</h4>\\n</div>\\n</div>\\n</div>\\n<div class='row' data-equalizer=''>\\n\".freeze);; \n; \n; \n; \n; \n; \n; \n\n\n main_cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'main').order(:name)\n; total_main_cards = main_cards.map { |x| x[:count] }.inject(0, :+)\n; _hamlout.buffer << (\"<div class='large-6 columns' style='margin-top: -12px'>\\n<div class='panel' data-equalizer-watch='' style='width: 104%; margin-left: -2%'>\\n<h4 style='text-align: center'>\\n<b>Main Deck</b>\\n<br>\\n<small>\\n<b>\".freeze);; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; _hamlout.buffer << (((\"(\#{total_main_cards} Cards)\"\n).to_s).to_s);; _hamlout.buffer << (\"</b>\\n</small>\\n</h4>\\n<ul>\\n\".freeze);; \n; \n; \n [\"monster\", \"spell\", \"trap\"].each do | card_type |\n; sub_cards = main_cards.where(:card_type => card_type).order(:name)\n; next if sub_cards.count == 0\n; _hamlout.buffer << (\"<h5 style='margin-top: 12px'>\\n<b>\".freeze);; \n; \n; _hamlout.buffer << (((\"\#{card_type.title}s\"\n).to_s).to_s);; _hamlout.buffer << (\"</b>\\n</h5>\\n\".freeze);; sub_cards.each do | card |\n; _hamlout.buffer << (\"<li style='list-style: none;'>\\n<b>\".freeze);; \n; _hamlout.buffer << (((\"\#{card[:count]}x\"\n).to_s).to_s);; _hamlout.buffer << (\"</b>\\n<a\".freeze);; _haml_attribute_compiler13 = (\"/card/\#{CGI.escape card[:name]}\"); case (_haml_attribute_compiler13); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler13 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler13)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">\\n\".freeze);; _hamlout.buffer << ((\n( card[:name]\n).to_s).to_s);; _hamlout.buffer << (\"\\n</a>\\n</li>\\n\".freeze);; end;; end;; _hamlout.buffer << (\"</ul>\\n</div>\\n</div>\\n<div class='large-6 columns' style='margin-top: -12px'>\\n<div class='panel' data-equalizer-watch='' style='width: 104%; margin-left: -2%'>\\n\".freeze);; \n; \n; \n; \n; \n\n\n\n cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'extra').order(:name)\n; total_cards = cards.map { |x| x[:count] }.inject(0, :+)\n; \n\n if total_cards > 0\n; _hamlout.buffer << (\"<h4 style='text-align: center'>\\n<b>Extra Deck</b>\\n<br>\\n<small>\\n<b>\".freeze);; \n; \n; \n; \n; _hamlout.buffer << (((\"(\#{total_cards} Cards)\"\n).to_s).to_s);; _hamlout.buffer << (\"</b>\\n</small>\\n</h4>\\n\".freeze);; \n\n card_names = cards.map { |x| x[:name] }\n; card_objects = Cards.where(:name => card_names).select(:name, :type).order(:name)\n; _hamlout.buffer << (\"<ul>\\n\".freeze);; \n; \n; \n card_objects.map { |x| x[:type].split(\"/\")[-1].strip }.uniq.sort.each do | card_type |\n; _hamlout.buffer << (\"<h5 style='margin-top: 12px'>\\n<b>\".freeze);; \n; _hamlout.buffer << (((card_type\n).to_s).to_s);; _hamlout.buffer << (\"</b>\\n</h5>\\n\".freeze);; card_objects.each do | card_obj |\n; next if not card_obj[:type] =~ /\#{Regexp.escape card_type}/i\n; card = cards.where(:name => card_obj[:name]).first\n; _hamlout.buffer << (\"<li style='list-style: none;'>\\n<b>\".freeze);; \n; _hamlout.buffer << (((\"\#{card[:count]}x\"\n).to_s).to_s);; _hamlout.buffer << (\"</b>\\n<a\".freeze);; _haml_attribute_compiler14 = (\"/card/\#{CGI.escape card[:name]}\"); case (_haml_attribute_compiler14); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler14 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler14)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">\\n\".freeze);; _hamlout.buffer << ((\n( card[:name]\n).to_s).to_s);; _hamlout.buffer << (\"\\n</a>\\n</li>\\n\".freeze);; end;; end;; _hamlout.buffer << (\"</ul>\\n\".freeze);; end;; \n\n\n\n cards = DeckCard.where(:deck_list_id => @deck[:deck_list_id], :deck_type => 'side').order(:name)\n; total_cards = cards.map { |x| x[:count] }.inject(0, :+)\n; \n if total_cards > 0\n; _hamlout.buffer << (\"<h4 style='text-align: center'>\\n<b>Side Deck</b>\\n<br>\\n<small>\\n<b>\".freeze);; \n; \n; \n; \n; \n; _hamlout.buffer << (((\"(\#{total_cards} Cards)\"\n).to_s).to_s);; _hamlout.buffer << (\"</b>\\n</small>\\n</h4>\\n<ul>\\n\".freeze);; \n; \n; \n [\"monster\", \"spell\", \"trap\"].each do | card_type |\n; sub_cards = cards.where(:card_type => card_type).order(:name)\n; next if sub_cards.count == 0\n; _hamlout.buffer << (\"<h5 style='margin-top: 12px'>\\n<b>\".freeze);; \n; \n; _hamlout.buffer << (((\"\#{card_type.title}s\"\n).to_s).to_s);; _hamlout.buffer << (\"</b>\\n</h5>\\n\".freeze);; sub_cards.each do | card |\n; _hamlout.buffer << (\"<li style='list-style: none;'>\\n<b>\".freeze);; \n; _hamlout.buffer << (((\"\#{card[:count]}x\"\n).to_s).to_s);; _hamlout.buffer << (\"</b>\\n<a\".freeze);; _haml_attribute_compiler15 = (\"/card/\#{CGI.escape card[:name]}\"); case (_haml_attribute_compiler15); when Hash; _hamlout.buffer << ((::Haml::AttributeBuilder.build({ \"href\".freeze => _haml_attribute_compiler15 }, nil, true, \"'\", true, true)).to_s);; when true; _hamlout.buffer << (\" href\".freeze);; when false, nil; else; _hamlout.buffer << (\" href='\".freeze);; _hamlout.buffer << (::Haml::Helpers.html_escape_without_haml_xss((_haml_attribute_compiler15)));; _hamlout.buffer << (\"'\".freeze);; end; _hamlout.buffer << (\">\\n\".freeze);; _hamlout.buffer << ((\n( card[:name]\n).to_s).to_s);; _hamlout.buffer << (\"\\n</a>\\n</li>\\n\".freeze);; end;; end;; _hamlout.buffer << (\"</ul>\\n\".freeze);; end;; _hamlout.buffer << (\"</div>\\n</div>\\n</div>\\n<div class='row'>\\n<div class='large-12 columns' style='margin-top: -12px'>\\n<div class='panel' style='width: 102%; margin-left: -1%'>\\n<div id='price_table_loading'>\\n<div class='row' style='margin-bottom: -18px'>\\n<div class='large-8 columns'>\\n<h6>\\n<b>Deck Price Breakdown</b>\\n</h6>\\n</div>\\n<div class='large-4 columns text-right'>\\n<p>\\nLoading Data...\\n<img src='/img/loading.gif'>\\n</p>\\n</div>\\n</div>\\n</div>\\n</div>\\n</div>\\n</div>\\n\".freeze);; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; \n; _hamlout.buffer << ((\n\n\n(find_and_preserve(Haml::Filters::Javascript.render_with_options(\n\"$.ajaxSetup ({\n cache: false\n});\n\nfunction load_deck_value() {\n var url = \\\"/calculate_deck_value/\\\" + \\\"\#{@deck[:deck_list_id]}\\\"\n $.get(url, function(data) {\n $('#deck_value_loading').replaceWith(data);\n load_deck_price_breakdown();\n }).error(function() {\n load_deck_value();\n });\n}\n\nfunction load_deck_price_breakdown() {\n var url = \\\"/deck_price_breakdown/\\\" + \\\"\#{@deck[:deck_list_id]}\\\"\n $.get(url, function(data) {\n $('#price_table_loading').replaceWith(data);\n $(\\\"[id=price_breakdown]\\\").each(function() {\n sorttable.makeSortable(this);\n });\n }).error(function() {\n load_deck_price_breakdown();\n });\n}\n\n$(function() {\n load_deck_value();\n});\\n\", _hamlout.options))\n).to_s).to_s);; _hamlout.buffer << (\"\\n\".freeze);">>}>, @pinned_response=nil>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml", "text/xml", "application/xml"], :xss_mode=>:block, :nosniff=>true, :img_src=>"'self' data:", :font_src=>"'self'", :except=>:path_traversal, :without_session=>false}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml", "text/xml", "application/xml"], :tracking_key=>:tracking, :encrypt_tracking=>true, :track=>["HTTP_USER_AGENT"], :img_src=>"'self' data:", :font_src=>"'self'", :except=>:path_traversal, :without_session=>false}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml", "text/xml", "application/xml"], :authenticity_param=>"authenticity_token", :key=>:csrf, :allow_if=>nil, :img_src=>"'self' data:", :font_src=>"'self'", :except=>:path_traversal, :without_session=>false}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml", "text/xml", "application/xml"], :allow_if=>nil, :img_src=>"'self' data:", :font_src=>"'self'", :except=>:path_traversal, :without_session=>false}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml", "text/xml", "application/xml"], :img_src=>"'self' data:", :font_src=>"'self'", :except=>:path_traversal, :without_session=>false}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml", "text/xml", "application/xml"], :allow_if=>nil, :img_src=>"'self' data:", :font_src=>"'self'", :except=>:path_traversal, :without_session=>false}>, @options={:reaction=>:drop_session, :logging=>true, :message=>"Forbidden", :encryptor=>Digest::SHA1, :session_key=>"rack.session", :status=>403, :allow_empty_referrer=>true, :report_key=>"protection.failed", :html_types=>["text/html", "application/xhtml", "text/xml", "application/xml"], :frame_options=>:sameorigin, :img_src=>"'self' data:", :font_src=>"'self'", :except=>:path_traversal, :without_session=>false}, @frame_options="SAMEORIGIN">, @default_options={:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false, :sidbits=>128, :secure_random=>SecureRandom, :secret=>"d4127fb69dbfaded12e69eb9ddf844737df3e184c472be4931e9132e91ae18cfe3debf7f12ba2971bfaa33a84a2f80af5245c74a8631b2e068b86a274b6f5a07", :coder=>#<Rack::Session::Cookie::Base64::Marshal:0x0000000003898db8>}, @key="rack.session", @cookie_only=true, @same_site=nil, @sidbits=128, @sid_secure=SecureRandom, @sid_length=32>>
rack.multiprocess
true
rack.multithread
false
rack.request.cookie_hash
{"currency"=>"USD"}
rack.request.query_hash
{}
rack.request.query_string
rack.run_once
false
rack.session
{"session_id"=>"8ac557167ac9d86018b9c815f5b78e3ad03c1e11e8f01991532c5e073c395ed2", "csrf"=>"yCPI4QsnIbdY6RIyoCzPclBjsrls3flOfl7dUguQ2Ns=", "tracking"=>{"HTTP_USER_AGENT"=>"ec0660ee20674482e3fbf9df2da732a482688d77"}}
rack.session.options
{:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>false, :sidbits=>128, :secure_random=>SecureRandom, :secret=>"d4127fb69dbfaded12e69eb9ddf844737df3e184c472be4931e9132e91ae18cfe3debf7f12ba2971bfaa33a84a2f80af5245c74a8631b2e068b86a274b6f5a07", :coder=>#<Rack::Session::Cookie::Base64::Marshal:0x0000000003898db8>}
rack.session.unpacked_cookie_data
{"session_id"=>"8ac557167ac9d86018b9c815f5b78e3ad03c1e11e8f01991532c5e073c395ed2"}
rack.tempfiles
[]
rack.url_scheme
https
rack.version
[1, 2]
sinatra.accept
[#<Sinatra::Request::AcceptEntry:0x000000012edbd588 @entry="*/*", @type="*/*", @params={}, @q=1.0>]
sinatra.commonlogger
true
sinatra.error
#<NoMethodError: undefined method `split' for nil:NilClass>
sinatra.error.params
{"deck_id"=>"8970"}
sinatra.route
GET /deck/:deck_id
unicorn.socket
#<Kgio::Socket:fd 8>

You're seeing this error because you have enabled the show_exceptions setting.