diff options
Diffstat (limited to 'src/application/views/view_topics.php')
-rw-r--r-- | src/application/views/view_topics.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/application/views/view_topics.php b/src/application/views/view_topics.php index 291fbdc..a762f8c 100644 --- a/src/application/views/view_topics.php +++ b/src/application/views/view_topics.php @@ -12,7 +12,12 @@ if ($GLOBALS["currentUser"]?->hasPermission(UserPermissions::CREATE_OWN_TOPIC)): <div class="list-group"> <?php /** @var Topic $topic */ foreach ($topics as $topic): ?> <a class="list-group-item" href="?_action=viewtopic&topic=<?= htmlentities(urlencode($topic->id)) ?>"> - <h4 class="list-group-item-heading"><?= htmlentities($topic->title) ?></h4> + <h4 class="list-group-item-heading"> + <?php if ($topic->isLocked): ?> + <span class="glyphicon glyphicon-lock text-muted" aria-hidden="true"></span> + <?php endif; ?> + <?= htmlentities($topic->title) ?> + </h4> <p class="list-group-item-text _time"><?= htmlentities($topic->creationDate->format("c")) ?></p> </a> <?php endforeach; ?> |