add icon and date for wrongly solved Stations (fixes #131)
This commit is contained in:
parent
2904549a65
commit
87d70f70e2
2 changed files with 17 additions and 3 deletions
|
|
@ -169,12 +169,19 @@
|
||||||
{
|
{
|
||||||
$groups = $this->Charactergroups->getGroupsForQueststation($station['id']);
|
$groups = $this->Charactergroups->getGroupsForQueststation($station['id']);
|
||||||
foreach($groups as &$group) {
|
foreach($groups as &$group) {
|
||||||
$group['solved'] = $this->Charactergroupsqueststations->hasCharactergroupSolvedStation(
|
$group['tried'] = $this->Charactergroupsqueststations->hasCharactergroupTriedStation(
|
||||||
$station['id'],
|
$station['id'],
|
||||||
$group['id']
|
$group['id']
|
||||||
);
|
);
|
||||||
|
if($group['tried']) {
|
||||||
|
$group['solved'] = $this->Charactergroupsqueststations->hasCharactergroupSolvedStation(
|
||||||
|
$station['id'],
|
||||||
|
$group['id']
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
print_r($groups);
|
||||||
|
|
||||||
// Task
|
// Task
|
||||||
$task = null;
|
$task = null;
|
||||||
|
|
|
||||||
|
|
@ -99,12 +99,19 @@
|
||||||
<?=$timeFormatter->format(new \DateTime($group['created']))?>
|
<?=$timeFormatter->format(new \DateTime($group['created']))?>
|
||||||
</span>
|
</span>
|
||||||
<span class="group"><a href="<?=$linker->link(array('charactergroups','group',$seminary['url'],$groupsgroup['url'],$group['url']))?>"><?=$group['name']?></a></span>
|
<span class="group"><a href="<?=$linker->link(array('charactergroups','group',$seminary['url'],$groupsgroup['url'],$group['url']))?>"><?=$group['name']?></a></span>
|
||||||
<?php if($group['solved'] !== false) : ?>
|
|
||||||
<span class="xp">
|
<span class="xp">
|
||||||
|
<?php if($group['tried']) : ?>
|
||||||
|
<?php if($group['solved']) : ?>
|
||||||
<?=_(sprintf('solved at %s', $timeFormatter->format(new \DateTime($group['solved']))))?>
|
<?=_(sprintf('solved at %s', $timeFormatter->format(new \DateTime($group['solved']))))?>
|
||||||
<i class="fa fa-check-circle fa-fw"></i>
|
<i class="fa fa-check-circle fa-fw"></i>
|
||||||
|
<?php else : ?>
|
||||||
|
<?=_(sprintf('failed at %s', $timeFormatter->format(new \DateTime($group['solved']))))?>
|
||||||
|
<i class="fa fa-times-circle fa-fw"></i>
|
||||||
|
<?php endif ?>
|
||||||
|
<?php else : ?>
|
||||||
|
<i class="fa fa-globe fa-fw"></i>
|
||||||
|
<?php endif ?>
|
||||||
</span>
|
</span>
|
||||||
<?php endif ?>
|
|
||||||
</li>
|
</li>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue