Author: sevein
Date: Sun Apr 29 22:03:11 2012
New Revision: 11554
Log:
Add current repository realm when available in header search box
Modified:
branches/2.0/apps/qubit/modules/search/templates/_box.php
Modified: branches/2.0/apps/qubit/modules/search/templates/_box.php
==============================================================================
--- branches/2.0/apps/qubit/modules/search/templates/_box.php Sun Apr 29
21:09:25 2012 (r11553)
+++ branches/2.0/apps/qubit/modules/search/templates/_box.php Sun Apr 29
22:03:11 2012 (r11554)
@@ -4,6 +4,16 @@
<div id="search-realm" class="search-popover">
+ <?php $resource = $sf_request->getAttribute('sf_route')->resource ?>
+ <?php if ($resource instanceof QubitRepository): ?>
+ <div>
+ <label>
+ <input name="realm" type="radio" value="<?php echo $resource->id ?>"
checked="checked">
+ <?php echo __('Search %1%', array('%1%' => render_title($resource)))
?>
+ </label>
+ </div>
+ <?php endif; ?>
+
<div>
<label>
<input name="realm" type="radio" value="all" checked="checked">
--
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.