Author: sevein
Date: Tue Mar 27 17:39:30 2012
New Revision: 11298

Log:
Remove intermediate div.row, not needed, indent

Modified:
   
trunk/plugins/qtDominionPlugin/modules/search/templates/autocompleteSuccess.php

Modified: 
trunk/plugins/qtDominionPlugin/modules/search/templates/autocompleteSuccess.php
==============================================================================
--- 
trunk/plugins/qtDominionPlugin/modules/search/templates/autocompleteSuccess.php 
    Tue Mar 27 17:38:16 2012        (r11297)
+++ 
trunk/plugins/qtDominionPlugin/modules/search/templates/autocompleteSuccess.php 
    Tue Mar 27 17:39:30 2012        (r11298)
@@ -1,91 +1,89 @@
-<div class="row">
-  <div class="span5">
+<div class="span6">
 
-    <?php if ($descriptionsHits > 0): ?>
+  <?php if ($descriptionsHits > 0): ?>
 
-      <div class="group">
-        <?php echo 
image_tag('/plugins/qtDominionPlugin/images/icons-small/icon-new-small.png', 
array('width' => '25', 'height' => '25')) ?>
-        <ul>
-          <?php foreach ($descriptions->getResults() as $hit): ?>
-            <?php $doc = $hit->getData() ?>
-            <?php foreach ($doc['i18n'] as $i18n): ?>
-              <?php $doc[$i18n['culture']] = $i18n ?>
-            <?php endforeach; ?>
-            <?php unset($doc['i18n']) // continue; ?>
-            <li><?php echo link_to(($doc[$sf_user->getCulture()]['title'] ?: 
$doc[$doc['sourceCulture']]['title']), array('module' => 'informationobject', 
'slug' => $doc['slug'])) ?></li>
-            <!-- TODO: include description level logic -->
+    <div class="group">
+      <?php echo 
image_tag('/plugins/qtDominionPlugin/images/icons-small/icon-new-small.png', 
array('width' => '25', 'height' => '25')) ?>
+      <ul>
+        <?php foreach ($descriptions->getResults() as $hit): ?>
+          <?php $doc = $hit->getData() ?>
+          <?php foreach ($doc['i18n'] as $i18n): ?>
+            <?php $doc[$i18n['culture']] = $i18n ?>
           <?php endforeach; ?>
-          <?php if ($descriptions->getTotalHits() > 3): ?>
-            <li class="showall"><?php echo link_to(__('all matching 
descriptions'), array('module' => 'search', 'action' => 'index') + 
$sf_request->getParameterHolder()->getAll()) ?></li>
-          <?php endif; ?>
-        </ul>
-      </div>
-
-    <?php endif; ?>
-    <!-- FIXME: ENSURE LINKS GO TO THE RIGHT PAGES -->
-
-    <?php if ($subjectsHits > 0): ?>
-
-      <div class="group">
-        <?php echo 
image_tag('/plugins/qtDominionPlugin/images/icons-small/icon-topics-small.png', 
array('width' => '25', 'height' => '25')) ?>
-        <ul>
-          <?php foreach ($subjects->getResults() as $hit): ?>
-            <?php $doc = $hit->getData() ?>
-            <?php foreach ($doc['i18n'] as $i18n): ?>
-              <?php $doc[$i18n['culture']] = $i18n ?>
-            <?php endforeach; ?>
-            <?php unset($doc['i18n']) // continue; ?>
-            <li><?php echo link_to(($doc[$sf_user->getCulture()]['name'] ?: 
$doc[$doc['sourceCulture']]['name']), array('module' => 'term', 'slug' => 
$doc['slug'])) ?></li>
+          <?php unset($doc['i18n']) // continue; ?>
+          <li><?php echo link_to(($doc[$sf_user->getCulture()]['title'] ?: 
$doc[$doc['sourceCulture']]['title']), array('module' => 'informationobject', 
'slug' => $doc['slug'])) ?></li>
+          <!-- TODO: include description level logic -->
+        <?php endforeach; ?>
+        <?php if ($descriptions->getTotalHits() > 3): ?>
+          <li class="showall"><?php echo link_to(__('all matching 
descriptions'), array('module' => 'search', 'action' => 'index') + 
$sf_request->getParameterHolder()->getAll()) ?></li>
+        <?php endif; ?>
+      </ul>
+    </div>
+
+  <?php endif; ?>
+  <!-- FIXME: ENSURE LINKS GO TO THE RIGHT PAGES -->
+
+  <?php if ($subjectsHits > 0): ?>
+
+    <div class="group">
+      <?php echo 
image_tag('/plugins/qtDominionPlugin/images/icons-small/icon-topics-small.png', 
array('width' => '25', 'height' => '25')) ?>
+      <ul>
+        <?php foreach ($subjects->getResults() as $hit): ?>
+          <?php $doc = $hit->getData() ?>
+          <?php foreach ($doc['i18n'] as $i18n): ?>
+            <?php $doc[$i18n['culture']] = $i18n ?>
           <?php endforeach; ?>
-          <?php if ($subjects->getTotalHits() > 3): ?>
-            <li class="showall"><?php echo link_to(__('all matching 
subjects'), array('module' => 'search', 'action' => 'index') + 
$sf_request->getParameterHolder()->getAll()) ?></li>
-          <?php endif; ?>
-        </ul>
-      </div>
-
-    <?php endif; ?>
-
-    <?php if ($repositoriesHits > 0): ?>
-
-      <div class="group">
-        <?php echo 
image_tag('/plugins/qtDominionPlugin/images/icons-small/icon-institutions-small.png',
 array('width' => '25', 'height' => '25')) ?>
-        <ul>
-          <?php foreach ($repositories->getResults() as $hit): ?>
-            <?php $doc = $hit->getData() ?>
-            <?php foreach ($doc['actor'] as $i18n): ?>
-              <?php $doc[$i18n['culture']] = $i18n ?>
-            <?php endforeach; ?>
-            <?php unset($doc['actor']) // continue; ?>
-            <li><?php echo 
link_to(($doc[$sf_user->getCulture()]['authorizedFormOfName'] ?: 
$doc[$doc['sourceCulture']]['authorizedFormOfName']), array('module' => 
'repository', 'slug' => $doc['slug'])) ?></li>
+          <?php unset($doc['i18n']) // continue; ?>
+          <li><?php echo link_to(($doc[$sf_user->getCulture()]['name'] ?: 
$doc[$doc['sourceCulture']]['name']), array('module' => 'term', 'slug' => 
$doc['slug'])) ?></li>
+        <?php endforeach; ?>
+        <?php if ($subjects->getTotalHits() > 3): ?>
+          <li class="showall"><?php echo link_to(__('all matching subjects'), 
array('module' => 'search', 'action' => 'index') + 
$sf_request->getParameterHolder()->getAll()) ?></li>
+        <?php endif; ?>
+      </ul>
+    </div>
+
+  <?php endif; ?>
+
+  <?php if ($repositoriesHits > 0): ?>
+
+    <div class="group">
+      <?php echo 
image_tag('/plugins/qtDominionPlugin/images/icons-small/icon-institutions-small.png',
 array('width' => '25', 'height' => '25')) ?>
+      <ul>
+        <?php foreach ($repositories->getResults() as $hit): ?>
+          <?php $doc = $hit->getData() ?>
+          <?php foreach ($doc['actor'] as $i18n): ?>
+            <?php $doc[$i18n['culture']] = $i18n ?>
           <?php endforeach; ?>
-          <?php if ($repositories->getTotalHits() > 3): ?>
-            <li class="showall"><?php echo link_to(__('all matching 
institutions'), array('module' => 'search', 'action' => 'index') + 
$sf_request->getParameterHolder()->getAll()) ?></li>
-          <?php endif; ?>
-        </ul>
-      </div>
-
-    <?php endif; ?>
-
-    <?php if ($actorsHits > 0): ?>
-
-      <div class="group">
-        <?php echo 
image_tag('/plugins/qtDominionPlugin/images/icons-small/icon-people-small.png', 
array('width' => '25', 'height' => '25')) ?>
-        <ul>
-          <?php foreach ($actors->getResults() as $hit): ?>
-            <?php $doc = $hit->getData() ?>
-            <?php foreach ($doc['i18n'] as $i18n): ?>
-              <?php $doc[$i18n['culture']] = $i18n ?>
-            <?php endforeach; ?>
-            <?php unset($doc['i18n']) // continue; ?>
-            <li><?php echo 
link_to(($doc[$sf_user->getCulture()]['authorizedFormOfName'] ?: 
$doc[$doc['sourceCulture']]['authorizedFormOfName']), array('module' => 
'actor', 'slug' => $doc['slug'])) ?></li>
+          <?php unset($doc['actor']) // continue; ?>
+          <li><?php echo 
link_to(($doc[$sf_user->getCulture()]['authorizedFormOfName'] ?: 
$doc[$doc['sourceCulture']]['authorizedFormOfName']), array('module' => 
'repository', 'slug' => $doc['slug'])) ?></li>
+        <?php endforeach; ?>
+        <?php if ($repositories->getTotalHits() > 3): ?>
+          <li class="showall"><?php echo link_to(__('all matching 
institutions'), array('module' => 'search', 'action' => 'index') + 
$sf_request->getParameterHolder()->getAll()) ?></li>
+        <?php endif; ?>
+      </ul>
+    </div>
+
+  <?php endif; ?>
+
+  <?php if ($actorsHits > 0): ?>
+
+    <div class="group">
+      <?php echo 
image_tag('/plugins/qtDominionPlugin/images/icons-small/icon-people-small.png', 
array('width' => '25', 'height' => '25')) ?>
+      <ul>
+        <?php foreach ($actors->getResults() as $hit): ?>
+          <?php $doc = $hit->getData() ?>
+          <?php foreach ($doc['i18n'] as $i18n): ?>
+            <?php $doc[$i18n['culture']] = $i18n ?>
           <?php endforeach; ?>
-          <?php if ($actors->getTotalHits() > 3): ?>
-            <li class="showall"><?php echo link_to(__('all matching people & 
organizations'), array('module' => 'search', 'action' => 'index') + 
$sf_request->getParameterHolder()->getAll()) ?></li>
-          <?php endif; ?>
-        </ul>
-      </div>
+          <?php unset($doc['i18n']) // continue; ?>
+          <li><?php echo 
link_to(($doc[$sf_user->getCulture()]['authorizedFormOfName'] ?: 
$doc[$doc['sourceCulture']]['authorizedFormOfName']), array('module' => 
'actor', 'slug' => $doc['slug'])) ?></li>
+        <?php endforeach; ?>
+        <?php if ($actors->getTotalHits() > 3): ?>
+          <li class="showall"><?php echo link_to(__('all matching people & 
organizations'), array('module' => 'search', 'action' => 'index') + 
$sf_request->getParameterHolder()->getAll()) ?></li>
+        <?php endif; ?>
+      </ul>
+    </div>
 
-    <?php endif; ?>
+  <?php endif; ?>
 
-  </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.

Reply via email to