Author: david
Date: Thu Oct 13 10:45:48 2011
New Revision: 10061

Log:
Add full hierarchy context for each set of files

Modified:
   trunk/apps/qubit/modules/informationobject/templates/fileListSuccess.php
   trunk/css/print.css

Modified: 
trunk/apps/qubit/modules/informationobject/templates/fileListSuccess.php
==============================================================================
--- trunk/apps/qubit/modules/informationobject/templates/fileListSuccess.php    
Thu Oct 13 08:48:52 2011        (r10060)
+++ trunk/apps/qubit/modules/informationobject/templates/fileListSuccess.php    
Thu Oct 13 10:45:48 2011        (r10061)
@@ -3,12 +3,19 @@
   <?php echo link_to('Close', array($resource, 'module' => 
'informationobject', 'action' => 'fileList')) ?>
 </div>
 
-<h1 class="do-print"><?php echo __('File list') ?></h1>
-
-<h1 class="label"><?php $isad = new 
sfIsadPlugin($resource->getCollectionRoot()); echo $isad->__toString() ?></h1>
+<h1 class="label"><?php echo __('File list') ?></h1>
 
 <?php $row = 0; foreach ($results as $parent => $items): ?>
-  <h2><?php echo $parent ?></h2>
+<h2 class="element-hidden"><?php echo __('%1% hierarchy', array('%1%' => 
sfConfig::get('app_ui_label_informationobject'))) ?></h2>
+  <div class="resource-hierarchy">
+    <ul>
+    <?php foreach ($items[0]['resource']->getAncestors()->orderBy('lft') as 
$ancestor): ?>
+      <?php if (QubitInformationObject::ROOT_ID != intval($ancestor->id)): ?>
+      <li><h3><?php $isad = new sfIsadPlugin($ancestor); echo 
$isad->__toString() ?></h3></li>
+      <?php endif; ?>
+    <?php endforeach; ?>
+    </ul>
+  </div>
 
   <table>
     <thead>

Modified: trunk/css/print.css
==============================================================================
--- trunk/css/print.css Thu Oct 13 08:48:52 2011        (r10060)
+++ trunk/css/print.css Thu Oct 13 10:45:48 2011        (r10061)
@@ -122,9 +122,26 @@
   font: bold 12pt Lucida Grande, Verdana, sans-serif;
   text-align: left;
   padding: 2px 4px;
-  margin-top: 1em;
 }
 
+.resource-hierarchy ul
+{
+  margin-top: 1.5em;
+  margin-left: 0;
+  list-style-type: none;
+}
+
+.resource-hierarchy ul li
+{
+  padding: 2px 4px;
+}
+
+.resource-hierarchy ul h3
+{
+  line-height: normal;
+}
+
+
 ul, li.leaf
 {
   list-style-image: none;

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