app/helpers/swimmers_helper.rb
# Creates a toggle link for #confirm/#unconfirm actions for valid swimmers.
#
# Renders the "ask association confirm/unconfirm link" for a swimmer
# associated to a user but only if if also the current user can actually
# click on it.
# (Otherwise nothing is rendered)
#
Creates a toggle link for #confirm/#unconfirm actions for valid swimmers.
Renders the "ask association confirm/unconfirm link" for a swimmer
associated to a user but only if if also the current user can actually
click on it.
(Otherwise nothing is rendered)
Creates a toggle link for #confirm / #unconfirm actions for valid swimmers . Renders the " ask association confirm / unconfirm link " for a swimmer associated to a user but only if if also the current user can actually click on it . ( Otherwise nothing is rendered )
def social_confirm_badge( swimmer )
    decorated_swimmer = assure_swimmer_is_decorated( swimmer )
    label_txt = decorated_swimmer.get_confirm_label_text_for( current_user )
    tooltip   = decorated_swimmer.get_confirm_tooltip_text_for( current_user )
    path      = decorated_swimmer.get_confirm_path_for( current_user )
    build_link_result( "confirm#{swimmer.id}", label_txt, "label label-default", tooltip, path, :post ) if path
  end
def social_confirm_badge ( swimmer ) decorated_swimmer = assure_swimmer_is_decorated ( swimmer ) label_txt = decorated_swimmer . get_confirm_label_text_for ( current_user ) tooltip = decorated_swimmer . get_confirm_tooltip_text_for ( current_user ) path = decorated_swimmer . get_confirm_path_for ( current_user ) build_link_result ( "confirm#{swimmer.id}" , label_txt , "label label-default" , tooltip , path , :post ) if path end
Creates a toggle link for #confirm/#unconfirm actions for valid swimmers.
Creates a toggle link for #confirm / #unconfirm actions for valid swimmers .
swimmer
<not_specific>