Author: sevein
Date: Thu Aug 23 15:57:32 2012
New Revision: 12190

Log:
Show back button only when there are errors

Modified:
   trunk/apps/qubit/modules/object/templates/importSuccess.php

Modified: trunk/apps/qubit/modules/object/templates/importSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/object/templates/importSuccess.php Thu Aug 23 
15:53:22 2012        (r12189)
+++ trunk/apps/qubit/modules/object/templates/importSuccess.php Thu Aug 23 
15:57:32 2012        (r12190)
@@ -27,7 +27,8 @@
         <?php else: ?>
           <?php echo link_to(__('View %1%', array('%1%' => 
sfConfig::get('app_ui_label_'.strtolower($objectType)))), array($rootObject, 
'module' => 'taxonomy')) ?>
         <?php endif; ?>
-      <?php else: ?>
+      <?php endif; ?>
+      <?php if (0 < count($errors)): ?>
         <?php echo link_to(__('Back'), array('module' => 'object', 'action' => 
'importSelect')) ?>
       <?php endif; ?>
     </ul>

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to