-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Done: · Standings controller renders all teams or a link for teams creation if there are not enough teams in the database (tested). · Added custom find methods for standing · The standings created on tournament creation now have contiguous dates instead of the start date for that tournament, thus validating the uniqueness of sceduled date for a standing. · Done some standings edit stuff git-svn-id: http://svn2.assembla.com/svn/fs/trunk/fpt@10 d4c3aac1-5b85-48de-b3bb-3a454bd87b0a
- Loading branch information
lmarcucci
committed
Feb 7, 2008
1 parent
6d66874
commit b8e7ccb
Showing
7 changed files
with
54 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
<h3>Torneo <%= get_tournament_type(@standing.tournament) %> | ||
<%= @standing.tournament.season.year %></h3> | ||
<%= link_to 'tournaments', tournaments_path %> > | ||
<%= link_to "#{get_tournament_type(@tournament)}" + " " + | ||
"#{@tournament.season.year}", tournament_path(@tournament) %> > | ||
<%= @standing.name.capitalize %>: | ||
|
||
<h3> | ||
Torneo <%= get_tournament_type(@tournament) %> | ||
<%= @tournament.season.year %> | ||
</h3> | ||
|
||
<h4><%= @standing.name.capitalize %></h4> | ||
<h4>Partidos:</h4> <%= @standing.matches.size %> | ||
<h4> | ||
<%= @standing.name.capitalize %> | ||
</h4> | ||
|
||
<% if @standing.matches.nil? %> | ||
<% if @standing.matches.empty? %> | ||
<p> | ||
There are no matches for this standing. In the future, this will redirect to | ||
new_team_path. | ||
Click | ||
<%= link_to "here", edit_tournament_standing_path(@standing.tournament, | ||
@standing) %> to edit this standing's matches. | ||
</p> | ||
<% else %> | ||
<% for match in @standing.matches %> | ||
<p> | ||
<%= match.home_team.short_name %> | ||
<%= match.home_team_score %> vs <%= match.away_team_score %> | ||
<%= match.away_team.short_name %> | ||
(<%= match.played_date.to_formatted_s(:rfc822) %>) | ||
</p> | ||
<p> | ||
<%= match.home_team.short_name %> | ||
<%= match.home_team_score %> vs <%= match.away_team_score %> | ||
<%= match.away_team.short_name %> | ||
(<%= match.played_date.to_formatted_s(:rfc822) %>) | ||
</p> | ||
<% end %> | ||
<% end %> | ||
|
||
<%= link_to 'tournaments', tournaments_path %> > | ||
<%= link_to "#{get_tournament_type(@standing.tournament)}" + " " + "#{@standing.tournament.season.year}", | ||
tournament_path(@standing.tournament) %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters