| 1 |
? my ($app, $msg) = @_; |
| 2 |
? my $avatar = ($msg->{avatar} and $app->config->{avatars} eq "show") ? $msg->{avatar} : ""; |
| 3 |
<li class="message <?= $msg->{highlight} ? "highlight " : "" ?><?= $avatar ? "avatar " : "" ?><?= $msg->{nick} ?><?= $msg->{self} ? " self" : "" ?><?= $msg->{consecutive} ? " consecutive" : "" ?><?= $msg->{monospaced} ? " monospace" : ""?>" id="<?= $msg->{msgid} ?>"> |
| 4 |
<div class="left"> |
| 5 |
<a href="javascript:alice.connection.requestWindow('<?= $msg->{nick} ?>','<?= $msg->{window}{id} ?>')" class="nick"> |
| 6 |
<? if ($avatar) { ?> |
| 7 |
<img src="<?= $avatar ?>" alt="<?= $msg->{nick} ?>" /> |
| 8 |
<span class="nickhint"><?= $msg->{nick} ?></span> |
| 9 |
<? } else { ?> |
| 10 |
<?= $msg->{nick} ?> |
| 11 |
<?}?> |
| 12 |
</a> |
| 13 |
</div> |
| 14 |
<div class="msg"><?= $msg->{html} ?></div> |
| 15 |
<? if (!$msg->{consecutive} and $msg->{timestamp}) { ?> |
| 16 |
<div class="timehint"><span class="timestamp"><?= $msg->{timestamp} ?></span></div> |
| 17 |
<? } ?> |
| 18 |
</li> |