Author: jablko
Date: Sun Oct 24 10:28:22 2010
New Revision: 8413

Log:
Factor maintenance notes into ISDF object

Modified:
   trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/indexAction.class.php
   trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/indexSuccess.php

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/indexAction.class.php
==============================================================================
--- 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/indexAction.class.php   
    Sun Oct 24 10:22:43 2010        (r8412)
+++ 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/actions/indexAction.class.php   
    Sun Oct 24 10:28:22 2010        (r8413)
@@ -30,9 +30,7 @@
       $title = $this->context->i18n->__('Untitled');
     }
 
-    $this->response->setTitle("$title - {$this->resource->getTitle()}");
-
-    $this->maintenanceNotes = 
$this->resource->getNotesByType(array('noteTypeId' => 
QubitTerm::MAINTENANCE_NOTE_ID));
+    $this->response->setTitle("$title - {$this->response->getTitle()}");
 
     // Find function to function relations with current function as subject or
     // object

Modified: 
trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/indexSuccess.php
==============================================================================
--- trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/indexSuccess.php  
Sun Oct 24 10:22:43 2010        (r8412)
+++ trunk/plugins/sfIsdfPlugin/modules/sfIsdfPlugin/templates/indexSuccess.php  
Sun Oct 24 10:28:22 2010        (r8413)
@@ -169,14 +169,7 @@
 
   <?php echo render_show(__('Sources'), 
render_value($resource->getSources(array('cultureFallback' => true)))) ?>
 
-  <div class="field">
-    <h3><?php echo __('Maintenance notes') ?></h3>
-    <div>
-      <?php if (isset($maintenanceNotes[0])): ?>
-        <?php echo 
render_value($maintenanceNotes[0]->getContent(array('cultureFallback' => 
true))) ?>
-      <?php endif; ?>
-    </div>
-  </div>
+  <?php echo render_show(__('Maintenance notes'), 
render_value($isdf->maintenanceNotes)) ?>
 
 </div> <!-- /.section#controlArea -->
 

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