Sha256: 0fefe41bb9c69ffd6b631f1438d9e6c39710501aabf273c3f2667c1bc5cc4483

Contents?: true

Size: 1.18 KB

Versions: 8

Compression:

Stored size: 1.18 KB

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class All; module Follow;
# Set: All cards (Follow, FollowLinkViews)
#
module FollowLinkViews;
extend Card::Set
def self.source_location; "/Users/ethan/dev/decko/gem/card-mod-follow/set/all/follow/follow_link_views.rb"; end
module Format; module_parent.send :register_set_format, Card::Format, self; extend Card::Set::AbstractFormat
  def follow_link_class
    card.followed? ? StopFollowLink : StartFollowLink
  end

  def show_follow?
    Auth.signed_in? && !card.new_card? && card.followable?
  end
end

module JsonFormat; module_parent.send :register_set_format, Card::Format::JsonFormat, self; extend Card::Set::AbstractFormat
  view :follow_status do
    follow_link_class.link_opts
  end
end

module HtmlFormat; module_parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat
  def follow_button
    follow_link_class.new(self).button
  end

  def follow_modal_link
    follow_link_class.new(self).modal_link
  end

  view :follow_button, cache: :never do
    follow_button
  end
end
end;end;end;end;end;
# ~~ generated from /Users/ethan/dev/decko/gem/card-mod-follow/set/all/follow/follow_link_views.rb ~~

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
card-1.101.7 tmpsets/set/mod026-card-mod-follow/all/follow/follow_link_views.rb
card-1.101.6 tmpsets/set/mod026-card-mod-follow/all/follow/follow_link_views.rb
card-1.101.5 tmpsets/set/mod025-card-mod-follow/all/follow/follow_link_views.rb
card-1.101.4 tmpsets/set/mod025-card-mod-follow/all/follow/follow_link_views.rb
card-1.101.3 tmpsets/set/mod025-card-mod-follow/all/follow/follow_link_views.rb
card-1.101.2 tmpsets/set/mod025-card-mod-follow/all/follow/follow_link_views.rb
card-1.101.1 tmpsets/set/mod025-card-mod-follow/all/follow/follow_link_views.rb
card-1.101.0 tmpsets/set/mod025-card-mod-follow/all/follow/follow_link_views.rb