Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove dependency on @league

  • Loading branch information...
commit 6fccab9aae7f0d1ab8719de2fde00a3ecd396866 1 parent 8481cb1
game7 authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 app/views/teams/_team.html.haml
6 app/views/teams/_team.html.haml
View
@@ -5,11 +5,11 @@
= render :partial => "actions", :locals => { :team => team } if current_user_is_admin?
%h1.name{ :style => "color: #{team.secondary_color}"}= team.name
.links
- = link_to "Schedule", team_schedule_path(@league.slug, team.season_slug, team.slug), { :style => "color: #{team.accent_color};" }
+ = link_to "Schedule", team_schedule_path(team.league_slug, team.season_slug, team.slug), { :style => "color: #{team.accent_color};" }
%span{ :style=> "color: #{team.secondary_color}"}= " | "
- = link_to "Roster", team_roster_path(@league.slug, team.season_slug, team.slug), { :style => "color: #{team.accent_color};" }
+ = link_to "Roster", team_roster_path(team.league_slug, team.season_slug, team.slug), { :style => "color: #{team.accent_color};" }
%span{ :style=> "color: #{team.secondary_color}"}= " | "
- = link_to "Statistics", team_statistics_path(@league.slug, team.season_slug, team.slug), { :style => "color: #{team.accent_color};" }
+ = link_to "Statistics", team_statistics_path(team.league_slug, team.season_slug, team.slug), { :style => "color: #{team.accent_color};" }
Please sign in to comment.
Something went wrong with that request. Please try again.