<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>backend/views/shared/_form.html.haml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,13 @@
 class LotsOfWords &lt; Application
   
   def index
+    if params[:source] &amp;&amp; params[:target] &amp;&amp; params[:term]
+      redirect url(:link, {
+        :source =&gt; params[:source],
+        :target =&gt; params[:target],
+        :term =&gt; params[:term],
+      }), :permanent =&gt; true
+    end
     render
   end
   </diff>
      <filename>backend/lots_of_words.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,3 +1,5 @@
+= partial 'shared/form'
+
 #source
   .big
     = @link[&quot;rows&quot;].first[&quot;doc&quot;][&quot;source_word&quot;]
@@ -13,7 +15,9 @@
 :javascript
   showPhoto = function(data, div) {
     if(!data[&quot;photos&quot;]) return
+
     var photos = data[&quot;photos&quot;][&quot;photo&quot;];
+    console.log(photos.length, 'photos loaded')
     for(i in photos) {
       $(div).append(
         '&lt;a href=&quot;http://www.flickr.com/photos/' + photos[i]['owner'] + '/' + photos[i]['id'] + '&quot;&gt;'+</diff>
      <filename>backend/views/languages/link.html.haml</filename>
    </modified>
    <modified>
      <diff>@@ -1,23 +1 @@
-- throw_content :for_javascript do
-  :plain
-    $('input').click(function() {
-      $('.translate').each(function() {
-        var el = $(this)
-
-        $.getJSON('/en/ru/' + $.trim(el.html()).replace(' ', '+') + '.json', function(data) {
-          el.html(data[&quot;rows&quot;][0][&quot;doc&quot;][&quot;target_word&quot;].replace(/\(.*?\)/, ''))
-        })
-      })
-      $('#translate-button').hide()
-    })
-
-%p
-  In
-  %span.translate
-    Soviet Union
-  ,
-  %span.translate
-    Russian
-  translates YOU!
-
-%input{ :id =&gt; 'translate-button', :type =&gt; &quot;button&quot;, :value =&gt; &quot;Translate&quot; }/
+= partial 'shared/form'
\ No newline at end of file</diff>
      <filename>backend/views/lots_of_words/index.html.haml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>354671965b8023d7d4c8e21b9ab42f32f169ea90</id>
    </parent>
  </parents>
  <author>
    <name>Carlos Villela</name>
    <email>cv@lixo.org</email>
  </author>
  <url>http://github.com/cv/lots-of-words/commit/0a54cda57b457d1d63675763032ba38ee042cc56</url>
  <id>0a54cda57b457d1d63675763032ba38ee042cc56</id>
  <committed-date>2008-11-01T19:22:00-07:00</committed-date>
  <authored-date>2008-11-01T19:22:00-07:00</authored-date>
  <message>added a crappy little search bar</message>
  <tree>827afcfce5d64daca00d45438a1d65e8c86e5baf</tree>
  <committer>
    <name>Carlos Villela</name>
    <email>cv@lixo.org</email>
  </committer>
</commit>
