cross-link following-followers pages

This commit is contained in:
Thibault Duplessis 2013-05-31 19:12:33 +02:00
parent a4116f16d3
commit a7a8948b2f
4 changed files with 18 additions and 3 deletions

View file

@ -27,4 +27,10 @@ trait RelationHelper {
)
}
}.await
def nbFollowers(userId: String) =
Env.relation.api.nbFollowers(userId).await
def nbFollowing(userId: String) =
Env.relation.api.nbFollowing(userId).await
}

View file

@ -2,7 +2,12 @@
@user.layout(title = u.username + " - " + trans.nbFollowers(users.size)) {
<div class="content_box no_padding">
<h1>@userLink(u, withOnline = false) @trans.nbFollowers(users.size)</h1>
<h1>
@userLink(u, withOnline = false)
@trans.nbFollowers(users.size)
&amp;
<a href="@routes.Relation.following(u.username)">@trans.nbFollowing(nbFollowing(u.id))</a>
</h1>
@user.simpleTable(users)
</div>
}

View file

@ -2,7 +2,12 @@
@user.layout(title = u.username + " - " + trans.nbFollowing(users.size)) {
<div class="content_box no_padding">
<h1>@userLink(u, withOnline = false) @trans.nbFollowing(users.size)</h1>
<h1>
@userLink(u, withOnline = false)
@trans.nbFollowing(users.size)
&amp;
<a href="@routes.Relation.followers(u.username)">@trans.nbFollowers(nbFollowers(u.id))</a>
</h1>
@user.simpleTable(users)
</div>
}

1
todo
View file

@ -55,7 +55,6 @@ publish scalastic 0.90.0-thib
stream game export
from MoralIntentions email:
- The possibility to use a practice board to play against yourself or to demonstrate something when you're giving chess lessons with your laptop or an interactive whiteboard (with the same features as and with a button beneath "Play with the machine" in Play).
- A time control option of Simple delay and/or Bronstein delay (http://en.wikipedia.org/wiki/Time_control).
- The possibility to give other players a "thumbs up" or a "thumbs down" on their profile (which is only visible to the player who has given the thumbs up or thumbs down) so you can filter games (in Play) based on thumbs up (some players lack sportsmanship, this is a way to avoid them). It would be great if we could also filter "Who is online" (in People) that way, so we can see if it's likely that we'll find a fun opponent to play against.
- More tie-breaking options and stats (in Tournament): https://en.wikipedia.org/wiki/Tie-breaking_in_Swiss_system_tournaments, especially Sonneborn-Berger and Tournament Performance Rating.
- Several options of how points should be given to players (for example: Score * Sonneborn-Berger * Tournament Performance Rating * Percentage Score [for example: 0.64] / 1000) and therefore also several Leaderboards.