app/helpers/swimmers_helper.rb
# Renders the "block/unblock friendship link" for a swimmer associated to a user but
# only if also the current user can actually click on it.
# (Otherwise nothing is rendered)
#
Renders the "block/unblock friendship link" for a swimmer associated to a user but
only if also the current user can actually click on it.
(Otherwise nothing is rendered)
Renders the " block / unblock friendship link " for a swimmer associated to a user but only if also the current user can actually click on it . ( Otherwise nothing is rendered )
def social_block_badge( swimmer )
    decorated_swimmer = assure_swimmer_is_decorated( swimmer )
    label_txt = decorated_swimmer.get_block_label_text_for( current_user )
    tooltip   = decorated_swimmer.get_block_tooltip_text_for( current_user )
    path      = decorated_swimmer.get_block_path_for( current_user )
    build_link_result( "block#{swimmer.id}", label_txt, "label label-info", tooltip, path ) if path
  end
def social_block_badge ( swimmer ) decorated_swimmer = assure_swimmer_is_decorated ( swimmer ) label_txt = decorated_swimmer . get_block_label_text_for ( current_user ) tooltip = decorated_swimmer . get_block_tooltip_text_for ( current_user ) path = decorated_swimmer . get_block_path_for ( current_user ) build_link_result ( "block#{swimmer.id}" , label_txt , "label label-info" , tooltip , path ) if path end
Renders the "block/unblock friendship link" for a swimmer associated to a user but
only if also the current user can actually click on it.
Renders the " block / unblock friendship link " for a swimmer associated to a user but only if also the current user can actually click on it .
swimmer
<not_specific>