aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/configure/categorize.phtml8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/configure/categorize.phtml b/app/views/configure/categorize.phtml
index d8aa5f31d..0403f0120 100644
--- a/app/views/configure/categorize.phtml
+++ b/app/views/configure/categorize.phtml
@@ -15,10 +15,16 @@
</label>
<div class="group-controls">
<input type="text" id="cat_<?php echo $cat->id (); ?>" name="categories[]" value="<?php echo $cat->name (); ?>" />
- <a class="confirm" href="<?php echo _url ('feed', 'delete', 'id', $cat->id (), 'type', 'category'); ?>"><?php echo Translate::t ('ask_empty'); ?></a> (<?php echo Translate::t ('number_feeds', $cat->nbFeed ()); ?>)
+
+ <?php if ($cat->nbFeed () > 0) { ?>
+ <a class="confirm" href="<?php echo _url ('feed', 'delete', 'id', $cat->id (), 'type', 'category'); ?>"><?php echo Translate::t ('ask_empty'); ?></a>
+ <?php } ?>
+ (<?php echo Translate::t ('number_feeds', $cat->nbFeed ()); ?>)
+
<?php if ($cat->id () == $this->defaultCategory->id ()) { ?>
<i class="icon i_help"></i> <?php echo Translate::t ('can_not_be_deleted'); ?>
<?php } ?>
+
<input type="hidden" name="ids[]" value="<?php echo $cat->id (); ?>" />
</div>
</div>