Skip to content

Commit

Permalink
Fairplay icon in game list; updated PSD files
Browse files Browse the repository at this point in the history
  • Loading branch information
vthorsteinsson committed Apr 8, 2015
1 parent 2ae8acf commit a57860a
Show file tree
Hide file tree
Showing 13 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions netskrafl.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ def _gamelist():
"my_turn": False,
"overdue": False,
"zombie": True,
"fairplay": u.fairplay(),
"tile_count" : Alphabet.BAG_SIZE # All tiles accounted for
})
# Sort zombies in decreasing order by last move, i.e. most recently completed games first
Expand All @@ -349,13 +350,15 @@ def _gamelist():
opp = g["opp"] # User id of opponent
ts = g["ts"]
overdue = False
fairplay = False
if opp is None:
# Autoplayer opponent
nick = Game.autoplayer_name(g["robot_level"])
else:
# Human opponent
u = User.load(opp)
nick = u.nickname()
fairplay = u.fairplay()
delta = now - ts
if g["my_turn"]:
# Start to show warning after 12 days
Expand All @@ -373,6 +376,7 @@ def _gamelist():
"my_turn": g["my_turn"],
"overdue": overdue,
"zombie": False,
"fairplay": fairplay,
"tile_count" : g["tile_count"]
})
return result
Expand Down
Binary file modified resources/NetskraflFacebookBanner.psd
Binary file not shown.
Binary file modified resources/NetskraflFacebookCover.psd
Binary file not shown.
Binary file modified resources/NetskraflFacebookCoverLarge.psd
Binary file not shown.
Binary file modified resources/NetskraflFacebookImage.psd
Binary file not shown.
Binary file modified resources/NetskraflFacebookImageSq.psd
Binary file not shown.
Binary file modified static/NetskraflFacebookBanner.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/NetskraflFacebookCover.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/NetskraflFacebookCoverLarge.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/NetskraflFacebookImage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/NetskraflFacebookImageSq.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,9 @@ function populateGameList(json) {
else
if (item.zombie)
flagClass = " zombie";
// Fair play commitment
if (item.fairplay)
opp = "<span class='fairplay-btn' title='Skraflar án hjálpartækja'></span> " + opp;
var myTurn = "<span title='" + turnText + "' class='glyphicon glyphicon-flag" +
flagClass + "'></span>";
var overdueText = item.overdue ?
Expand Down
2 changes: 1 addition & 1 deletion templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<span class="caption"></span>Skemmtilegt | skerpandi | ókeypis
</div>
<div class="welcome">
<span class="caption"></span>Netskrafl er vettvangur yfir 6.000 íslenskra skraflara á netinu.
<span class="caption"></span>Netskrafl er vettvangur yfir 7.000 íslenskra skraflara á netinu.
</div>
<div class="welcome">
<span class="caption"></span>Netskrafl notar Google Accounts innskráningu, þá
Expand Down

0 comments on commit a57860a

Please sign in to comment.