changeset 7299:288dda59233c

coal/paper: show a search tip when hovering over search box This doesn't work in IE, because IE only supports :hover on <a> elements.
author Benoit Allard <benoit@aeteurope.nl>
date Sat, 01 Nov 2008 13:07:20 +0100
parents 0e2e371c7406
children 591767e6ea7a
files templates/coal/changeset.tmpl templates/coal/error.tmpl templates/coal/fileannotate.tmpl templates/coal/filediff.tmpl templates/coal/filelog.tmpl templates/coal/filerevision.tmpl templates/coal/graph.tmpl templates/coal/manifest.tmpl templates/coal/search.tmpl templates/coal/shortlog.tmpl templates/coal/tags.tmpl templates/static/style-coal.css templates/static/style-paper.css
diffstat 13 files changed, 54 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/templates/coal/changeset.tmpl	Sat Nov 01 13:06:36 2008 +0100
+++ b/templates/coal/changeset.tmpl	Sat Nov 01 13:07:20 2008 +0100
@@ -31,6 +31,8 @@
 <form class="search" action="{url}log">
 {sessionvars%hiddenformentry}
 <p><input name="rev" id="search1" type="text" size="30"></p>
+<span>find changesets by author, revision, 
+files, or words in the commit message</span>
 </form>
 
 <div class="description">{desc|strip|escape|addbreaks}</div>
--- a/templates/coal/error.tmpl	Sat Nov 01 13:06:36 2008 +0100
+++ b/templates/coal/error.tmpl	Sat Nov 01 13:07:20 2008 +0100
@@ -24,6 +24,8 @@
 <form class="search" action="{url}log">
 {sessionvars%hiddenformentry}
 <p><input name="rev" id="search1" type="text" size="30"></p>
+<span>find changesets by author, revision, 
+files, or words in the commit message</span>
 </form>
 
 <div class="description">
--- a/templates/coal/fileannotate.tmpl	Sat Nov 01 13:06:36 2008 +0100
+++ b/templates/coal/fileannotate.tmpl	Sat Nov 01 13:07:20 2008 +0100
@@ -35,6 +35,8 @@
 <form class="search" action="{url}log">
 {sessionvars%hiddenformentry}
 <p><input name="rev" id="search1" type="text" size="30"></p>
+<span>find changesets by author, revision, 
+files, or words in the commit message</span>
 </form>
 
 <div class="description">{desc|strip|escape|addbreaks}</div>
--- a/templates/coal/filediff.tmpl	Sat Nov 01 13:06:36 2008 +0100
+++ b/templates/coal/filediff.tmpl	Sat Nov 01 13:07:20 2008 +0100
@@ -34,6 +34,8 @@
 <form class="search" action="{url}log">
 {sessionvars%hiddenformentry}
 <p><input name="rev" id="search1" type="text" size="30"></p>
+<span>find changesets by author, revision, 
+files, or words in the commit message</span>
 </form>
 
 <div class="description">{desc|strip|escape|addbreaks}</div>
--- a/templates/coal/filelog.tmpl	Sat Nov 01 13:06:36 2008 +0100
+++ b/templates/coal/filelog.tmpl	Sat Nov 01 13:07:20 2008 +0100
@@ -39,6 +39,8 @@
 <form class="search" action="{url}log">
 {sessionvars%hiddenformentry}
 <p><input name="rev" id="search1" type="text" size="30"></p>
+<span>find changesets by author, revision, 
+files, or words in the commit message</span>
 </form>
 
 <div class="navigate">{nav%filenaventry}</div>
--- a/templates/coal/filerevision.tmpl	Sat Nov 01 13:06:36 2008 +0100
+++ b/templates/coal/filerevision.tmpl	Sat Nov 01 13:07:20 2008 +0100
@@ -35,6 +35,8 @@
 <form class="search" action="{url}log">
 {sessionvars%hiddenformentry}
 <p><input name="rev" id="search1" type="text" size="30"></p>
+<span>find changesets by author, revision, 
+files, or words in the commit message</span>
 </form>
 
 <div class="description">{desc|strip|escape|addbreaks}</div>
--- a/templates/coal/graph.tmpl	Sat Nov 01 13:06:36 2008 +0100
+++ b/templates/coal/graph.tmpl	Sat Nov 01 13:07:20 2008 +0100
@@ -32,6 +32,8 @@
 <form class="search" action="{url}log">
 {sessionvars%hiddenformentry}
 <p><input name="rev" id="search1" type="text" size="30"></p>
+<span>find changesets by author, revision, 
+files, or words in the commit message</span>
 </form>
 
 <div class="navigate">
--- a/templates/coal/manifest.tmpl	Sat Nov 01 13:06:36 2008 +0100
+++ b/templates/coal/manifest.tmpl	Sat Nov 01 13:07:20 2008 +0100
@@ -31,6 +31,8 @@
 <form class="search" action="{url}log">
 {sessionvars%hiddenformentry}
 <p><input name="rev" id="search1" type="text" size="30"></p>
+<span>find changesets by author, revision, 
+files, or words in the commit message</span>
 </form>
 
 <table class="bigtable">
--- a/templates/coal/search.tmpl	Sat Nov 01 13:06:36 2008 +0100
+++ b/templates/coal/search.tmpl	Sat Nov 01 13:07:20 2008 +0100
@@ -24,6 +24,8 @@
 <form class="search" action="{url}log">
 {sessionvars%hiddenformentry}
 <p><input name="rev" id="search1" type="text" size="30"></p>
+<span>find changesets by author, revision, 
+files, or words in the commit message</span>
 </form>
 
 <table class="bigtable">
--- a/templates/coal/shortlog.tmpl	Sat Nov 01 13:06:36 2008 +0100
+++ b/templates/coal/shortlog.tmpl	Sat Nov 01 13:07:20 2008 +0100
@@ -35,6 +35,8 @@
 <form class="search" action="{url}log">
 {sessionvars%hiddenformentry}
 <p><input name="rev" id="search1" type="text" size="30"></p>
+<span>find changesets by author, revision,
+files, or words in the commit message</span>
 </form>
 
 <div class="navigate">rev {rev}: {changenav%navshortentry}</div>
--- a/templates/coal/tags.tmpl	Sat Nov 01 13:06:36 2008 +0100
+++ b/templates/coal/tags.tmpl	Sat Nov 01 13:07:20 2008 +0100
@@ -27,6 +27,8 @@
 <form class="search" action="{url}log">
 {sessionvars%hiddenformentry}
 <p><input name="rev" id="search1" type="text" size="30"></p>
+<span>find changesets by author, revision, 
+files, or words in the commit message</span>
 </form>
 
 <table class="bigtable">
--- a/templates/static/style-coal.css	Sat Nov 01 13:06:36 2008 +0100
+++ b/templates/static/style-coal.css	Sat Nov 01 13:07:20 2008 +0100
@@ -71,6 +71,22 @@
   right: 2em;
 }
 
+form.search span {
+  display: none;
+  position: absolute;
+  top: 40px;
+  right: 0px;
+  width: 190px;
+  padding: 5px;
+  background: #ffc;
+  font-size: 70%;    
+  border: 1px solid yellow;
+  -moz-border-radius: 5px; /* this works only in camino/firefox */
+  -webkit-border-radius: 5px; /* this is just for Safari */
+}
+
+form.search:hover span { display: block; }
+
 a { text-decoration:none; }
 .age { white-space:nowrap; }
 .date { white-space:nowrap; }
--- a/templates/static/style-paper.css	Sat Nov 01 13:06:36 2008 +0100
+++ b/templates/static/style-paper.css	Sat Nov 01 13:07:20 2008 +0100
@@ -67,6 +67,22 @@
   right: 2em;
 }
 
+form.search span {
+  display: none;
+  position: absolute;
+  top: 40px;
+  right: 0px;
+  width: 190px;
+  padding: 5px;
+  background: #ffc;
+  font-size: 70%;
+  border: 1px solid yellow;
+  -moz-border-radius: 5px; /* this works only in camino/firefox */
+  -webkit-border-radius: 5px; /* this is just for Safari */
+}
+
+form.search:hover span { display: block; }
+
 a { text-decoration:none; }
 .age { white-space:nowrap; }
 .date { white-space:nowrap; }