Author: jablko
Date: Sun Oct 24 13:49:02 2010
New Revision: 8429
Log:
Move edit link to actions
Modified:
trunk/apps/qubit/modules/taxonomy/templates/browseSuccess.php
Modified: trunk/apps/qubit/modules/taxonomy/templates/browseSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/taxonomy/templates/browseSuccess.php Sun Oct
24 13:39:18 2010 (r8428)
+++ trunk/apps/qubit/modules/taxonomy/templates/browseSuccess.php Sun Oct
24 13:49:02 2010 (r8429)
@@ -4,12 +4,9 @@
<thead>
<tr>
<th>
-
<?php if ('termNameUp' == $sf_request->sort): ?>
-
<?php echo link_to(render_title($taxonomy), array('sort' =>
'termNameDown') + $sf_request->getParameterHolder()->getAll()) ?>
<?php echo image_tag('up.gif', 'style="padding-bottom: 3px;"', 'sort
up') ?>
-
<?php else: ?>
<?php echo link_to(render_title($taxonomy), array('sort' =>
'termNameUp') + $sf_request->getParameterHolder()->getAll()) ?>
@@ -19,17 +16,10 @@
<?php endif; ?>
<?php endif; ?>
-
- <?php if (QubitAcl::check($taxonomy, array('edit', 'createTerm'))): ?>
- <?php echo link_to('('.__('Add/edit').')', array($taxonomy, 'module'
=> 'taxonomy')) ?>
- <?php endif; ?>
-
</th><th>
<?php if ($sf_request->sort == 'hitsDown'): ?>
-
<?php echo link_to(__('Results'), array('sort' => 'hitsUp') +
$sf_request->getParameterHolder()->getAll()) ?>
<?php echo image_tag('down.gif', 'style="padding-bottom: 3px;"',
'sort down') ?>
-
<?php else: ?>
<?php echo link_to(__('Results'), array('sort' => 'hitsDown') +
$sf_request->getParameterHolder()->getAll()) ?>
@@ -42,12 +32,12 @@
</th>
</tr>
</thead><tbody>
- <?php foreach ($terms as $term): ?>
+ <?php foreach ($terms as $item): ?>
<tr class="<?php echo 0 == ++$row % 2 ? 'even' : 'odd' ?>">
<td>
- <?php echo link_to(render_title($term), array($term, 'module' =>
'term', 'action' => 'browseTerm')) ?>
+ <?php echo link_to(render_title($item), array($item, 'module' =>
'term', 'action' => 'browseTerm')) ?>
</td><td>
- <?php echo $term->countRelatedInformationObjects() ?>
+ <?php echo $item->countRelatedInformationObjects() ?>
</td>
</tr>
<?php endforeach; ?>
@@ -55,3 +45,17 @@
</table>
<?php echo get_partial('default/pager', array('pager' => $pager)) ?>
+
+<div class="actions section">
+
+ <h2 class="element-invisible"><?php echo __('Actions') ?></h2>
+
+ <div class="content">
+ <ul class="clearfix links">
+ <?php if (QubitAcl::check($taxonomy, array('edit', 'createTerm'))): ?>
+ <li><?php echo link_to(__('Edit'), array($taxonomy, 'module' =>
'taxonomy')) ?></li>
+ <?php endif; ?>
+ </ul>
+ </div>
+
+</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.