Author: sevein
Date: Fri Oct 29 14:46:30 2010
New Revision: 8684

Log:
Cosmetic change.

Modified:
   trunk/apps/qubit/modules/user/templates/indexActorAclSuccess.php
   trunk/apps/qubit/modules/user/templates/indexInformationObjectAclSuccess.php
   trunk/apps/qubit/modules/user/templates/indexSuccess.php
   trunk/apps/qubit/modules/user/templates/indexTermAclSuccess.php

Modified: trunk/apps/qubit/modules/user/templates/indexActorAclSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/user/templates/indexActorAclSuccess.php    Fri Oct 
29 14:43:43 2010        (r8683)
+++ trunk/apps/qubit/modules/user/templates/indexActorAclSuccess.php    Fri Oct 
29 14:46:30 2010        (r8684)
@@ -2,11 +2,7 @@
 
 <h1><?php echo __('View permissions') ?></h1>
 
-<?php if (SecurityCheck::HasPermission($sf_user, array('module' => 'user', 
'action' => 'edit'))): ?>
-  <?php echo link_to(__('<h1 class="label">%1% profile</h1>', array('%1%' => 
$resource)), array($resource, 'module' => 'user', 'action' => 'edit')) ?>
-<?php else: ?>
-  <h1 class="label"><?php echo $resource.' profile' ?></h1>
-<?php endif; ?>
+<?php echo link_to_if(SecurityCheck::HasPermission($sf_user, array('module' => 
'user', 'action' => 'edit')), '<h1 
class="label">'.render_title($resource).'</h1>', array($resource, 'module' => 
'user', 'action' => 'edit'), array('title' => __('Edit user'))) ?>
 
 <div class="section">
   <?php if (0 < count($acl)): ?>

Modified: 
trunk/apps/qubit/modules/user/templates/indexInformationObjectAclSuccess.php
==============================================================================
--- 
trunk/apps/qubit/modules/user/templates/indexInformationObjectAclSuccess.php    
    Fri Oct 29 14:43:43 2010        (r8683)
+++ 
trunk/apps/qubit/modules/user/templates/indexInformationObjectAclSuccess.php    
    Fri Oct 29 14:46:30 2010        (r8684)
@@ -2,11 +2,7 @@
 
 <h1><?php echo __('View permissions') ?></h1>
 
-<?php if (SecurityCheck::HasPermission($sf_user, array('module' => 'user', 
'action' => 'edit'))): ?>
-  <?php echo link_to(__('<h1 class="label">%1% profile</h1>', array('%1%' => 
$resource)), array($resource, 'module' => 'user', 'action' => 'edit')) ?>
-<?php else: ?>
-  <h1 class="label"><?php echo $resource.' profile' ?></h1>
-<?php endif; ?>
+<?php echo link_to_if(SecurityCheck::HasPermission($sf_user, array('module' => 
'user', 'action' => 'edit')), '<h1 
class="label">'.render_title($resource).'</h1>', array($resource, 'module' => 
'user', 'action' => 'edit'), array('title' => __('Edit user'))) ?>
 
 <div class="section">
   <?php if (0 < count($acl)): ?>

Modified: trunk/apps/qubit/modules/user/templates/indexSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/user/templates/indexSuccess.php    Fri Oct 29 
14:43:43 2010        (r8683)
+++ trunk/apps/qubit/modules/user/templates/indexSuccess.php    Fri Oct 29 
14:46:30 2010        (r8684)
@@ -2,11 +2,7 @@
 
 <h1><?php echo __('View user profile') ?></h1>
 
-<?php if (SecurityCheck::HasPermission($sf_user, array('module' => 'user', 
'action' => 'edit'))): ?>
-  <?php echo link_to(__('<h1 class="label">%1% profile</h1>', array('%1%' => 
$resource)), array($resource, 'module' => 'user', 'action' => 'edit')) ?>
-<?php else: ?>
-  <h1 class="label"><?php echo $resource.' profile' ?></h1>
-<?php endif; ?>
+<?php echo link_to_if(SecurityCheck::HasPermission($sf_user, array('module' => 
'user', 'action' => 'edit')), '<h1 
class="label">'.render_title($resource).'</h1>', array($resource, 'module' => 
'user', 'action' => 'edit'), array('title' => __('Edit user'))) ?>
 
 <div class="section">
 

Modified: trunk/apps/qubit/modules/user/templates/indexTermAclSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/user/templates/indexTermAclSuccess.php     Fri Oct 
29 14:43:43 2010        (r8683)
+++ trunk/apps/qubit/modules/user/templates/indexTermAclSuccess.php     Fri Oct 
29 14:46:30 2010        (r8684)
@@ -2,11 +2,7 @@
 
 <h1><?php echo __('View permissions') ?></h1>
 
-<?php if (SecurityCheck::HasPermission($sf_user, array('module' => 'user', 
'action' => 'edit'))): ?>
-  <?php echo link_to(__('<h1 class="label">%1% profile</h1>', array('%1%' => 
$resource)), array($resource, 'module' => 'user', 'action' => 'edit')) ?>
-<?php else: ?>
-  <h1 class="label"><?php echo $resource.' profile' ?></h1>
-<?php endif; ?>
+<?php echo link_to_if(SecurityCheck::HasPermission($sf_user, array('module' => 
'user', 'action' => 'edit')), '<h1 
class="label">'.render_title($resource).'</h1>', array($resource, 'module' => 
'user', 'action' => 'edit'), array('title' => __('Edit user'))) ?>
 
 <div class="section">
 

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