Display suspect username in red in chat log

This commit is contained in:
Keir Nellyer 2016-08-10 15:30:17 +01:00
parent 84d7838e13
commit e43c241338
2 changed files with 9 additions and 13 deletions

View File

@ -98,7 +98,7 @@ h2,h3,h4,h5,h6 {
padding-right: 10px;
}
.suspect-message {
.suspect {
color: #ED9898;
}

View File

@ -470,20 +470,16 @@
<span class="label label-info chat" style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;"><?= $typeDisplayName ?></span>
<?php endif; ?>
<span class="black">
<?php
echo $message->getSender()->getUsername();
if ($isPM)
{
echo ' -> ' . $message->getRecipients()[0]->getUsername();
}
echo ': ';
?>
<span class="<?= ($message->getSender() == $report->getSuspect() ? 'suspect' : 'text-muted') ?>">
<?= $message->getSender()->getUsername() ?>
</span>
<span class="<?= ($message->getSender() == $report->getSuspect() ? 'suspect-message' : 'text-muted') ?>"><?= $message->getMessage() ?></span>
<?php if ($isPM): ?>
&nbsp;->&nbsp;<?= $message->getRecipients()[0]->getUsername() ?>
<?php endif; ?>
<span class="black">: </span>
<span class="text-muted"><?= $message->getMessage() ?></span>
<?php if ($i < $displayAmount - 1): // Don't break on the last element ?>
<br />