Skip to content

Commit

Permalink
Session list now hides private sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
Toxantron committed Dec 2, 2015
1 parent 72fe6f7 commit 59fa2b0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/sessions/list.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
<span class="session-list right"><strong>Private</strong></span>
<div class="list-group">
<?php foreach($sessions as $session): ?>
<a class="list-group-item" href=<?php echo ("\"session.php?id=" . $session->getId() . "\"") ?>>
<span class="session-list left"><strong><?php echo $session->getName()?></strong></span>
<span class="session-list center"><strong><?php echo $session->getMembers()->count() ?></strong></span>
<a class="list-group-item" <?php echo $session->getIsPrivate() ? "" : ("href=\"session.php?id=" . $session->getId() . "\""); ?>>
<span class="session-list left"><strong><?= $session->getName() ?></strong></span>
<span class="session-list center"><strong><?= $session->getMembers()->count() ?></strong></span>
<?php if($session->getIsPrivate() == true): ?>
<span class="session-list right"><span class="glyphicon glyphicon-lock"></span></span>
<?php endif; ?>
Expand Down

0 comments on commit 59fa2b0

Please sign in to comment.