Sha256: 4ddf7eef5ca44b64db4906b59c839361413664ba6738b5280fd15398d1bbf4f3

Contents?: true

Size: 1.16 KB

Versions: 10

Compression:

Stored size: 1.16 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; 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; 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; 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

10 entries across 10 versions & 1 rubygems

Version Path
card-1.100.0 tmpsets/set/mod017-follow/all/follow/follow_link_views.rb
card-1.99.4 tmpsets/set/mod017-follow/all/follow/follow_link_views.rb
card-1.99.3 tmpsets/set/mod017-follow/all/follow/follow_link_views.rb
card-1.99.2 tmpsets/set/mod017-follow/all/follow/follow_link_views.rb
card-1.99.1 tmpsets/set/mod017-follow/all/follow/follow_link_views.rb
card-1.99.0 tmpsets/set/mod017-follow/all/follow/follow_link_views.rb
card-1.98.3 tmpsets/set/mod017-follow/all/follow/follow_link_views.rb
card-1.98.2 tmpsets/set/mod017-follow/all/follow/follow_link_views.rb
card-1.98.1 tmpsets/set/mod017-follow/all/follow/follow_link_views.rb
card-1.98.0 tmpsets/set/mod017-follow/all/follow/follow_link_views.rb