Sha256: a0433889612d9fb6092539c15b6b300ce50b5badd528f5be95d776f3ab8c19cd
Contents?: true
Size: 1.79 KB
Versions: 18
Compression:
Stored size: 1.79 KB
Contents
# -*- encoding : utf-8 -*- class Card; module Set; module Self; module AccountLinks; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/05_standard/set/self/account_links.rb ~~~~~~~~~~~ format :html do def item_links args [ optional_render( :my_card, args), optional_render( :invite, args), optional_render( :sign_out, args), optional_render( :sign_up, args), optional_render( :sign_in, args) ] end #ENGLISH below view :sign_up, perms: lambda { |r| !Auth.signed_in? && Card.new(type_id: Card::SignupID).ok?(:create) }, denial: :blank do |args| link_to( 'Sign up', card_path('account/signup'), id: 'signup-link' ) end view :sign_in, perms: lambda { |r| !Auth.signed_in? }, denial: :blank do |args| link_to( 'Sign in', card_path(':signin'), id: 'signin-link' ) end view :invite, perms: lambda { |r| Auth.signed_in? && Card.new(type_id: Card.default_accounted_type_id).ok?(:create) }, denial: :blank do |args| link_to( 'Invite', card_path('account/signup'), id: 'invite-a-friend-link' ) end view :sign_out, perms: lambda { |r| Auth.signed_in? }, denial: :blank do |args| link_to( 'Sign out', card_path('delete/:signin'), id: 'signout-link' ) end view :my_card, perms: lambda { |r| Auth.signed_in? }, denial: :blank do |args| card_link( Auth.current.cardname, id: 'my-card-link' ) end view :raw do |args| item_links(args).join ' ' end view :core do |args| content_tag :span, id: 'logging' do render_raw args end end end # ~~~~~~~~~~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/05_standard/set/self/account_links.rb ~~~~~~~~~~~ end;end;end;end;
Version data entries
18 entries across 18 versions & 1 rubygems