Sha256: 90ac4df6119eac209ef204d349ed33f05b96a3fb2b37044b03af4537a026d57a
Contents?: true
Size: 1.47 KB
Versions: 2
Compression:
Stored size: 1.47 KB
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class All; module Bridge; # Set: All cards (Bridge, RelatedSection) # module RelatedSection; extend Card::Set def self.source_location; "/Users/ethan/dev/decko/gem/card-mod-edit/set/all/bridge/related_section.rb"; end module HtmlFormat; module_parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat RELATED_ITEMS = { "by name" => [["children", :children], ["mates", :mates]], # FIXME: optimize, "by content" => [["links out", :links_to], ["links in", :linked_to_by], ["nests", :nests], ["nested by", :nested_by], ["references out", :refers_to], ["references in", :referred_to_by]] # ["by edit", [["creator", :creator], # ["editors", :editors], # ["last edited", :last_edited]]] }.freeze def related_by_name_items pills = [] if card.name.compound? pills += card.name.ancestors.map { |a| [a, a, { mark: :absolute }] } end pills += RELATED_ITEMS["by name"] pills end def related_by_content_items RELATED_ITEMS["by content"] end def related_by_type_items [["#{card.type} cards", [card.type, :type, :by_name], { mark: :absolute }]] end end end;end;end;end;end; # ~~ generated from /Users/ethan/dev/decko/gem/card-mod-edit/set/all/bridge/related_section.rb ~~
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
card-1.101.7 | tmpsets/set/mod011-card-mod-edit/all/bridge/related_section.rb |
card-1.101.6 | tmpsets/set/mod011-card-mod-edit/all/bridge/related_section.rb |