Sha256: cd876d5772e59356d20713af8454b3e14fc01a2b8e37ee8f302846a9af95c01a

Contents?: true

Size: 1.24 KB

Versions: 1

Compression:

Stored size: 1.24 KB

Contents

# encoding: utf-8

module SportDbAdmin
module PartHelper

  ###################################
  # helper for shared partials
  #
  # by convention all start w/ render_


  def render_game_date( game, opts={} )
    render partial: 'sport_db_admin/shared/td_game_date', locals: { game: game }
  end

  def render_game_score( game, opts={} )
    render partial: 'sport_db_admin/shared/td_game_score', locals: { game: game }
  end

  def render_game_team1( game, opts={} )
    render partial: 'sport_db_admin/shared/td_game_team1', locals: { game: game }
  end

  def render_game_team2( game, opts={} )
    render partial: 'sport_db_admin/shared/td_game_team2', locals: { game: game }
  end

  def render_game_flags( game, opts={} )
    render partial: 'sport_db_admin/shared/td_game_flags', locals: { game: game }
  end

  def render_game_debug( game, opts={} )
    render partial: 'sport_db_admin/shared/td_game_debug', locals: { game: game }
  end

  def render_game_round( game, opts={} )
    render partial: 'sport_db_admin/shared/td_game_round', locals: { game: game }
  end


  def render_team_world_tree( team, opts={} )
    render partial: 'sport_db_admin/shared/team_world_tree', locals: { team: team }
  end


end # module PartHelper
end # module SportDbAdmin

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sportdb-admin-0.2.0 app/helpers/sport_db_admin/part_helper.rb