<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>assets/buttonbg.psd</filename>
    </added>
    <added>
      <filename>assets/search.psd</filename>
    </added>
    <added>
      <filename>public/images/buttonbg.gif</filename>
    </added>
    <added>
      <filename>public/images/clearicon.png</filename>
    </added>
    <added>
      <filename>public/images/search-big.png</filename>
    </added>
    <added>
      <filename>public/images/search.gif</filename>
    </added>
    <added>
      <filename>public/images/search.png</filename>
    </added>
    <added>
      <filename>public/images/system-search.gif</filename>
    </added>
    <added>
      <filename>public/javascript/application.js</filename>
    </added>
    <added>
      <filename>public/javascript/jquery.js</filename>
    </added>
    <added>
      <filename>public/stylesheets/iphone.css</filename>
    </added>
    <added>
      <filename>public/stylesheets/iphone2.css</filename>
    </added>
    <added>
      <filename>public/stylesheets/palm_pre.css</filename>
    </added>
    <added>
      <filename>public/stylesheets/sass/iphone.sass</filename>
    </added>
    <added>
      <filename>public/stylesheets/sass/iphone2.sass</filename>
    </added>
    <added>
      <filename>public/stylesheets/sass/palm_pre.sass</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -18,8 +18,9 @@ module Merb
       language_object[&quot;go&quot;] || &quot;Go&quot;
     end
     
-    def button_to(text, to)
-      %|&lt;form method=&quot;get&quot; action=&quot;#{to}&quot;&gt;&lt;button type=&quot;submit&quot;&gt;#{text}&lt;/button&gt;&lt;/form&gt;|
+    def button_to(text, to, id = nil)
+      id ||= text.downcase
+      %|&lt;form method=&quot;get&quot; action=&quot;#{to}&quot;&gt;&lt;button type=&quot;submit&quot; id=&quot;#{id}Button&quot;&gt;#{text}&lt;/button&gt;&lt;/form&gt;|
     end
     
     def stop_redirect_notice(path)</diff>
      <filename>app/helpers/global_helpers.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,7 +25,11 @@ class Device
     when /Android/
       :android
     when /iPhone.* Safari/
-      :iphone
+      if user_agent.include?(&quot;iPhone OS 2&quot;)
+        :iphone2
+      else
+        :iphone
+      end
     when /iPhone/
       :native_iphone
     when /Pre\//</diff>
      <filename>app/models/device.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,4 @@
 - elsif current_name != &quot;&quot;
   :javascript
     var title = &quot;#{@name}&quot;;
-    var server = &quot;#{current_server.base_url}&quot;;
-
-- if request.device.format_name == :native_iphone
-  &lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; SRC=&quot;/jquery.js&quot;&gt;&lt;/script&gt;
\ No newline at end of file
+    var server = &quot;#{current_server.base_url}&quot;;
\ No newline at end of file</diff>
      <filename>app/views/layout/_javascript.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,8 +1,12 @@
 #header
   %img{:src =&gt; &quot;/images/w.gif&quot;, :id =&gt; &quot;logo&quot;, :alt =&gt; &quot;W logo&quot;}/
   %form.search_bar{:action =&gt; &quot;/wiki&quot;, :method =&gt; &quot;get&quot;}
-    %input{:name =&gt; &quot;search&quot;, :type =&gt; &quot;text&quot;, :size =&gt; &quot;28&quot;, :value =&gt; CGI::unescape(current_name).force_encoding(&quot;UTF-8&quot;)}/
-    %button{:type =&gt; &quot;submit&quot;}= go_text
+    %input#searchField{:name =&gt; &quot;search&quot;, :type =&gt; &quot;text&quot;, :size =&gt; &quot;28&quot;, :value =&gt; CGI::unescape(current_name).force_encoding(&quot;UTF-8&quot;)}/
+    -# Had to do the clearText() for android
+    #clearButton
+      %img{:src =&gt; &quot;/images/clearicon.png&quot;}
+    %button#goButton{:type =&gt; &quot;submit&quot;}
+      
 #nav
   = button_to language_object[&quot;home_button&quot;], &quot;/wiki/::Home&quot;
-  = button_to language_object[&quot;random_button&quot;], &quot;/wiki/::Random&quot;
+  = button_to language_object[&quot;random_button&quot;], &quot;/wiki/::Random&quot;, &quot;random&quot;</diff>
      <filename>app/views/layout/_search_webkit.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -10,7 +10,9 @@
     &lt;link rel=&quot;apple-touch-icon&quot; href=&quot;http://en.m.wikipedia.org/apple-touch-icon.png&quot; /&gt;
     - if request.device.supports_javascript
       = partial &quot;layout/javascript&quot;
-      &lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; SRC=&quot;/webkit.js&quot;&gt;&lt;/script&gt;
+      &lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; SRC=&quot;/javascript/jquery.js&quot;&gt;&lt;/script&gt;
+      &lt;script type=&quot;text/javascript&quot; language=&quot;javascript&quot; SRC=&quot;/javascript/application.js&quot;&gt;&lt;/script&gt;
+      
   %body
     
     #content_wrapper</diff>
      <filename>app/views/layout/application.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -13,13 +13,18 @@ webkit: &amp;webkit
   &lt;&lt;: *capable
   search_bar: 'webkit'
   css_file_name: 'webkit'
-  
+
 android: 
   &lt;&lt;: *webkit
   css_file_name: &quot;android&quot;
 
 iphone:
   &lt;&lt;: *webkit
+  css_file_name: 'iphone'
+  
+iphone2:
+  &lt;&lt;: *webkit
+  css_file_name: 'iphone2'
 
 native_iphone:
   &lt;&lt;: *capable
@@ -27,6 +32,7 @@ native_iphone:
 
 palm_pre:
   &lt;&lt;: *webkit
+  css_file_name: 'palm_pre'
 
 kindle2:
   &lt;&lt;: *defaults</diff>
      <filename>config/formats.yaml</filename>
    </modified>
    <modified>
      <diff>@@ -33,10 +33,11 @@ Merb::Router.prepare do
   
     match(&quot;/wiki/\:\:Home&quot;).to(:action =&gt; &quot;home&quot;)
     match(/\/wiki\/::Random/).to(:action =&gt; &quot;random&quot;)
+    
 
     with(:action =&gt; &quot;show&quot;) do
       # Primary HTML way to access information
-      match(/\/wiki\/?(.*)/).to(:title =&gt; &quot;[1]&quot;)
+      match(/\/wiki\/(.*)/).to(:title =&gt; &quot;[1]&quot;)
       match(/\/wiki\/?/).to(:action =&gt; &quot;show&quot;)
       # Legacy support for iwik
       match(/\/lookup\/([a-z]*).wikipedia.org\/(.*)/).to(:title =&gt; &quot;[2]&quot;, :lang =&gt; &quot;[1]&quot;)</diff>
      <filename>config/router.rb</filename>
    </modified>
    <modified>
      <diff>@@ -102,11 +102,34 @@ table.admin {
   #header #logo {
     float: left;
     padding-right: 5px; }
+  #header #clearButton {
+    clear: none;
+    float: left;
+    padding: 0;
+    margin: 0 0 0 -25px; }
+    #header #clearButton img {
+      margin: 0;
+      padding: 0;
+      border: 0;
+      clear: none; }
+  #header input#searchField {
+    float: left;
+    height: 20px;
+    width: 195px;
+    margin-top: -3px;
+    border: 1px solid grey; }
+  #header button#goButton {
+    float: right;
+    margin: -5px 8px 0 0;
+    height: 30px;
+    width: 30px;
+    background: #FFF url(/images/search.gif) no-repeat center;
+    border: 0; }
 
 #nav {
   display: none;
   height: 28px;
-  width: 135px;
+  width: 185px;
   clear: both;
   z-index: 1;
   background: white;
@@ -117,14 +140,20 @@ table.admin {
   -webkit-border-radius: 2px;
   -moz-border-radius: 2px; }
   #nav button {
-    float: left; }
+    float: left;
+    background: url(/images/buttonbg.gif) no-repeat center;
+    margin-left: 3px;
+    border: 0px;
+    height: 23px;
+    width: 83px; }
 
 .notice {
   padding: 5px;
   background: #ddd;
   -webkit-border-radius: 5px;
   margin-top: 5px;
-  text-align: center; }
+  text-align: center;
+  border: 1px solid grey; }
   .notice #perm {
     margin-top: 10px;
     font-size: 80%; }
@@ -228,22 +257,10 @@ img.thumbborder {
 body {
   font-size: 140%; }
 
-input {
-  width: 190px; }
+#searchField {
+  padding-top: 5px;
+  width: 20px; }
 
-form.search_bar {
-  margin-top: -5px;
-  position: absolute;
-  margin-left: 45px; }
-
-#header {
-  height: 35px;
-  padding-top: 10px; }
-
-#nav {
-  width: 200px;
-  height: 40px;
-  margin-top: -2px;
-  padding-top: 0px; }
-  #nav button {
-    margin-left: 18px; }
+#clearButton {
+  margin-top: 0px;
+  display: none; }</diff>
      <filename>public/stylesheets/android.css</filename>
    </modified>
    <modified>
      <diff>@@ -105,11 +105,34 @@ table.admin {
   #header #logo {
     float: left;
     padding-right: 5px; }
+  #header #clearButton {
+    clear: none;
+    float: left;
+    padding: 0;
+    margin: 0 0 0 -25px; }
+    #header #clearButton img {
+      margin: 0;
+      padding: 0;
+      border: 0;
+      clear: none; }
+  #header input#searchField {
+    float: left;
+    height: 20px;
+    width: 195px;
+    margin-top: -3px;
+    border: 1px solid grey; }
+  #header button#goButton {
+    float: right;
+    margin: -5px 8px 0 0;
+    height: 30px;
+    width: 30px;
+    background: #FFF url(/images/search.gif) no-repeat center;
+    border: 0; }
 
 #nav {
   display: none;
   height: 28px;
-  width: 135px;
+  width: 185px;
   clear: both;
   z-index: 1;
   background: white;
@@ -120,14 +143,20 @@ table.admin {
   -webkit-border-radius: 2px;
   -moz-border-radius: 2px; }
   #nav button {
-    float: left; }
+    float: left;
+    background: url(/images/buttonbg.gif) no-repeat center;
+    margin-left: 3px;
+    border: 0px;
+    height: 23px;
+    width: 83px; }
 
 .notice {
   padding: 5px;
   background: #ddd;
   -webkit-border-radius: 5px;
   margin-top: 5px;
-  text-align: center; }
+  text-align: center;
+  border: 1px solid grey; }
   .notice #perm {
     margin-top: 10px;
     font-size: 80%; }</diff>
      <filename>public/stylesheets/blackberry.css</filename>
    </modified>
    <modified>
      <diff>@@ -102,11 +102,34 @@ table.admin {
   #header #logo {
     float: left;
     padding-right: 5px; }
+  #header #clearButton {
+    clear: none;
+    float: left;
+    padding: 0;
+    margin: 0 0 0 -25px; }
+    #header #clearButton img {
+      margin: 0;
+      padding: 0;
+      border: 0;
+      clear: none; }
+  #header input#searchField {
+    float: left;
+    height: 20px;
+    width: 195px;
+    margin-top: -3px;
+    border: 1px solid grey; }
+  #header button#goButton {
+    float: right;
+    margin: -5px 8px 0 0;
+    height: 30px;
+    width: 30px;
+    background: #FFF url(/images/search.gif) no-repeat center;
+    border: 0; }
 
 #nav {
   display: none;
   height: 28px;
-  width: 135px;
+  width: 185px;
   clear: both;
   z-index: 1;
   background: white;
@@ -117,14 +140,20 @@ table.admin {
   -webkit-border-radius: 2px;
   -moz-border-radius: 2px; }
   #nav button {
-    float: left; }
+    float: left;
+    background: url(/images/buttonbg.gif) no-repeat center;
+    margin-left: 3px;
+    border: 0px;
+    height: 23px;
+    width: 83px; }
 
 .notice {
   padding: 5px;
   background: #ddd;
   -webkit-border-radius: 5px;
   margin-top: 5px;
-  text-align: center; }
+  text-align: center;
+  border: 1px solid grey; }
   .notice #perm {
     margin-top: 10px;
     font-size: 80%; }</diff>
      <filename>public/stylesheets/default.css</filename>
    </modified>
    <modified>
      <diff>@@ -102,11 +102,34 @@ table.admin {
   #header #logo {
     float: left;
     padding-right: 5px; }
+  #header #clearButton {
+    clear: none;
+    float: left;
+    padding: 0;
+    margin: 0 0 0 -25px; }
+    #header #clearButton img {
+      margin: 0;
+      padding: 0;
+      border: 0;
+      clear: none; }
+  #header input#searchField {
+    float: left;
+    height: 20px;
+    width: 195px;
+    margin-top: -3px;
+    border: 1px solid grey; }
+  #header button#goButton {
+    float: right;
+    margin: -5px 8px 0 0;
+    height: 30px;
+    width: 30px;
+    background: #FFF url(/images/search.gif) no-repeat center;
+    border: 0; }
 
 #nav {
   display: none;
   height: 28px;
-  width: 135px;
+  width: 185px;
   clear: both;
   z-index: 1;
   background: white;
@@ -117,14 +140,20 @@ table.admin {
   -webkit-border-radius: 2px;
   -moz-border-radius: 2px; }
   #nav button {
-    float: left; }
+    float: left;
+    background: url(/images/buttonbg.gif) no-repeat center;
+    margin-left: 3px;
+    border: 0px;
+    height: 23px;
+    width: 83px; }
 
 .notice {
   padding: 5px;
   background: #ddd;
   -webkit-border-radius: 5px;
   margin-top: 5px;
-  text-align: center; }
+  text-align: center;
+  border: 1px solid grey; }
   .notice #perm {
     margin-top: 10px;
     font-size: 80%; }</diff>
      <filename>public/stylesheets/firefox.css</filename>
    </modified>
    <modified>
      <diff>@@ -3,22 +3,10 @@
 body
   font-size: 140%
 
-input
-  width: 190px
-
-form.search_bar
-  margin-top: -5px
-  position: absolute
-  margin-left: 45px
-
-#header
-  height: 35px
-  padding-top: 10px
-
-#nav
-  width: 200px
-  height: 40px
-  margin-top: -2px
-  padding-top: 0px
-  button
-    margin-left: 18px
\ No newline at end of file
+#searchField
+  padding-top: 5px
+  width: 20px
+#clearButton
+  margin-top: 0px
+  //margin-right: -18px
+  display: none
\ No newline at end of file</diff>
      <filename>public/stylesheets/sass/android.sass</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
 @import _tables.sass
 
+
 #header
   width: 293px
   height: 30px
@@ -14,10 +15,37 @@
   #logo
     float: left
     padding-right: 5px
+
+  #clearButton
+    clear: none
+    float: left
+    padding: 0
+    margin: 0 0 0 -25px
+    img
+      margin: 0
+      padding: 0
+      border: 0
+      clear: none
+
+  input#searchField
+    float: left
+    height: 20px
+    width: 195px
+    margin-top: -3px
+    border: 1px solid grey
+
+  button#goButton
+    float: right
+    margin: -5px 8px 0 0
+    height: 30px
+    width: 30px
+    background: #FFF url(/images/search.gif) no-repeat center
+    border: 0
+    
 #nav
   display: none
   height: 28px
-  width: 135px
+  width: 185px
   clear: both
   z-index: 1
   background: white
@@ -29,6 +57,11 @@
   -moz-border-radius: 2px
   button
     float: left
+    background: url(/images/buttonbg.gif) no-repeat center
+    margin-left: 3px
+    border: 0px
+    height: 23px
+    width: 83px
 
 .notice 
   padding: 5px
@@ -36,6 +69,7 @@
   -webkit-border-radius: 5px
   margin-top: 5px
   text-align: center
+  border: 1px solid grey
   #perm
     margin-top: 10px
     font-size: 80%</diff>
      <filename>public/stylesheets/sass/webkit.sass</filename>
    </modified>
    <modified>
      <diff>@@ -102,11 +102,34 @@ table.admin {
   #header #logo {
     float: left;
     padding-right: 5px; }
+  #header #clearButton {
+    clear: none;
+    float: left;
+    padding: 0;
+    margin: 0 0 0 -25px; }
+    #header #clearButton img {
+      margin: 0;
+      padding: 0;
+      border: 0;
+      clear: none; }
+  #header input#searchField {
+    float: left;
+    height: 20px;
+    width: 195px;
+    margin-top: -3px;
+    border: 1px solid grey; }
+  #header button#goButton {
+    float: right;
+    margin: -5px 8px 0 0;
+    height: 30px;
+    width: 30px;
+    background: #FFF url(/images/search.gif) no-repeat center;
+    border: 0; }
 
 #nav {
   display: none;
   height: 28px;
-  width: 135px;
+  width: 185px;
   clear: both;
   z-index: 1;
   background: white;
@@ -117,14 +140,20 @@ table.admin {
   -webkit-border-radius: 2px;
   -moz-border-radius: 2px; }
   #nav button {
-    float: left; }
+    float: left;
+    background: url(/images/buttonbg.gif) no-repeat center;
+    margin-left: 3px;
+    border: 0px;
+    height: 23px;
+    width: 83px; }
 
 .notice {
   padding: 5px;
   background: #ddd;
   -webkit-border-radius: 5px;
   margin-top: 5px;
-  text-align: center; }
+  text-align: center;
+  border: 1px solid grey; }
   .notice #perm {
     margin-top: 10px;
     font-size: 80%; }</diff>
      <filename>public/stylesheets/webkit.css</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>public/images/arrow.gif</filename>
    </removed>
    <removed>
      <filename>public/images/merb.jpg</filename>
    </removed>
    <removed>
      <filename>public/jquery.js</filename>
    </removed>
    <removed>
      <filename>public/webkit.js</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>344bb35d0d302856eb29dd629fbdc7c2fcd55c86</id>
    </parent>
  </parents>
  <author>
    <name>Hampton Catlin</name>
    <email>hcatlin@gmail.com</email>
  </author>
  <url>http://github.com/hcatlin/wikimedia-mobile/commit/2dd80ca4d8e6fdeaa1bc5ff3d2a7a7fcb44fe533</url>
  <id>2dd80ca4d8e6fdeaa1bc5ff3d2a7a7fcb44fe533</id>
  <committed-date>2009-07-26T14:46:50-07:00</committed-date>
  <authored-date>2009-07-26T14:46:50-07:00</authored-date>
  <message>big reworking of the button bar at the top. should work great in the Big 3 Devices</message>
  <tree>650135058e472dab5061054a1b4197598846f906</tree>
  <committer>
    <name>Hampton Catlin</name>
    <email>hcatlin@gmail.com</email>
  </committer>
</commit>
