Skip to content

Commit

Permalink
Use PyroCMS styling for 'no data' views
Browse files Browse the repository at this point in the history
  • Loading branch information
wildlyinaccurate committed Dec 12, 2012
1 parent 882e29c commit f432b46
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 5 additions & 2 deletions views/admin/catalogue/index.php
@@ -1,7 +1,7 @@
<section class="title">
<h4 class="breadcrumbs">
<?php echo simpleshop_category_breadcrumbs($viewing_category_node); ?>
<strong><?php echo ($viewing_category) ? $viewing_category->getTitle() : lang('simpleshop.categories.home_title'); ?></strong>
<?php echo ($viewing_category) ? $viewing_category->getTitle() : lang('simpleshop.categories.home_title'); ?>
</h4>
</section>

Expand All @@ -17,7 +17,10 @@
<?php if ($products->count() > 0): ?>
<?php $this->load->view('admin/tables/products', array('products' => $products)); ?>
<?php else: ?>
<p><?php echo lang('simpleshop.no_products'); ?> <?php echo anchor("admin/simpleshop/products/create?category_id={$viewing_category_id}", lang('simpleshop.create_product_now')); ?></p>
<div class="no_data">
<?php echo lang('simpleshop.no_products'); ?>
<?php echo anchor("admin/simpleshop/products/create?category_id={$viewing_category_id}", lang('simpleshop.create_product_now')); ?>
</div>
<?php endif; ?>
</div>
</section>
5 changes: 4 additions & 1 deletion views/admin/products/index.php
Expand Up @@ -6,6 +6,9 @@
<?php if ($products): ?>
<?php $this->load->view('admin/tables/products', array('products' => $products)); ?>
<?php else: ?>
<p><?php echo lang('simpleshop.products.no_products'); ?></p>
<div class="no_data">
<?php echo lang('simpleshop.products.no_products'); ?>
<?php echo anchor("admin/simpleshop/products/create", lang('simpleshop.create_product_now')); ?>
</div>
<?php endif; ?>
</section>

0 comments on commit f432b46

Please sign in to comment.