Showing
3 changed files
with
24 additions
and
17 deletions
1 | h1 Leaderboard | 1 | h1 Leaderboard |
2 | table.leaderboard | 2 | table.leaderboard |
3 | tbody | 3 | tbody |
4 | - tr | ||
5 | - @leaders.each do |user, points| | 4 | - @leaders.each do |user, points| |
6 | - td = user | 5 | + tr |
7 | - td = points | 6 | + td = user |
8 | - | 7 | + td = points |
9 | - | 8 | + - if @leaders.empty? |
9 | + tr | ||
10 | + td colspan=2 There are no results yet | ... | ... |
1 | h1 Your most recent results | 1 | h1 Your most recent results |
2 | table | 2 | table |
3 | tbody | 3 | tbody |
4 | - tr | ||
5 | - @results.each do |r| | 4 | - @results.each do |r| |
6 | - td = r.match.local | 5 | + tr |
7 | - td VS | 6 | + td = r.match.local |
8 | - td = r.match.visit | 7 | + td VS |
9 | - td = r.points | 8 | + td = r.match.visit |
9 | + td = r.points | ||
10 | + - if @results.empty? | ||
11 | + tr | ||
12 | + td colspan=4 There are no finished matches yet. | ... | ... |
... | @@ -11,10 +11,13 @@ table.upcoming | ... | @@ -11,10 +11,13 @@ table.upcoming |
11 | h1 Recent matches | 11 | h1 Recent matches |
12 | table.recent | 12 | table.recent |
13 | tbody | 13 | tbody |
14 | - tr | 14 | + - @recent_matches.each do |match| |
15 | - - @recent_matches.each do |match| | 15 | + tr |
16 | - td = l(match.date, format: :short) | 16 | + td = l(match.date, format: :short) |
17 | - td = match.local | 17 | + td = match.local |
18 | - td = match.score_local | 18 | + td = match.score_local |
19 | - td = match.visit | 19 | + td = match.visit |
20 | - td = match.score_visit | 20 | + td = match.score_visit |
21 | + - if @recent_matches.empty? | ||
22 | + tr | ||
23 | + td colspan=4 There are no finished matches yet. | ... | ... |
-
Please register or login to post a comment