diff options
| author | 2013-11-08 19:59:43 +0100 | |
|---|---|---|
| committer | 2013-11-08 19:59:43 +0100 | |
| commit | 2dc26c215741e0e7a103b570cbb20fa60ed21d9d (patch) | |
| tree | 1e5318b4614675e734367105d2e0d2a705a7c487 /app | |
| parent | f3a91fb819783f58cf4ae95dba776a4a373dd227 (diff) | |
N'affiche plus "vider ?" si la catégorie est déjà vide
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/configure/categorize.phtml | 8 |
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> |
