Author: david
Date: Wed Sep 21 14:09:35 2011
New Revision: 9779
Log:
Use php conditional for displaying sort arrows. Javascript solution is going
to have to wait
Modified:
trunk/apps/qubit/modules/physicalobject/templates/browseSuccess.php
Modified: trunk/apps/qubit/modules/physicalobject/templates/browseSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/physicalobject/templates/browseSuccess.php Wed Sep
21 14:02:15 2011 (r9778)
+++ trunk/apps/qubit/modules/physicalobject/templates/browseSuccess.php Wed Sep
21 14:09:35 2011 (r9779)
@@ -7,8 +7,18 @@
<tr>
<th class="sortable">
<?php echo link_to(__('Name'), array('sort' => ('nameUp' ==
$sf_request->sort) ? 'nameDown' : 'nameUp') +
$sf_request->getParameterHolder()->getAll(), array('title' => __('Sort'),
'class' => 'sortable')) ?>
+ <?php if ('nameUp' == $sf_request->sort): ?>
+ <?php echo image_tag('up.gif') ?>
+ <?php elseif ('nameDown' == $sf_request->sort): ?>
+ <?php echo image_tag('down.gif') ?>
+ <?php endif; ?>
</th><th class="sortable">
<?php echo link_to(__('Location'), array('sort' => ('locationUp' ==
$sf_request->sort) ? 'locationDown' : 'locationUp') +
$sf_request->getParameterHolder()->getAll(), array('title' => __('Sort'),
'class' => 'sortable')) ?>
+ <?php if ('locationUp' == $sf_request->sort): ?>
+ <?php echo image_tag('up.gif') ?>
+ <?php elseif ('locationDown' == $sf_request->sort): ?>
+ <?php echo image_tag('down.gif') ?>
+ <?php endif; ?>
</th><th>
<?php echo __('Type') ?>
</th>
--
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.