<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>LICENSE</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -70,8 +70,11 @@ class Post &lt; ActiveRecord::Base
     post.forum.save
   end
   
+  # Finds the latest post and updates the forum accordingly.
+  # Called after create and destroy of posts.
   def find_latest_post
-    last = forum.posts.last
+    # Posts for a forum are ordered in reverse.
+    last = forum.posts.first
     if !last.nil?
       last = Post.update_latest_post(last)
     else</diff>
      <filename>app/models/post.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,6 +2,7 @@ class Rank &lt; ActiveRecord::Base
   has_many :users
     
   named_scope :custom, :conditions =&gt; { :custom =&gt; true }
+  named_scope :for_user, lambda { |user| { :conditions =&gt; [&quot;posts_required &gt;= ?&quot;, user.posts.count] } } 
   
   validates_presence_of :name
   </diff>
      <filename>app/models/rank.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@
 &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd&quot;&gt;
 &lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; lang=&quot;en&quot; xml:lang=&quot;en&quot;&gt;
   &lt;head&gt;
-    &lt;title&gt;rBoard - &lt;%= params[:controller].capitalize %&gt; - &lt;%= params[:action].capitalize %&gt; &lt;/title&gt;
+    &lt;title&gt;&lt;%= t(:rBoard) %&gt; - &lt;%= params[:controller].capitalize %&gt; - &lt;%= params[:action].capitalize %&gt; &lt;/title&gt;
     &lt;link rel='stylesheet' href='/themes/&lt;%= theme.name %&gt;/style.css'&gt;
     &lt;%= stylesheet_link_tag &quot;ultraviolet/lazy&quot; %&gt;
     &lt;%= stylesheet_link_tag &quot;ultraviolet/general&quot; %&gt;
@@ -29,7 +29,6 @@
           &lt;%= t(:Logged_in_as) %&gt; &lt;%= link_to current_user, current_user %&gt; |
           &lt;%= link_to t(:Edit_Profile), [:edit, current_user] %&gt; |
           &lt;%= link_to t(:Member_List), users_path %&gt; | 
-          &lt;%= link_to t(:Search), search_path %&gt; | 
           &lt;%= link_to t(:x_new_messages, :count =&gt; @current_user.unread_messages.size), messages_path %&gt; |
           &lt;%= link_to t(:Subscriptions), subscriptions_path %&gt; |
           &lt;%= link_to t(:Logout), logout_path %&gt;
@@ -38,7 +37,7 @@
       
       &lt;div class='search'&gt;
         &lt;% form_tag :controller =&gt; &quot;search&quot; do %&gt;
-          Search: &lt;%= text_field_tag :search %&gt;
+          &lt;%= t(:Search) %&gt;: &lt;%= text_field_tag :search %&gt;
         &lt;% end %&gt;
       &lt;/div&gt;&lt;br /&gt;&lt;br /&gt;
       &lt;%= yield %&gt;</diff>
      <filename>app/views/layouts/application.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -43,7 +43,7 @@
           &lt;%= image_tag(&quot;http://www.gravatar.com/avatar.php?gravatar_id=&quot; + Digest::MD5.hexdigest(post.user.email) + &quot;&amp;default=&quot;) %&gt;&lt;br /&gt;
         &lt;% end %&gt;
         &lt;b&gt;&lt;%= t(:Posts) %&gt;:&lt;/b&gt; &lt;%= post.user.posts.size %&gt;&lt;br /&gt;
-        &lt;b&gt;&lt;%= t(:Date_joined) %&gt;:&lt;/b&gt; &lt;%= post.user.created_at.strftime(date_display) %&gt;
+        &lt;b&gt;&lt;%= t(:Date_joined) %&gt;:&lt;/b&gt; &lt;%= post.user.created_at.strftime(date_display) %&gt;&lt;br /&gt;
         &lt;b&gt;&lt;%= t(:Online) %&gt;:&lt;/b&gt; &lt;%= post.user.online? ? t(:Yes) : t(:No) %&gt;
       &lt;/td&gt;
       </diff>
      <filename>app/views/posts/_post.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,5 @@
 &lt;% form_tag do %&gt;
-&lt;%= t(:Search) %&gt;: &lt;%= text_field_tag &quot;query&quot; %&gt;
+&lt;%= t(:Search) %&gt;: &lt;%= text_field_tag &quot;query&quot;, params[:query] %&gt;
 &lt;%= submit_tag t(:Search) %&gt;
 &lt;% end %&gt;
 &lt;% if request.post? %&gt;</diff>
      <filename>app/views/search/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -4,7 +4,6 @@
   &lt;%= check_box_tag &quot;leave_redirect&quot; %&gt;
   &lt;%= label_tag &quot;leave_redirect&quot;, t(:Leave_redirect?) %&gt;
 &lt;% end %&gt;
-&lt;% if current_user.can?%&gt;
 &lt;%= submit_tag(t(:Lock)) %&gt;
 &lt;%= submit_tag(t(:Unlock)) %&gt;
 &lt;%= submit_tag(t(:Merge)) %&gt;</diff>
      <filename>app/views/topics/_buttons.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -5,6 +5,9 @@ body, textarea, table {
   color:#ffc600;
 }
 
+td {
+  padding: 10px;
+}
 a {
   color: #48769D;
   text-decoration: none;
@@ -87,12 +90,8 @@ img {
   border: 1px solid #17476e;
 }
 
-.forums td, .forum td, .list-table td {
-  padding: 5px;
-}
-
 .forums thead, .forum thead, .info-box thead, .post thead, .action-box thead, .list-table thead {
-  background: #17476e url(/themes/dark/thead-bg.jpg) repeat-x scroll 0%;
+  background: #ffb200 url(/themes/dark/thead-bg.jpg) repeat-x scroll 0%;
   font-weight: bold;
   color: black;
 }</diff>
      <filename>public/themes/dark/style.css</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b2e2daf29aca21f86d30b798b8483c2873a18445</id>
    </parent>
  </parents>
  <author>
    <name>Ryan Bigg</name>
    <email>radarlistener@gmail.com</email>
  </author>
  <url>http://github.com/radar/rboard/commit/1934f51f5bfe2be8e14460516a1a0c82112cd494</url>
  <id>1934f51f5bfe2be8e14460516a1a0c82112cd494</id>
  <committed-date>2009-04-14T20:03:24-07:00</committed-date>
  <authored-date>2009-04-14T20:02:54-07:00</authored-date>
  <message>Internationalisation of places, as well as making sure tghe last post is actually the last post.

License, since people were asking for it</message>
  <tree>c110f8e02cb54fbd74369f6e54bd49218cf5876a</tree>
  <committer>
    <name>Ryan Bigg</name>
    <email>radarlistener@gmail.com</email>
  </committer>
</commit>
