Author: sevein
Date: Mon Nov 1 10:36:12 2010
New Revision: 8732
Log:
Cosmetic changes.
Modified:
trunk/plugins/qbAclPlugin/modules/aclGroup/templates/indexSuccess.php
Modified: trunk/plugins/qbAclPlugin/modules/aclGroup/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/qbAclPlugin/modules/aclGroup/templates/indexSuccess.php
Mon Nov 1 10:12:13 2010 (r8731)
+++ trunk/plugins/qbAclPlugin/modules/aclGroup/templates/indexSuccess.php
Mon Nov 1 10:36:12 2010 (r8732)
@@ -1,38 +1,42 @@
<?php echo get_component('aclGroup', 'tabs') ?>
-<h1><?php echo __('View group'); ?></h1>
+<h1><?php echo __('View group') ?></h1>
-<?php if (QubitAcl::check($group, 'edit')): ?>
- <?php echo link_to(__('<h1 class="label">%1% group</h1>', array('%1%' =>
render_title($group))), array($group, 'module' => 'aclGroup', 'action' =>
'edit')) ?>
-<?php else: ?>
- <h1 class="label"><?php echo __('%1% group', array('%1%' =>
render_title($group))) ?></h1>
-<?php endif; ?>
+<?php echo link_to_if(QubitAcl::check($group, 'edit'), '<h1
class="label">'.render_title($group).'</h1>', array($group, 'module' =>
'aclGroup', 'action' => 'edit'), array('title' => __('Edit group'))) ?>
<div class="section">
+
<?php echo render_show(__('Name'), $group->name) ?>
<?php echo render_show(__('Description'), $group->description) ?>
<?php echo render_show(__('Translate'), __($translate)) ?>
+
</div>
<?php if (QubitAcl::check($group, 'create') || QubitAcl::check($group,
'update') || QubitAcl::check($group, 'delete')): ?>
-<div class="actions section">
- <h2 class="element-invisible"><?php echo __('Actions') ?></h2>
- <div class="content">
- <ul class="clearfix links">
- <?php if (QubitAcl::check($group, 'update')): ?>
- <li><?php echo link_to (__('Edit'), array($group, 'module' =>
'aclGroup', 'action' => 'edit')) ?></li>
- <?php endif; ?>
-
- <?php if (QubitAcl::check($group, 'delete')): ?>
- <li><?php echo link_to (__('Delete'), array($group, 'module' =>
'aclGroup', 'action' => 'delete')) ?></li>
- <?php endif; ?>
-
- <?php if (QubitAcl::check($group, 'create')): ?>
- <li><?php echo link_to (__('Add new'), array('module' => 'aclGroup',
'action' => 'add')) ?></li>
- <?php endif; ?>
- </ul>
+
+ <div class="actions section">
+
+ <h2 class="element-invisible"><?php echo __('Actions') ?></h2>
+
+ <div class="content">
+
+ <ul class="clearfix links">
+ <?php if (QubitAcl::check($group, 'update')): ?>
+ <li><?php echo link_to (__('Edit'), array($group, 'module' =>
'aclGroup', 'action' => 'edit')) ?></li>
+ <?php endif; ?>
+
+ <?php if (QubitAcl::check($group, 'delete')): ?>
+ <li><?php echo link_to (__('Delete'), array($group, 'module' =>
'aclGroup', 'action' => 'delete')) ?></li>
+ <?php endif; ?>
+
+ <?php if (QubitAcl::check($group, 'create')): ?>
+ <li><?php echo link_to (__('Add new'), array('module' => 'aclGroup',
'action' => 'add')) ?></li>
+ <?php endif; ?>
+ </ul>
+
+ </div>
+
</div>
-</div>
<?php endif; ?>
--
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.