Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use search.cpan.org design.

  • Loading branch information...
commit 23ccc22444469a4340d6d69fb9cb2b2cb5bfd1ae 1 parent 9f46f75
@kappa authored
Showing with 44 additions and 23 deletions.
  1. +30 −17 views/layouts/main.tt
  2. +14 −6 views/serp.tt
View
47 views/layouts/main.tt
@@ -1,17 +1,30 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
-<head>
-<title>cpanhubble</title>
-<link rel="stylesheet" type="text/css" href="/css/style.css" />
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-</head>
-<body>
-<h1>cpanhubble</h1>
-<div id="content">
-<p>[== $content =]</p>
-</div>
-<div id="footer">
-Powered by <a href="http://dancer.sukria.net">Dancer</a>
-</div>
-</body>
-</html>
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+ <head>
+ <link rel="stylesheet" href="http://st.pimg.net/tucs/style.css" type="text/css" />
+ <title>The CPAN Hubble Site - XXX</title>
+ </head>
+ <body id="cpansearch">
+<center><div class="logo"><a href="/"><img src="http://st.pimg.net/tucs/img/cpan_banner.png" alt="CPAN"></a></div></center>
+<div class="menubar">
+ <a href="/">Home</a>
+&middot; <a href="http://search.cpan.org/author/">Authors</a>
+&middot; <a href="http://search.cpan.org/recent">Recent</a>
+&middot; <a href="http://log.perl.org/cpansearch/">XXX News</a>
+&middot; <a href="http://search.cpan.org/mirror">Mirrors</a>
+&middot; <a href="http://search.cpan.org/faq.html">FAQ</a>
+&middot; <a href="http://search.cpan.org/feedback">XXX Feedback</a>
+</div>
+<form method="get" action="/search" name="f" class="searchbox">
+<input type="text" name="q" value="[= $query || '' =]" size="35">
+<br><input type="submit" value="CPAN Search">
+</form>
+
+[== $content =]
+
+<div class="footer"><div class="cpanstats">62607 Uploads, 19972 Distributions
+80853 Modules, 8091 Uploaders
+</div>
+</div>
+ </body>
+</html>
View
20 views/serp.tt
@@ -1,9 +1,17 @@
-<h2>CPAN Hubble search for [= $query =]</h2>
+<div class=t4>
+<small>
+Results <b>1</b> - <b>[= scalar @$res =]</b> of
+<b>[= scalar @$res =]</b> Found</small></div>
<?pl for my $r (@$res) { ?>
-<p>
-<a href="[= $r->{link} =]"><b>[= $r->{name} =]</b></a><br>
-[= $r->{desc} =]<br>
-<font color="green">[= $r->{date} =]</font> - <a href="[= $r->{author_link} =]">author</a>
-</p>
+<p><h2 class=sr><a href="[= $r->{link} =]"><b>[= $r->{name} =]</b></a>
+ <?pl if ($r->{gh}) { ?>
+ <small>(<a href="[= $r->{gh}->{link} =]">on github</a>)</small>
+ <?pl } elsif ($r->{ongithub}) { ?>
+ <small>(on github)</small>
+ <?pl } ?>
+ </h2>
+<small>[= $r->{desc} =]</small><br/>
+<small><span class=date>[= $r->{date} =]</span> - <a href="[= $r->{author_link} =]">[= $r->{author} =]</a>
+</small>
<?pl } ?>
Please sign in to comment.
Something went wrong with that request. Please try again.