Author: sevein
Date: Fri May 18 15:21:03 2012
New Revision: 11694

Log:
It's okay that the actions block ends up empty, blank.js will remove it. Plus 
the condition was not checking translate permissions, issue 2337.

Modified:
   trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/indexSuccess.php

Modified: 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/indexSuccess.php
==============================================================================
--- 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/indexSuccess.php    
    Fri May 18 00:03:13 2012        (r11693)
+++ 
trunk/plugins/sfIsaarPlugin/modules/sfIsaarPlugin/templates/indexSuccess.php    
    Fri May 18 15:21:03 2012        (r11694)
@@ -155,28 +155,26 @@
 
 </div>
 
-<?php if (QubitAcl::check($resource, 'create') || QubitAcl::check($resource, 
'delete') || QubitAcl::check($resource, 'update')): ?>
-  <div class="actions section">
+<div class="actions section">
 
-    <h2 class="element-invisible"><?php echo __('Actions') ?></h2>
+  <h2 class="element-invisible"><?php echo __('Actions') ?></h2>
 
-    <div class="content">
-      <ul class="clearfix links">
+  <div class="content">
+    <ul class="clearfix links">
 
-        <?php if (QubitAcl::check($resource, 'update') || 
(QubitAcl::check($resource, 'translate'))): ?>
-          <li><?php echo link_to(__('Edit'), array($resource, 'module' => 
'actor', 'action' => 'edit'), array('title' => __('Edit'))) ?></li>
-        <?php endif; ?>
+      <?php if (QubitAcl::check($resource, 'update') || 
(QubitAcl::check($resource, 'translate'))): ?>
+        <li><?php echo link_to(__('Edit'), array($resource, 'module' => 
'actor', 'action' => 'edit'), array('title' => __('Edit'))) ?></li>
+      <?php endif; ?>
 
-        <?php if (QubitAcl::check($resource, 'delete')): ?>
-          <li><?php echo link_to(__('Delete'), array($resource, 'module' => 
'actor', 'action' => 'delete'), array('class' => 'delete', 'title' => 
__('Delete'))) ?></li>
-        <?php endif; ?>
+      <?php if (QubitAcl::check($resource, 'delete')): ?>
+        <li><?php echo link_to(__('Delete'), array($resource, 'module' => 
'actor', 'action' => 'delete'), array('class' => 'delete', 'title' => 
__('Delete'))) ?></li>
+      <?php endif; ?>
 
-        <?php if (QubitAcl::check($resource, 'create')): ?>
-          <li><?php echo link_to(__('Add new'), array('module' => 'actor', 
'action' => 'add'), array('title' => __('Add new'))) ?></li>
-        <?php endif; ?>
-
-      </ul>
-    </div>
+      <?php if (QubitAcl::check($resource, 'create')): ?>
+        <li><?php echo link_to(__('Add new'), array('module' => 'actor', 
'action' => 'add'), array('title' => __('Add new'))) ?></li>
+      <?php endif; ?>
 
+    </ul>
   </div>
-<?php endif; ?>
+
+</div>

-- 
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