deck_profile.haml
block in __tilt_2980
/srv/api/ygo_top_decks/web/views/deck_profile.haml
in
block in __tilt_2980
-# Build array of card objects
- card_names = cards.map { |x| x[:name] }
- card_objects = Cards.where(:name => card_names).select(:name, :type).order(:name)
-# Write cards to page
%ul
- card_objects.map { |x| x[:type].split("/")[-1].strip }.uniq.sort.each do | card_type |
%h5{:style => 'margin-top: 12px'}
%b= card_type
- card_objects.each do | card_obj |
- next if not card_obj[:type] =~ /#{Regexp.escape card_type}/i
- card = cards.where(:name => card_obj[:name]).first
%li{:style => 'list-style: none;'}
%b= "#{card[:count]}x"
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/dataset/actions.rb
in
block in each
#
# Note that this method is not safe to use on many adapters if you are
# running additional queries inside the provided block. If you are
# running queries inside the block, you should use +all+ instead of +each+
# for the outer queries, or use a separate thread or shard inside +each+.
def each
if rp = row_proc
fetch_rows(select_sql){|r| yield rp.call(r)}
else
fetch_rows(select_sql){|r| yield r}
end
self
end
EMPTY_SELECT = Sequel::SQL::AliasedExpression.new(1, :one)
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/adapters/postgres.rb
in
block (2 levels) in fetch_rows
end
class Dataset < Sequel::Dataset
include Sequel::Postgres::DatasetMethods
def fetch_rows(sql)
return cursor_fetch_rows(sql){|h| yield h} if @opts[:cursor]
execute(sql){|res| yield_hash_rows(res, fetch_rows_set_cols(res)){|h| yield h}}
end
# Use a cursor for paging.
def paged_each(opts=OPTS, &block)
unless defined?(yield)
return enum_for(:paged_each, opts)
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/adapters/postgres.rb
in
yield_hash_rows
converted_rec = {}
while fieldnum < nfields
type_proc, fieldsym = cols[fieldnum]
value = res.getvalue(recnum, fieldnum)
converted_rec[fieldsym] = (value && type_proc) ? type_proc.call(value) : value
fieldnum += 1
end
yield converted_rec
recnum += 1
end
end
end
end
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/adapters/postgres.rb
in
block in fetch_rows
end
class Dataset < Sequel::Dataset
include Sequel::Postgres::DatasetMethods
def fetch_rows(sql)
return cursor_fetch_rows(sql){|h| yield h} if @opts[:cursor]
execute(sql){|res| yield_hash_rows(res, fetch_rows_set_cols(res)){|h| yield h}}
end
# Use a cursor for paging.
def paged_each(opts=OPTS, &block)
unless defined?(yield)
return enum_for(:paged_each, opts)
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/adapters/postgres.rb
in
execute
# Execute the given SQL with this connection. If a block is given,
# yield the results, otherwise, return the number of changed rows.
def execute(sql, args=nil)
args = args.map{|v| @db.bound_variable_arg(v, self)} if args
q = check_disconnect_errors{execute_query(sql, args)}
begin
defined?(yield) ? yield(q) : q.cmd_tuples
ensure
q.clear if q && q.respond_to?(:clear)
end
end
private
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/adapters/postgres.rb
in
_execute
private
# Execute the given SQL string or prepared statement on the connection object.
def _execute(conn, sql, opts, &block)
if sql.is_a?(Symbol)
execute_prepared_statement(conn, sql, opts, &block)
else
conn.execute(sql, opts[:arguments], &block)
end
end
# Execute the prepared statement name with the given arguments on the connection.
def _execute_prepared_statement(conn, ps_name, args, opts)
conn.exec_prepared(ps_name, args)
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/adapters/postgres.rb
in
block (2 levels) in execute
:source_line => r.error_field(::PG::PG_DIAG_SOURCE_LINE),
:source_function => r.error_field(::PG::PG_DIAG_SOURCE_FUNCTION)
}
end
end
def execute(sql, opts=OPTS, &block)
synchronize(opts[:server]){|conn| check_database_errors{_execute(conn, sql, opts, &block)}}
end
# :nocov:
if USES_PG
# :nocov:
# +copy_table+ uses PostgreSQL's +COPY TO STDOUT+ SQL statement to return formatted
# results directly to the caller. This method is only supported if pg is the
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/adapters/postgres.rb
in
check_database_errors
add_conversion_proc(1082, TYPE_TRANSLATOR_DATE) if @use_iso_date_format
# :nocov:
self.convert_infinite_timestamps = @opts[:convert_infinite_timestamps]
end
# Convert exceptions raised from the block into DatabaseErrors.
def check_database_errors
yield
rescue => e
raise_error(e, :classes=>database_error_classes)
end
# Set the DateStyle to ISO if configured, for faster date parsing.
def connection_configuration_sqls(opts=@opts)
sqls = super
# :nocov:
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/adapters/postgres.rb
in
block in execute
:source_line => r.error_field(::PG::PG_DIAG_SOURCE_LINE),
:source_function => r.error_field(::PG::PG_DIAG_SOURCE_FUNCTION)
}
end
end
def execute(sql, opts=OPTS, &block)
synchronize(opts[:server]){|conn| check_database_errors{_execute(conn, sql, opts, &block)}}
end
# :nocov:
if USES_PG
# :nocov:
# +copy_table+ uses PostgreSQL's +COPY TO STDOUT+ SQL statement to return formatted
# results directly to the caller. This method is only supported if pg is the
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/connection_pool/threaded.rb
in
hold
def hold(server=nil)
t = Sequel.current
if conn = owned_connection(t)
return yield(conn)
end
begin
conn = acquire(t)
yield conn
rescue Sequel::DatabaseDisconnectError, *@error_classes => e
if disconnect_error?(e)
oconn = conn
conn = nil
disconnect_connection(oconn) if oconn
sync do
@allocated.delete(t)
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/database/connecting.rb
in
synchronize
# If a server option is given, acquires a connection for that specific
# server, instead of the :default server.
#
# DB.synchronize do |conn|
# # ...
# end
def synchronize(server=nil, &block)
@pool.hold(server || :default, &block)
end
end
# Attempts to acquire a database connection. Returns true if successful.
# Will probably raise an Error if unsuccessful. If a server argument
# is given, attempts to acquire a database connection to the given
# server/shard.
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/adapters/postgres.rb
in
execute
:source_line => r.error_field(::PG::PG_DIAG_SOURCE_LINE),
:source_function => r.error_field(::PG::PG_DIAG_SOURCE_FUNCTION)
}
end
end
def execute(sql, opts=OPTS, &block)
synchronize(opts[:server]){|conn| check_database_errors{_execute(conn, sql, opts, &block)}}
end
# :nocov:
if USES_PG
# :nocov:
# +copy_table+ uses PostgreSQL's +COPY TO STDOUT+ SQL statement to return formatted
# results directly to the caller. This method is only supported if pg is the
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/dataset/actions.rb
in
execute
def execute(sql, opts=OPTS, &block)
db = @db
if db.sharded? && !opts.has_key?(:server)
opts = Hash[opts]
opts[:server] = @opts[:server] || (@opts[:lock] ? :default : :read_only)
opts
end
db.execute(sql, opts, &block)
end
# Execute the given SQL on the database using execute_ddl.
def execute_ddl(sql, opts=OPTS, &block)
@db.execute_ddl(sql, default_server_opts(opts), &block)
nil
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/adapters/postgres.rb
in
fetch_rows
end
class Dataset < Sequel::Dataset
include Sequel::Postgres::DatasetMethods
def fetch_rows(sql)
return cursor_fetch_rows(sql){|h| yield h} if @opts[:cursor]
execute(sql){|res| yield_hash_rows(res, fetch_rows_set_cols(res)){|h| yield h}}
end
# Use a cursor for paging.
def paged_each(opts=OPTS, &block)
unless defined?(yield)
return enum_for(:paged_each, opts)
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/dataset/actions.rb
in
each
#
# Note that this method is not safe to use on many adapters if you are
# running additional queries inside the provided block. If you are
# running queries inside the block, you should use +all+ instead of +each+
# for the outer queries, or use a separate thread or shard inside +each+.
def each
if rp = row_proc
fetch_rows(select_sql){|r| yield rp.call(r)}
else
fetch_rows(select_sql){|r| yield r}
end
self
end
EMPTY_SELECT = Sequel::SQL::AliasedExpression.new(1, :one)
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/dataset/actions.rb
in
map
return naked.map(column) if row_proc
if column.is_a?(Array)
super(){|r| r.values_at(*column)}
else
super(){|r| r[column]}
end
else
super(&block)
end
end
# Returns the maximum value for the given column/expression.
# Uses a virtual row block if no argument is given.
#
# DB[:table].max(:id) # SELECT max(id) FROM table LIMIT 1
/home/sally/.rvm/gems/ruby-3.0.0/gems/sequel-5.60.1/lib/sequel/dataset/actions.rb
in
map
return naked.map(column) if row_proc
if column.is_a?(Array)
super(){|r| r.values_at(*column)}
else
super(){|r| r[column]}
end
else
super(&block)
end
end
# Returns the maximum value for the given column/expression.
# Uses a virtual row block if no argument is given.
#
# DB[:table].max(:id) # SELECT max(id) FROM table LIMIT 1
/srv/api/ygo_top_decks/web/views/deck_profile.haml
in
__tilt_2980
-# Build array of card objects
- card_names = cards.map { |x| x[:name] }
- card_objects = Cards.where(:name => card_names).select(:name, :type).order(:name)
-# Write cards to page
%ul
- card_objects.map { |x| x[:type].split("/")[-1].strip }.uniq.sort.each do | card_type |
%h5{:style => 'margin-top: 12px'}
%b= card_type
- card_objects.each do | card_obj |
- next if not card_obj[:type] =~ /#{Regexp.escape card_type}/i
- card = cards.where(:name => card_obj[:name]).first
%li{:style => 'list-style: none;'}
%b= "#{card[:count]}x"
/home/sally/.rvm/gems/ruby-3.0.0/gems/tilt-2.0.11/lib/tilt/template.rb
in
call
else
if RUBY_VERSION >= '2'
method = compiled_method(locals_keys, CLASS_METHOD.bind(scope).call)
else
method = compiled_method(locals_keys, Object)
end
end
method.bind(scope).call(locals, &block)
end
# Generates all template source by combining the preamble, template, and
# postamble and returns a two-tuple of the form: [source, offset], where
# source is the string containing (Ruby) source code for the template and
# offset is the integer line offset where line reporting should begin.
#
/home/sally/.rvm/gems/ruby-3.0.0/gems/tilt-2.0.11/lib/tilt/template.rb
in
evaluate
else
if RUBY_VERSION >= '2'
method = compiled_method(locals_keys, CLASS_METHOD.bind(scope).call)
else
method = compiled_method(locals_keys, Object)
end
end
method.bind(scope).call(locals, &block)
end
# Generates all template source by combining the preamble, template, and
# postamble and returns a two-tuple of the form: [source, offset], where
# source is the string containing (Ruby) source code for the template and
# offset is the integer line offset where line reporting should begin.
#
/home/sally/.rvm/gems/ruby-3.0.0/gems/tilt-2.0.11/lib/tilt/haml.rb
in
evaluate
end
@engine = ::Haml::TempleEngine.new(options)
@engine.compile(data)
end
def evaluate(scope, locals, &block)
raise ArgumentError, 'invalid scope: must not be frozen' if scope.frozen?
super
end
def precompiled_template(locals)
@engine.precompiled_with_ambles(
[],
after_preamble: <<-RUBY
__in_erb_template = true
/home/sally/.rvm/gems/ruby-3.0.0/gems/tilt-2.0.11/lib/tilt/template.rb
in
render
# Render the template in the given scope with the locals specified. If a
# block is given, it is typically available within the template via
# +yield+.
def render(scope=nil, locals={}, &block)
scope ||= Object.new
current_template = Thread.current[:tilt_current_template]
Thread.current[:tilt_current_template] = self
evaluate(scope, locals || {}, &block)
ensure
Thread.current[:tilt_current_template] = current_template
end
# The basename of the template file.
def basename(suffix='')
File.basename(file, suffix) if file
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
render
options[:default_encoding] ||= settings.default_encoding
# compile and render template
begin
layout_was = @default_layout
@default_layout = false
template = compile_template(engine, data, options, views)
output = template.render(scope, locals, &block)
ensure
@default_layout = layout_was
end
# render layout
if layout
options = options.merge(:views => views, :layout => false, :eat_errors => eat_errors, :scope => scope).
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
haml
def erubis(template, options = {}, locals = {})
warn "Sinatra::Templates#erubis is deprecated and will be removed, use #erb instead.\n" \
"If you have Erubis installed, it will be used automatically."
render :erubis, template, options, locals
end
def haml(template, options = {}, locals = {}, &block)
render(:haml, template, options, locals, &block)
end
def sass(template, options = {}, locals = {})
options.merge! :layout => false, :default_content_type => :css
render :sass, template, options, locals
end
/srv/api/ygo_top_decks/web/routes/decks.rb
in
block in <class:WebApp>
"c=#{cards_arg}",
"productline=Yugioh"
]
@tcg_player_link = "http://store.tcgplayer.com/massentry?#{arguments.join "&"}"
# Render page content
@page_title = "#{@deck[:deck_name]} by #{@deck[:deck_owner]}"
haml :deck_profile
end
get '/ygopro_deck/:deck_id' do | deck_id |
redirect "/?error=#{CGI.escape "No decks matching this ID were found!"}" unless deck = DeckList.where(:deck_list_id => deck_id).first
# Generate output
file_name = "#{deck[:deck_name]} (#{deck[:deck_owner]})"
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
call
options.each_pair { |option, args| send(option, *args) }
pattern = compile(path, route_mustermann_opts)
method_name = "#{verb} #{path}"
unbound_method = generate_method(method_name, &block)
conditions, @conditions = @conditions, []
wrapper = block.arity != 0 ?
proc { |a, p| unbound_method.bind(a).call(*p) } :
proc { |a, p| unbound_method.bind(a).call }
[ pattern, conditions, wrapper ]
end
def compile(path, route_mustermann_opts = {})
Mustermann.new(path, **mustermann_opts.merge(route_mustermann_opts))
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
block in compile!
options.each_pair { |option, args| send(option, *args) }
pattern = compile(path, route_mustermann_opts)
method_name = "#{verb} #{path}"
unbound_method = generate_method(method_name, &block)
conditions, @conditions = @conditions, []
wrapper = block.arity != 0 ?
proc { |a, p| unbound_method.bind(a).call(*p) } :
proc { |a, p| unbound_method.bind(a).call }
[ pattern, conditions, wrapper ]
end
def compile(path, route_mustermann_opts = {})
Mustermann.new(path, **mustermann_opts.merge(route_mustermann_opts))
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
block (3 levels) in route!
def route!(base = settings, pass_block = nil)
if routes = base.routes[@request.request_method]
routes.each do |pattern, conditions, block|
response.delete_header('Content-Type') unless @pinned_response
returned_pass_block = process_route(pattern, conditions) do |*args|
env['sinatra.route'] = "#{@request.request_method} #{pattern}"
route_eval { block[*args] }
end
# don't wipe out pass_block in superclass
pass_block = returned_pass_block if returned_pass_block
end
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
route_eval
route_eval(&pass_block) if pass_block
route_missing
end
# Run a route block and throw :halt with the result.
def route_eval
throw :halt, yield
end
# If the current request matches pattern and conditions, fill params
# with keys and call the given block.
# Revert params afterwards.
#
# Returns pass block.
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
block (2 levels) in route!
def route!(base = settings, pass_block = nil)
if routes = base.routes[@request.request_method]
routes.each do |pattern, conditions, block|
response.delete_header('Content-Type') unless @pinned_response
returned_pass_block = process_route(pattern, conditions) do |*args|
env['sinatra.route'] = "#{@request.request_method} #{pattern}"
route_eval { block[*args] }
end
# don't wipe out pass_block in superclass
pass_block = returned_pass_block if returned_pass_block
end
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
block in process_route
@params[:captures] = force_encoding(captures) unless captures.nil? || captures.empty?
else
values += params.values.flatten
end
catch(:pass) do
conditions.each { |c| throw :pass if c.bind(self).call == false }
block ? block[self, values] : yield(self, values)
end
rescue
@env['sinatra.error.params'] = @params
raise
ensure
params ||= {}
params.each { |k, _| @params.delete(k) } unless @env['sinatra.error.params']
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
catch
captures = pattern.match(route).captures.map { |c| URI_INSTANCE.unescape(c) if c }
values += captures
@params[:captures] = force_encoding(captures) unless captures.nil? || captures.empty?
else
values += params.values.flatten
end
catch(:pass) do
conditions.each { |c| throw :pass if c.bind(self).call == false }
block ? block[self, values] : yield(self, values)
end
rescue
@env['sinatra.error.params'] = @params
raise
ensure
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
process_route
captures = pattern.match(route).captures.map { |c| URI_INSTANCE.unescape(c) if c }
values += captures
@params[:captures] = force_encoding(captures) unless captures.nil? || captures.empty?
else
values += params.values.flatten
end
catch(:pass) do
conditions.each { |c| throw :pass if c.bind(self).call == false }
block ? block[self, values] : yield(self, values)
end
rescue
@env['sinatra.error.params'] = @params
raise
ensure
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
block in route!
# Run routes defined on the class and all superclasses.
def route!(base = settings, pass_block = nil)
if routes = base.routes[@request.request_method]
routes.each do |pattern, conditions, block|
response.delete_header('Content-Type') unless @pinned_response
returned_pass_block = process_route(pattern, conditions) do |*args|
env['sinatra.route'] = "#{@request.request_method} #{pattern}"
route_eval { block[*args] }
end
# don't wipe out pass_block in superclass
pass_block = returned_pass_block if returned_pass_block
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
each
block.call(result) if block_given?
end
end
# Run routes defined on the class and all superclasses.
def route!(base = settings, pass_block = nil)
if routes = base.routes[@request.request_method]
routes.each do |pattern, conditions, block|
response.delete_header('Content-Type') unless @pinned_response
returned_pass_block = process_route(pattern, conditions) do |*args|
env['sinatra.route'] = "#{@request.request_method} #{pattern}"
route_eval { block[*args] }
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
route!
block.call(result) if block_given?
end
end
# Run routes defined on the class and all superclasses.
def route!(base = settings, pass_block = nil)
if routes = base.routes[@request.request_method]
routes.each do |pattern, conditions, block|
response.delete_header('Content-Type') unless @pinned_response
returned_pass_block = process_route(pattern, conditions) do |*args|
env['sinatra.route'] = "#{@request.request_method} #{pattern}"
route_eval { block[*args] }
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
block in dispatch!
end
invoke do
static! if settings.static? && (request.get? || request.head?)
filter! :before do
@pinned_response = !response['Content-Type'].nil?
end
route!
end
rescue ::Exception => boom
invoke { handle_exception!(boom) }
ensure
begin
filter! :after unless env['sinatra.static_file']
rescue ::Exception => boom
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
block in invoke
env['sinatra.static_file'] = path
cache_control(*settings.static_cache_control) if settings.static_cache_control?
send_file path, options.merge(:disposition => nil)
end
# Run the block with 'throw :halt' support and apply result to the response.
def invoke
res = catch(:halt) { yield }
res = [res] if Integer === res or String === res
if Array === res and Integer === res.first
res = res.dup
status(res.shift)
body(res.pop)
headers(*res)
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
catch
env['sinatra.static_file'] = path
cache_control(*settings.static_cache_control) if settings.static_cache_control?
send_file path, options.merge(:disposition => nil)
end
# Run the block with 'throw :halt' support and apply result to the response.
def invoke
res = catch(:halt) { yield }
res = [res] if Integer === res or String === res
if Array === res and Integer === res.first
res = res.dup
status(res.shift)
body(res.pop)
headers(*res)
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
invoke
env['sinatra.static_file'] = path
cache_control(*settings.static_cache_control) if settings.static_cache_control?
send_file path, options.merge(:disposition => nil)
end
# Run the block with 'throw :halt' support and apply result to the response.
def invoke
res = catch(:halt) { yield }
res = [res] if Integer === res or String === res
if Array === res and Integer === res.first
res = res.dup
status(res.shift)
body(res.pop)
headers(*res)
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
dispatch!
# Avoid passing frozen string in force_encoding
@params.merge!(@request.params).each do |key, val|
next unless val.respond_to?(:force_encoding)
val = val.dup if val.frozen?
@params[key] = force_encoding(val)
end
invoke do
static! if settings.static? && (request.get? || request.head?)
filter! :before do
@pinned_response = !response['Content-Type'].nil?
end
route!
end
rescue ::Exception => boom
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
block in call!
@env = env
@params = IndifferentHash.new
@request = Request.new(env)
@response = Response.new
@pinned_response = nil
template_cache.clear if settings.reload_templates
invoke { dispatch! }
invoke { error_block!(response.status) } unless @env['sinatra.error']
unless @response['Content-Type']
if Array === body && body[0].respond_to?(:content_type)
content_type body[0].content_type
elsif default = settings.default_content_type
content_type default
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
block in invoke
env['sinatra.static_file'] = path
cache_control(*settings.static_cache_control) if settings.static_cache_control?
send_file path, options.merge(:disposition => nil)
end
# Run the block with 'throw :halt' support and apply result to the response.
def invoke
res = catch(:halt) { yield }
res = [res] if Integer === res or String === res
if Array === res and Integer === res.first
res = res.dup
status(res.shift)
body(res.pop)
headers(*res)
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
catch
env['sinatra.static_file'] = path
cache_control(*settings.static_cache_control) if settings.static_cache_control?
send_file path, options.merge(:disposition => nil)
end
# Run the block with 'throw :halt' support and apply result to the response.
def invoke
res = catch(:halt) { yield }
res = [res] if Integer === res or String === res
if Array === res and Integer === res.first
res = res.dup
status(res.shift)
body(res.pop)
headers(*res)
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
invoke
env['sinatra.static_file'] = path
cache_control(*settings.static_cache_control) if settings.static_cache_control?
send_file path, options.merge(:disposition => nil)
end
# Run the block with 'throw :halt' support and apply result to the response.
def invoke
res = catch(:halt) { yield }
res = [res] if Integer === res or String === res
if Array === res and Integer === res.first
res = res.dup
status(res.shift)
body(res.pop)
headers(*res)
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
call!
@env = env
@params = IndifferentHash.new
@request = Request.new(env)
@response = Response.new
@pinned_response = nil
template_cache.clear if settings.reload_templates
invoke { dispatch! }
invoke { error_block!(response.status) } unless @env['sinatra.error']
unless @response['Content-Type']
if Array === body && body[0].respond_to?(:content_type)
content_type body[0].content_type
elsif default = settings.default_content_type
content_type default
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
call
@template_cache = Tilt::Cache.new
@pinned_response = nil # whether a before! filter pinned the content-type
yield self if block_given?
end
# Rack call interface.
def call(env)
dup.call!(env)
end
def call!(env) # :nodoc:
@env = env
@params = IndifferentHash.new
@request = Request.new(env)
@response = Response.new
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-protection-2.2.2/lib/rack/protection/xss_header.rb
in
call
#
# Options:
# xss_mode:: How the browser should prevent the attack (default: :block)
class XSSHeader < Base
default_options :xss_mode => :block, :nosniff => true
def call(env)
status, headers, body = @app.call(env)
headers['X-XSS-Protection'] ||= "1; mode=#{options[:xss_mode]}" if html? headers
headers['X-Content-Type-Options'] ||= 'nosniff' if options[:nosniff]
[status, headers, body]
end
end
end
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-protection-2.2.2/lib/rack/protection/base.rb
in
call
end
def call(env)
unless accepts? env
instrument env
result = react env
end
result or app.call(env)
end
def react(env)
result = send(options[:reaction], env)
result if Array === result and result.size == 3
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-protection-2.2.2/lib/rack/protection/base.rb
in
call
end
def call(env)
unless accepts? env
instrument env
result = react env
end
result or app.call(env)
end
def react(env)
result = send(options[:reaction], env)
result if Array === result and result.size == 3
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-protection-2.2.2/lib/rack/protection/json_csrf.rb
in
call
class JsonCsrf < Base
default_options :allow_if => nil
alias react deny
def call(env)
request = Request.new(env)
status, headers, body = app.call(env)
if has_vector?(request, headers)
warn env, "attack prevented by #{self.class}"
react_and_close(env, body) or [status, headers, body]
else
[status, headers, body]
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-protection-2.2.2/lib/rack/protection/base.rb
in
call
end
def call(env)
unless accepts? env
instrument env
result = react env
end
result or app.call(env)
end
def react(env)
result = send(options[:reaction], env)
result if Array === result and result.size == 3
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-protection-2.2.2/lib/rack/protection/base.rb
in
call
end
def call(env)
unless accepts? env
instrument env
result = react env
end
result or app.call(env)
end
def react(env)
result = send(options[:reaction], env)
result if Array === result and result.size == 3
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-protection-2.2.2/lib/rack/protection/frame_options.rb
in
call
frame_options = options[:frame_options]
frame_options = options[:frame_options].to_s.upcase unless frame_options.respond_to? :to_str
frame_options.to_str
end
end
def call(env)
status, headers, body = @app.call(env)
headers['X-Frame-Options'] ||= frame_options if html? headers
[status, headers, body]
end
end
end
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-2.2.4/lib/rack/session/abstract/id.rb
in
context
def call(env)
context(env)
end
def context(env, app = @app)
req = make_request env
prepare_session(req)
status, headers, body = app.call(req.env)
res = Rack::Response::Raw.new status, headers
commit_session(req, res)
[status, headers, body]
end
private
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-2.2.4/lib/rack/session/abstract/id.rb
in
call
@key = @default_options.delete(:key)
@cookie_only = @default_options.delete(:cookie_only)
@same_site = @default_options.delete(:same_site)
initialize_sid
end
def call(env)
context(env)
end
def context(env, app = @app)
req = make_request env
prepare_session(req)
status, headers, body = app.call(req.env)
res = Rack::Response::Raw.new status, headers
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-2.2.4/lib/rack/null_logger.rb
in
call
class NullLogger
def initialize(app)
@app = app
end
def call(env)
env[RACK_LOGGER] = self
@app.call(env)
end
def info(progname = nil, &block); end
def debug(progname = nil, &block); end
def warn(progname = nil, &block); end
def error(progname = nil, &block); end
def fatal(progname = nil, &block); end
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-2.2.4/lib/rack/head.rb
in
call
# all other requests unchanged.
class Head
def initialize(app)
@app = app
end
def call(env)
status, headers, body = @app.call(env)
if env[REQUEST_METHOD] == HEAD
[
status, headers, Rack::BodyProxy.new([]) do
body.close if body.respond_to? :close
end
]
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/show_exceptions.rb
in
call
def @@eats_errors.puts(*) end
def initialize(app)
@app = app
end
def call(env)
@app.call(env)
rescue Exception => e
errors, env["rack.errors"] = env["rack.errors"], @@eats_errors
if prefers_plain_text?(env)
content_type = "text/plain"
body = dump_exception(e)
else
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
call
# Some Rack handlers (Rainbows!) implement an extended body object protocol, however,
# some middleware (namely Rack::Lint) will break it by not mirroring the methods in question.
# This middleware will detect an extended body object and will make sure it reaches the
# handler directly. We do this here, so our middleware and middleware set up by the app will
# still be able to run.
class ExtendedRack < Struct.new(:app)
def call(env)
result, callback = app.call(env), env['async.callback']
return result unless callback and async?(*result)
after_response { callback.call result }
setup_close(env, *result)
throw :async
end
private
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
call
end
def helpers
@instance
end
def call(env)
@stack.call(env)
end
def inspect
"#<#{@instance.class} app_file=#{settings.app_file.inspect}>"
end
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
block in call
setup_default_middleware builder
setup_middleware builder
builder.run app
builder
end
def call(env)
synchronize { prototype.call(env) }
end
# Like Kernel#caller but excluding certain magic entries and without
# line / method information; the resulting array contains filenames only.
def caller_files
cleaned_caller(1).flatten
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
synchronize
end
@@mutex = Mutex.new
def synchronize(&block)
if lock?
@@mutex.synchronize(&block)
else
yield
end
end
# used for deprecation warnings
def warn(message)
super message + "\n\tfrom #{cleaned_caller.first.join(':')}"
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
call
setup_default_middleware builder
setup_middleware builder
builder.run app
builder
end
def call(env)
synchronize { prototype.call(env) }
end
# Like Kernel#caller but excluding certain magic entries and without
# line / method information; the resulting array contains filenames only.
def caller_files
cleaned_caller(1).flatten
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-2.2.4/lib/rack/tempfile_reaper.rb
in
call
class TempfileReaper
def initialize(app)
@app = app
end
def call(env)
env[RACK_TEMPFILES] ||= []
status, headers, body = @app.call(env)
body_proxy = BodyProxy.new(body) do
env[RACK_TEMPFILES].each(&:close!) unless env[RACK_TEMPFILES].nil?
end
[status, headers, body_proxy]
end
end
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-2.2.4/lib/rack/lint.rb
in
_call
assert("No env given") { env }
check_env env
env[RACK_INPUT] = InputWrapper.new(env[RACK_INPUT])
env[RACK_ERRORS] = ErrorWrapper.new(env[RACK_ERRORS])
## and returns an Array of exactly three values:
ary = @app.call(env)
assert("response is not an Array, but #{ary.class}") {
ary.kind_of? Array
}
assert("response array has #{ary.size} elements instead of 3") {
ary.size == 3
}
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-2.2.4/lib/rack/lint.rb
in
call
## after to catch all mistakes.
## = Rack applications
## A Rack application is a Ruby object (not a class) that
## responds to +call+.
def call(env = nil)
dup._call(env)
end
def _call(env)
## It takes exactly one argument, the *environment*
assert("No env given") { env }
check_env env
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-2.2.4/lib/rack/show_exceptions.rb
in
call
CONTEXT = 7
def initialize(app)
@app = app
end
def call(env)
@app.call(env)
rescue StandardError, LoadError, SyntaxError => e
exception_string = dump_exception(e)
env[RACK_ERRORS].puts(exception_string)
env[RACK_ERRORS].flush
if accepts_html?(env)
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-2.2.4/lib/rack/common_logger.rb
in
call
# will not be logged, so if exception handling middleware are used,
# they should be loaded after this middleware. Additionally, because
# the logging happens after the request body has been fully sent, any
# exceptions raised during the sending of the response body will
# cause the request not to be logged.
def call(env)
began_at = Utils.clock_time
status, headers, body = @app.call(env)
headers = Utils::HeaderHash[headers]
body = BodyProxy.new(body) { log(env, status, headers, began_at) }
[status, headers, body]
end
private
/home/sally/.rvm/gems/ruby-3.0.0/gems/sinatra-2.2.2/lib/sinatra/base.rb
in
call
env['sinatra.commonlogger'] ? @app.call(env) : super
end
superclass.class_eval do
alias call_without_check call unless method_defined? :call_without_check
def call(env)
env['sinatra.commonlogger'] = true
call_without_check(env)
end
end
end
class BadRequest < TypeError #:nodoc:
def http_status; 400 end
end
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-2.2.4/lib/rack/chunked.rb
in
call
end
end
# If the rack app returns a response that should have a body,
# but does not have Content-Length or Transfer-Encoding headers,
# modify the response to use chunked Transfer-Encoding.
def call(env)
status, headers, body = @app.call(env)
headers = HeaderHash[headers]
if chunkable_version?(env[SERVER_PROTOCOL]) &&
!STATUS_WITH_NO_ENTITY_BODY.key?(status.to_i) &&
!headers[CONTENT_LENGTH] &&
!headers[TRANSFER_ENCODING]
/home/sally/.rvm/gems/ruby-3.0.0/gems/rack-2.2.4/lib/rack/content_length.rb
in
call
include Rack::Utils
def initialize(app)
@app = app
end
def call(env)
status, headers, body = @app.call(env)
headers = HeaderHash[headers]
if !STATUS_WITH_NO_ENTITY_BODY.key?(status.to_i) &&
!headers[CONTENT_LENGTH] &&
!headers[TRANSFER_ENCODING]
obody = body
/home/sally/.rvm/gems/ruby-3.0.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb
in
process_client
env["rack.early_hints"] = lambda do |headers|
e103_response_write(client, headers)
end
end
env["rack.after_reply"] = []
status, headers, body = @app.call(env)
begin
return if @request.hijacked?
if 100 == status.to_i
e100_response_write(client, env)
status, headers, body = @app.call(env)
/home/sally/.rvm/gems/ruby-3.0.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb
in
worker_loop
begin
reopen = reopen_worker_logs(worker.nr) if reopen
worker.tick = time_now.to_i
while sock = ready.shift
# Unicorn::Worker#kgio_tryaccept is not like accept(2) at all,
# but that will return false
if client = sock.kgio_tryaccept
process_client(client)
worker.tick = time_now.to_i
end
break if reopen
end
# timeout so we can .tick and keep parent from SIGKILL-ing us
worker.tick = time_now.to_i
/home/sally/.rvm/gems/ruby-3.0.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb
in
spawn_missing_workers
worker = Unicorn::Worker.new(worker_nr)
before_fork.call(self, worker)
pid = @worker_exec ? worker_spawn(worker) : fork
unless pid
after_fork_internal
worker_loop(worker)
exit
end
@workers[pid] = worker
worker.atfork_parent
end
rescue => e
/home/sally/.rvm/gems/ruby-3.0.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb
in
maintain_worker_count
rescue => e
@logger.error(e) rescue nil
exit!
end
def maintain_worker_count
(off = @workers.size - worker_processes) == 0 and return
off < 0 and return spawn_missing_workers
@workers.each_value { |w| w.nr >= worker_processes and w.soft_kill(:QUIT) }
end
# if we get any error, try to write something back to the client
# assuming we haven't closed the socket, but don't get hung up
# if the socket is already closed or broken. We'll always ensure
# the socket is closed at the end of this function
/home/sally/.rvm/gems/ruby-3.0.0/gems/unicorn-6.1.0/lib/unicorn/http_server.rb
in
join
# machine) comes out of suspend/hibernation
if (last_check + @timeout) >= (last_check = time_now)
sleep_time = murder_lazy_workers
else
sleep_time = @timeout/2.0 + 1
@logger.debug("waiting #{sleep_time}s after suspend/hibernation")
end
maintain_worker_count if respawn
master_sleep(sleep_time)
when :QUIT # graceful shutdown
break
when :TERM, :INT # immediate shutdown
stop(false)
break
when :USR1 # rotate logs
/home/sally/.rvm/gems/ruby-3.0.0/gems/unicorn-6.1.0/bin/unicorn
in
<top (required)>
:unicorn_options => options,
:app => app,
:daemonize => rackup_opts[:daemonize],
})
end
Unicorn::Launcher.daemonize!(options) if rackup_opts[:daemonize]
Unicorn::HttpServer.new(app, options).start.join
/home/sally/.rvm/gems/ruby-3.0.0/bin/unicorn
in
load
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end
if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('unicorn', 'unicorn', version)
else
gem "unicorn", version
load Gem.bin_path("unicorn", "unicorn", version)
end
/home/sally/.rvm/gems/ruby-3.0.0/bin/unicorn
in
<main>
if str and Gem::Version.correct?(str)
version = str
ARGV.shift
end
end
if Gem.respond_to?(:activate_bin_path)
load Gem.activate_bin_path('unicorn', 'unicorn', version)
else
gem "unicorn", version
load Gem.bin_path("unicorn", "unicorn", version)
end
/home/sally/.rvm/gems/ruby-3.0.0/bin/ruby_executable_hooks
in
eval
content = File.read($0)
if (index = content.index("\n#!ruby\n")) && index > 0
skipped_content = content.slice!(0..index)
start_line = skipped_content.count("\n") + 1
eval content, binding, $0, start_line
else
eval content, binding, $0
end
/home/sally/.rvm/gems/ruby-3.0.0/bin/ruby_executable_hooks
in
<main>
content = File.read($0)
if (index = content.index("\n#!ruby\n")) && index > 0
skipped_content = content.slice!(0..index)
start_line = skipped_content.count("\n") + 1
eval content, binding, $0, start_line
else
eval content, binding, $0
end
No GET data.
No POST data.
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.