Skip to content
Snippets Groups Projects
Commit e648679f authored by Jared Hancock's avatar Jared Hancock
Browse files

ui: Hide empty sidebar on client index

parent 1a2e6280
No related branches found
No related tags found
No related merge requests found
......@@ -996,6 +996,9 @@ img.sign-in-image {
.sidebar .content {
padding: 10px; border: 1px solid #C8DDFA; background: #F7FBFE;
}
.sidebar .content:empty {
display: none;
}
.sidebar section .header {
font-weight: bold;
......
......@@ -28,8 +28,7 @@ require(CLIENTINC_DIR.'header.inc.php');
echo __('Open a New Ticket');?></a>
</p>
</div>
<div class="content">
<?php
<div class="content"><?php
$faqs = FAQ::getFeatured()->select_related('category')->limit(5);
if ($faqs->all()) { ?>
<section><div class="header"><?php echo __('Featured Questions'); ?></div>
......@@ -50,8 +49,8 @@ require(CLIENTINC_DIR.'header.inc.php');
<?php } ?>
</section>
<?php
} ?>
</div>
}
?></div>
</div>
<div class="welcome">
<?php
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment