Showing
3 changed files
with
12 additions
and
5 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| |
5 | + tr | ||
6 | td = user | 6 | td = user |
7 | td = points | 7 | td = points |
8 | - | 8 | + - if @leaders.empty? |
9 | - | 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| |
5 | + tr | ||
6 | td = r.match.local | 6 | td = r.match.local |
7 | td VS | 7 | td VS |
8 | td = r.match.visit | 8 | td = r.match.visit |
9 | td = r.points | 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 | ||
15 | - @recent_matches.each do |match| | 14 | - @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