Display suspect username in red in chat log
This commit is contained in:
parent
84d7838e13
commit
e43c241338
@ -98,7 +98,7 @@ h2,h3,h4,h5,h6 {
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
.suspect-message {
|
||||
.suspect {
|
||||
color: #ED9898;
|
||||
}
|
||||
|
||||
|
@ -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): ?>
|
||||
-> <?= $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 />
|
||||
|
Loading…
Reference in New Issue
Block a user