Skip to content

Commit

Permalink
fix irwin dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Feb 8, 2018
1 parent 8dafb62 commit 4c67779
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 54 deletions.
57 changes: 26 additions & 31 deletions app/views/irwin/dashboard.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,37 +26,32 @@ <h1 class="text lichess_title">
</span>
}
</h1>
<div class="both">
<div class="queue">
We no longer know what irwin is up to.
</div>
<div class="recent">
<table class="slist">
<thead>
<tr>
<th>Recent report</th>
<th>Completed</th>
<th>Activation</th>
</tr>
</thead>
<tbody>
@dashboard.recent.map { rep =>
<tr class="report">
<td>
@userIdLink(rep.suspectId.value.some, params = "?mod")
</td>
<td class="little completed">
@momentFromNow(rep.date)
</td>
<td class="little activation @percentClass(rep.activation)">
<strong>@rep.activation%</strong>
over @rep.games.size games
</td>
</tr>
}
</tbody>
</table>
</div>
<div class="recent">
<table class="slist">
<thead>
<tr>
<th>Recent report</th>
<th>Completed</th>
<th>Activation</th>
</tr>
</thead>
<tbody>
@dashboard.recent.map { rep =>
<tr class="report">
<td>
@userIdLink(rep.suspectId.value.some, params = "?mod")
</td>
<td class="little completed">
@momentFromNow(rep.date)
</td>
<td class="little activation @percentClass(rep.activation)">
<strong>@rep.activation%</strong>
over @rep.games.size games
</td>
</tr>
}
</tbody>
</table>
</div>
</div>
}
23 changes: 0 additions & 23 deletions public/stylesheets/mod-irwin.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,6 @@
.irwin h1 .down {
color: #dc322f;
}
.irwin .both {
display: flex;
justify-content: space-between;
}
.irwin .both > div {
flex: 0 0 49%;
width: auto;
border-left: 1px solid #ccc;
border-width: 0 1px;
}
.irwin .both > div:first-child {
border-left: none;
border-right: 1px solid #ccc;
}
.irwin .little {
font-size: 0.8em;
opacity: 0.8;
Expand All @@ -39,15 +25,6 @@
display: block;
text-align: center;
}
.irwin .queue tbody tr {
}
.irwin .queue tbody tr.started,
body.dark .irwin .queue tbody tr.started {
background-image: linear-gradient(to right, rgba(99,155,36,0.7) 0px, rgba(99,155,36,0.7) 5px, rgba(0,0,0,0) 5px, rgba(0,0,0,0) 100%);
}
body.dark .irwin .both > * {
border-color: #444;
}
body.dark .irwin .activation {
color: #fff;
text-align: center;
Expand Down

0 comments on commit 4c67779

Please sign in to comment.