Skip to content

Commit

Permalink
more game list icons
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Aug 3, 2014
1 parent 9780172 commit 999626a
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 7 deletions.
16 changes: 11 additions & 5 deletions app/views/game/widgets.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@
<a href="@routes.User.show(playerUser.id)" class="user_link ulpt">@usernameOrId(playerUser.id)</a><br />
@playerUser.rating @playerUser.ratingDiff.map(showRatingDiff)
}.getOrElse {
@player.aiLevel.map { level =>
<span>@trans.aiNameLevelAiLevel.str(aiName, level)</span><br />@aiRating(level)
}.getOrElse {
<span>@player.nameSplit match {
case Some((name, rating)) => {
<span>@name</span><br />@rating
}
case _ => {<span class="anon">@User.anonymous</span>}
}</span>
}
}
</div>
}

Expand All @@ -21,11 +25,13 @@
@defining(user flatMap g.player) { fromPlayer =>
@defining(fromPlayer | g.firstPlayer ) { firstPlayer =>
@gameFen(g, firstPlayer.color, ownerLink, withTitle = false)
<div class="infos" @if(g.imported) {
data-icon="/"
} else {
@g.perfType.map { p => data-icon="@p.iconChar"}
}>
<div class="infos" data-icon="@g.perfType match {
case _ if g.fromPosition => {*}
case _ if g.hasAi => {:}
case _ if g.imported => {/}
case Some(p) => {@p.iconChar}
case _ => {8}
}">
@bookmark.toggle(g)
<div class="header">
<strong>
Expand Down
Binary file removed public/font20/fonts/lichess.woff
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file added public/font21/fonts/lichess.woff
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,14 @@ <h2>Character mapping</h2>
<div data-icon="/" class="icon"></div>
<input type="text" readonly="readonly" value="/">
</li>
<li>
<div data-icon="*" class="icon"></div>
<input type="text" readonly="readonly" value="*">
</li>
<li>
<div data-icon=":" class="icon"></div>
<input type="text" readonly="readonly" value=":">
</li>
</ul>
<h2>CSS mapping</h2>
<ul class="glyphs css-mapping">
Expand Down Expand Up @@ -688,6 +696,14 @@ <h2>CSS mapping</h2>
<div class="icon icon-upload-cloud"></div>
<input type="text" readonly="readonly" value="upload-cloud">
</li>
<li>
<div class="icon icon-feather"></div>
<input type="text" readonly="readonly" value="feather">
</li>
<li>
<div class="icon icon-gears-setting"></div>
<input type="text" readonly="readonly" value="gears-setting">
</li>
</ul>
</div><script type="text/javascript">
(function() {
Expand Down
6 changes: 6 additions & 0 deletions public/font20/styles.css → public/font21/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,9 @@
.icon-upload-cloud:before {
content: "/";
}
.icon-feather:before {
content: "*";
}
.icon-gears-setting:before {
content: ":";
}
4 changes: 2 additions & 2 deletions public/stylesheets/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ time {
}
@font-face {
font-family: "lichess";
src: url("../font20/fonts/lichess.eot");
src: url("../font20/fonts/lichess.eot?#iefix") format("embedded-opentype"), url("../font20/fonts/lichess.woff") format("woff"), url("../font20/fonts/lichess.ttf") format("truetype"), url("../font20/fonts/lichess.svg#lichess") format("svg");
src: url("../font21/fonts/lichess.eot");
src: url("../font21/fonts/lichess.eot?#iefix") format("embedded-opentype"), url("../font21/fonts/lichess.woff") format("woff"), url("../font21/fonts/lichess.ttf") format("truetype"), url("../font21/fonts/lichess.svg#lichess") format("svg");
font-weight: normal;
font-style: normal;
}
Expand Down

0 comments on commit 999626a

Please sign in to comment.