From 4bc430076f8bf407618c9f3f775184e88cc7af3b Mon Sep 17 00:00:00 2001 From: "shaver%mozilla.org" Date: Sun, 22 Oct 2006 13:17:42 +0000 Subject: [PATCH] Beating search with the pretty stick, a little. git-svn-id: svn://10.0.0.236/trunk@213976 18797224-902f-48f8-a5cc-f745e15eee43 --- .../htdocs/css/rustico/addons-rustico.css | 24 +++ .../webtools/addons/public/htdocs/search.php | 2 +- .../tpl/inc/wrappers/rustico-header.tpl | 1 + mozilla/webtools/addons/public/tpl/search.tpl | 143 ++++++++++++++++++ 4 files changed, 169 insertions(+), 1 deletion(-) diff --git a/mozilla/webtools/addons/public/htdocs/css/rustico/addons-rustico.css b/mozilla/webtools/addons/public/htdocs/css/rustico/addons-rustico.css index b03636d0e48..37eaf6a3e59 100644 --- a/mozilla/webtools/addons/public/htdocs/css/rustico/addons-rustico.css +++ b/mozilla/webtools/addons/public/htdocs/css/rustico/addons-rustico.css @@ -217,6 +217,11 @@ h6 { font-size: 90%; border: 0; } font-size: smaller; } +.addon-feature .search-result-image { + float: right; + margin: 0 0 0 10px; +} + .addon-feature .addon-feature-image, .bookmarkaddon-feature .addon-feature-image { float: left; @@ -333,6 +338,25 @@ p.install-button { width: 40%; } +#hide-search-options, +#search-options { + display: none; +} + +#search-results .desc { + font-size: 80%; +} + +#search-results .desc p { + margin-bottom: 0px; +} + +#pages #next-page { + float: right; +} + +/* various lists */ + .compact-list { font-size: 80%; font-weight: bold; diff --git a/mozilla/webtools/addons/public/htdocs/search.php b/mozilla/webtools/addons/public/htdocs/search.php index f22c635e689..1e00555bf33 100644 --- a/mozilla/webtools/addons/public/htdocs/search.php +++ b/mozilla/webtools/addons/public/htdocs/search.php @@ -6,7 +6,7 @@ * @subpackage docs */ -startProcessing('search.tpl',$memcacheId,$compileId,'nonav'); +startProcessing('search.tpl',$memcacheId,$compileId,'rustico'); require_once('includes.php'); // Instantiate AMO_Object so we can get our categories and platforms. diff --git a/mozilla/webtools/addons/public/tpl/inc/wrappers/rustico-header.tpl b/mozilla/webtools/addons/public/tpl/inc/wrappers/rustico-header.tpl index 2950cab17c3..9fcd0a43743 100644 --- a/mozilla/webtools/addons/public/tpl/inc/wrappers/rustico-header.tpl +++ b/mozilla/webtools/addons/public/tpl/inc/wrappers/rustico-header.tpl @@ -16,6 +16,7 @@ {$app|capitalize} Add-ons | Mozilla Corporation + diff --git a/mozilla/webtools/addons/public/tpl/search.tpl b/mozilla/webtools/addons/public/tpl/search.tpl index 4025d655ee1..fc4969ece13 100644 --- a/mozilla/webtools/addons/public/tpl/search.tpl +++ b/mozilla/webtools/addons/public/tpl/search.tpl @@ -1,4 +1,146 @@ +{if $app eq "firefox"} +
+
+
+ + +Advanced Options… +Hide Options +
+ +
+ +
+ + Search Options + +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ + +
+ +
+ +

+ + + +
+ +{if $results} + +

Showing results {$page.leftDisplay} to {$page.right} of {$page.resultCount}. (Too many results? Try using the advanced options to narrow your search.)

+ + + + + +
{if $page.left} + ← Previous Results + {else} +   + {/if} + {if $page.next} + Next Results → + {else} +   + {/if} +
+ +
+{section name=r loop=$results} +
+
+

{$results[r]->Name} {$results[r]->Version} by + {foreach key=key item=item from=$results[r]->Authors} + {$item.UserName|escape}{if $item != end($results[r]->Authors)},{/if} + {/foreach} +

+ {if $results[r]->PreviewURI} + + {/if} +

{$results[r]->Description|nl2br}

+
+
+ +{/section} +
+ + + + + +
{if $page.left} + ← Previous Results + {else} +   + {/if} + {if $page.next} + Next Results → + {else} +   + {/if} +
+ +{else} + +

Addon Search

+

There are currently no results. Please use the options above to adjust your search terms.

+ +{/if} + +{else} {* not firefox *}
@@ -163,3 +305,4 @@ Next Page »
+{/if} \ No newline at end of file