[library-web] point google search to developer.gnome.org if there's no dbm support
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [library-web] point google search to developer.gnome.org if there's no dbm support
- Date: Wed, 6 Apr 2011 10:33:18 +0000 (UTC)
commit ee10829975c1dafb33844954b93cf048f893b449
Author: Frédéric Péters <fpeters 0d be>
Date: Wed Apr 6 16:01:18 2011 +0530
point google search to developer.gnome.org if there's no dbm support
data/xslt/heading.xsl | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
---
diff --git a/data/xslt/heading.xsl b/data/xslt/heading.xsl
index a731fd5..e53392f 100644
--- a/data/xslt/heading.xsl
+++ b/data/xslt/heading.xsl
@@ -88,10 +88,18 @@
<xsl:if test="$channel = 'devel' and $libgo.dbm_support">/symbols/</xsl:if>
<xsl:if test="$channel != 'devel' or not($libgo.dbm_support)">http://www.google.com/custom</xsl:if>
</xsl:attribute>
- <xsl:if test="$channel != 'devel' or not($libgo.dbm_support)">
- <input type="hidden" name="domains" value="library.gnome.org" />
- <input type="hidden" name="sitesearch" value="library.gnome.org" />
- </xsl:if>
+ <xsl:choose>
+ <xsl:when test="$channel = 'devel'">
+ <xsl:if test="not($libgo.dbm_support)">
+ <input type="hidden" name="domains" value="developer.gnome.org" />
+ <input type="hidden" name="sitesearch" value="developer.gnome.org" />
+ </xsl:if>
+ </xsl:when>
+ <xsl:otherwise>
+ <input type="hidden" name="domains" value="library.gnome.org" />
+ <input type="hidden" name="sitesearch" value="library.gnome.org" />
+ </xsl:otherwise>
+ </xsl:choose>
<div>
<label class="hidden" for="q">
<xsl:call-template name="gettext"><xsl:with-param name="lang"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]