}
end
view :core do |args|
args[:item] ||= :link
card.content=='_left' ? core_inherit_content(args) : _final_pointer_type_core(args)
end
view :closed_content do |args|
card.content=='_left' ? core_inherit_content(args) : _final_pointer_type_closed_content(args)
end
private
def core_inherit_content args={}
sc = args[:set_context]
text = if sc && sc.tag_name.key == Card[:self].key
begin
task = card.tag.codename
ancestor = Card[sc.trunk_name.trunk_name]
links = ancestor.who_can( task.to_sym ).map do |card_id|
link_to_page Card[card_id].name, nil, :target=>args[:target]
end*", "
"Inherit ( #{links} )"
rescue
'Inherit'
end
else
'Inherit from left card'
end
%{#{text}}
end
end
def standardize_items
# noop to override default behavior, which wouldn't let '_left' through and would therefore break
end