Modify the HTML class of cells in the tournament table.

This commit is contained in:
vonavi 2013-10-05 23:30:54 +03:00
parent 667d106b27
commit b99fcdd160

View File

@ -122,10 +122,10 @@ module LORChess
for row in 0..(@dim-1) for row in 0..(@dim-1)
@buffer << " <tr>\n" @buffer << " <tr class=\"place-" << @player_place[row] << "\">\n"
@buffer << " <td>" << (row+1).to_s << "</td>\n" @buffer << " <td class=\"number\">" << (row+1).to_s << "</td>\n"
@buffer << " <td><strong>" << @players[row] << "</strong></td>\n" @buffer << " <td class=\"player\"><strong>" << @players[row] << "</strong></td>\n"
@buffer << " <td>" << @elo_list[row] << "</td>\n" @buffer << " <td class=\"elo\">" << @elo_list[row] << "</td>\n"
for cell in 0..(@dim-1) for cell in 0..(@dim-1)
unless cell == row unless cell == row
@ -135,8 +135,8 @@ module LORChess
end end
end end
@buffer << " <td>" << @player_score[row] << "</td>\n" @buffer << " <td class=\"total\">" << @player_score[row] << "</td>\n"
@buffer << " <td class=\"place-" << @player_place[row] << "\">" << @player_place[row] << "</td>\n" @buffer << " <td class=\"place\">" << @player_place[row] << "</td>\n"
@buffer << " </tr>\n" @buffer << " </tr>\n"
end end