app/decorators/meeting_individual_result_decorator.rb
# Returns the image tag corresponding to the medal simbol for any valid ranking
# position (1..3) or an empty string.
#
Returns the image tag corresponding to the medal simbol for any valid ranking
position (1..3) or an empty string.
Returns the image tag corresponding to the medal simbol for any valid ranking position ( 1 .. 3 ) or an empty string .
def show_any_rank_medal()
    if ( object.is_valid_for_ranking && object.rank > 0 && object.rank < 4 )
      case object.rank
      when 1
        h.image_tag( "medal_gold_3.png" )
      when 2
        h.image_tag( "medal_silver_3.png" )
      when 3
        h.image_tag( "medal_bronze_3.png" )
      end
    else
      ''
    end
  end
def show_any_rank_medal ( ) if ( object . is_valid_for_ranking && object . rank > 0 && object . rank < 4 ) case object . rank when 1 h . image_tag ( "medal_gold_3.png" ) when 2 h . image_tag ( "medal_silver_3.png" ) when 3 h . image_tag ( "medal_bronze_3.png" ) end else '' end end
Returns the image tag corresponding to the medal simbol for any valid ranking
position (1..3) or an empty string.
Returns the image tag corresponding to the medal simbol for any valid ranking position ( 1 .. 3 ) or an empty string .