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 { ...@@ -996,6 +996,9 @@ img.sign-in-image {
.sidebar .content { .sidebar .content {
padding: 10px; border: 1px solid #C8DDFA; background: #F7FBFE; padding: 10px; border: 1px solid #C8DDFA; background: #F7FBFE;
} }
.sidebar .content:empty {
display: none;
}
.sidebar section .header { .sidebar section .header {
font-weight: bold; font-weight: bold;
......
...@@ -28,8 +28,7 @@ require(CLIENTINC_DIR.'header.inc.php'); ...@@ -28,8 +28,7 @@ require(CLIENTINC_DIR.'header.inc.php');
echo __('Open a New Ticket');?></a> echo __('Open a New Ticket');?></a>
</p> </p>
</div> </div>
<div class="content"> <div class="content"><?php
<?php
$faqs = FAQ::getFeatured()->select_related('category')->limit(5); $faqs = FAQ::getFeatured()->select_related('category')->limit(5);
if ($faqs->all()) { ?> if ($faqs->all()) { ?>
<section><div class="header"><?php echo __('Featured Questions'); ?></div> <section><div class="header"><?php echo __('Featured Questions'); ?></div>
...@@ -50,8 +49,8 @@ require(CLIENTINC_DIR.'header.inc.php'); ...@@ -50,8 +49,8 @@ require(CLIENTINC_DIR.'header.inc.php');
<?php } ?> <?php } ?>
</section> </section>
<?php <?php
} ?> }
</div> ?></div>
</div> </div>
<div class="welcome"> <div class="welcome">
<?php <?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