summaryrefslogtreecommitdiff
path: root/tpl/study/list.php
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2013-08-29 10:27:29 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2013-08-29 10:27:29 +0200
commit32802edf1a4753822b03bc148f23079f5ea89f66 (patch)
tree5be8e80b59e956b1d781e7d55122fe327ed38e98 /tpl/study/list.php
parent281c96082c00b9382d074ed72e03f22e236b6520 (diff)
downloadBits-32802edf1a4753822b03bc148f23079f5ea89f66.tar.gz
Bits-32802edf1a4753822b03bc148f23079f5ea89f66.zip
Minor changes to study app.
Diffstat (limited to 'tpl/study/list.php')
-rw-r--r--tpl/study/list.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/tpl/study/list.php b/tpl/study/list.php
index 3bb16dd..265d8a7 100644
--- a/tpl/study/list.php
+++ b/tpl/study/list.php
@@ -39,14 +39,14 @@ foreach ($batches as $batch) {
$dc = ($batch['lr_date'] ? ' style="background-color: ' . $days_color .'"' : '');
echo '<tr>';
- echo '<td><code>' . $batch['name'] . '</code></td>';
+ echo '<td><a id="batch_' . $batch['id'] . '"></a><code>' . $batch['name'] . '</code></td>';
echo '<td><a href="batch-study-' . $batch['id'] . '">view</a> | <a href="batchreview-study-' . $batch['id'] . '">test</a></td>';
echo '<td>' . $batch['num_reviews'] . '</td>';
echo '<td'.$dc.'>' . ($batch['lr_date'] ? $batch['lr_date'] : "never") . '</td>';
echo '<td'.$color.'>' . ($batch['lr_date'] ? $batch['lr_score'] . '/100' : 'N/A') .
- ($batch['blr_date'] ? ($batch['lr_score'] > $batch['blr_score'] ? '<span style="color: green"> ⬈</span>' :
- ($batch['lr_score'] < $batch['blr_score'] ? '<span style="color: orange;"> ⬊</span>' :
- '<span style="color: grey"> ➡</span>')) : '') . '</td>';
+ ($batch['blr_date'] ? ($batch['lr_score'] > $batch['blr_score'] ? '<span style="color: green"> ➚</span>' :
+ ($batch['lr_score'] < $batch['blr_score'] ? '<span style="color: orange;"> ➘</span>' :
+ '<span style="color: grey"> ➙</span>')) : '') . '</td>';
echo '</tr>';
}
echo '</table>';