app/controllers/teams_controller.rb
# Radiography for a specified team id: "Goggle cup" tab rendering
# Collects and represents the Goggle cup ranking
#
# == Params:
# id: the team id to be processed
#
Radiography for a specified team id: "Goggle cup" tab rendering
Collects and represents the Goggle cup ranking

the team id to be processed
Radiography for a specified team id : " Goggle cup " tab rendering Collects and represents the Goggle cup ranking the team id to be processed
def goggle_cup
    @tab_title = @team.get_current_goggle_cup_name_at
    @goggle_cup = @team.get_current_goggle_cup_at
    @goggle_cup_name = @goggle_cup ? @goggle_cup.get_full_name : I18n.t('goggle_cup.default_name')
    @goggle_cup_max_points = @goggle_cup ? @goggle_cup.max_points.to_s : I18n.t('goggle_cup.default_max_points')
    @goggle_cup_max_performance = @goggle_cup ? @goggle_cup.max_performance.to_s : I18n.t('goggle_cup.default_max_performance')
    @goggle_cup_rank = @goggle_cup ? @goggle_cup.calculate_goggle_cup_rank : []
  end
def goggle_cup @tab_title = @team . get_current_goggle_cup_name_at @goggle_cup = @team . get_current_goggle_cup_at @goggle_cup_name = @goggle_cup ? @goggle_cup . get_full_name : I18n . t ( 'goggle_cup.default_name' ) @goggle_cup_max_points = @goggle_cup ? @goggle_cup . max_points . to_s : I18n . t ( 'goggle_cup.default_max_points' ) @goggle_cup_max_performance = @goggle_cup ? @goggle_cup . max_performance . to_s : I18n . t ( 'goggle_cup.default_max_performance' ) @goggle_cup_rank = @goggle_cup ? @goggle_cup . calculate_goggle_cup_rank : [ ] end
Radiography for a specified team id: "Goggle cup" tab rendering
Collects and represents the Goggle cup ranking
Radiography for a specified team id : " Goggle cup " tab rendering Collects and represents the Goggle cup ranking
# Gets current goggle cup, if any # Prepare goggle cup rankings