<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/controllers/admin/departments_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/admin/events_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/events_controller.rb</filename>
    </added>
    <added>
      <filename>app/controllers/users_controller.rb</filename>
    </added>
    <added>
      <filename>app/helpers/admin/departments_helper.rb</filename>
    </added>
    <added>
      <filename>app/helpers/admin/events_helper.rb</filename>
    </added>
    <added>
      <filename>app/helpers/events_helper.rb</filename>
    </added>
    <added>
      <filename>app/helpers/users_helper.rb</filename>
    </added>
    <added>
      <filename>app/models/department.rb</filename>
    </added>
    <added>
      <filename>app/models/event.rb</filename>
    </added>
    <added>
      <filename>app/views/admin/departments/_form.html.erb</filename>
    </added>
    <added>
      <filename>app/views/admin/departments/index.html.erb</filename>
    </added>
    <added>
      <filename>app/views/admin/events/_form.html.erb</filename>
    </added>
    <added>
      <filename>app/views/admin/events/index.html.erb</filename>
    </added>
    <added>
      <filename>app/views/admin/scaffold/_data_table.html.erb</filename>
    </added>
    <added>
      <filename>app/views/events/_list.html.erb</filename>
    </added>
    <added>
      <filename>app/views/events/arquivo.html.erb</filename>
    </added>
    <added>
      <filename>app/views/events/index.html.erb</filename>
    </added>
    <added>
      <filename>app/views/events/show.html.erb</filename>
    </added>
    <added>
      <filename>app/views/users/index.html.erb</filename>
    </added>
    <added>
      <filename>app/views/users/show.html.erb</filename>
    </added>
    <added>
      <filename>db/migrate/20091025005432_add_birth_info_to_users.rb</filename>
    </added>
    <added>
      <filename>db/migrate/20091026143546_create_departments.rb</filename>
    </added>
    <added>
      <filename>db/migrate/20091027001635_create_events.rb</filename>
    </added>
    <added>
      <filename>public/images/admin/editora_callis.png</filename>
    </added>
    <added>
      <filename>public/javascripts/users/by_month.js</filename>
    </added>
    <added>
      <filename>test/factories/departments.rb</filename>
    </added>
    <added>
      <filename>test/factories/events.rb</filename>
    </added>
    <added>
      <filename>test/fixtures/events.yml</filename>
    </added>
    <added>
      <filename>test/functional/admin/departments_controller_test.rb</filename>
    </added>
    <added>
      <filename>test/functional/admin/events_controller_test.rb</filename>
    </added>
    <added>
      <filename>test/functional/events_controller_test.rb</filename>
    </added>
    <added>
      <filename>test/functional/users_controller_test.rb</filename>
    </added>
    <added>
      <filename>test/unit/department_test.rb</filename>
    </added>
    <added>
      <filename>test/unit/event_test.rb</filename>
    </added>
    <added>
      <filename>test/unit/helpers/admin/departments_helper_test.rb</filename>
    </added>
    <added>
      <filename>test/unit/helpers/admin/events_helper_test.rb</filename>
    </added>
    <added>
      <filename>test/unit/helpers/events_helper_test.rb</filename>
    </added>
    <added>
      <filename>test/unit/helpers/users_helper_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/LICENSE</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/README.rdoc</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/Rakefile</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/cucumber/paperclip_steps.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/generators/paperclip/USAGE</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/generators/paperclip/paperclip_generator.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/generators/paperclip/templates/paperclip_migration.rb.erb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/init.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/attachment.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/callback_compatability.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/geometry.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/interpolations.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/iostream.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/matchers.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/matchers/have_attached_file_matcher.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_content_type_matcher.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_presence_matcher.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/matchers/validate_attachment_size_matcher.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/processor.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/storage.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/thumbnail.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/lib/paperclip/upfile.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/paperclip.gemspec</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/shoulda_macros/paperclip.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/tasks/paperclip_tasks.rake</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/.gitignore</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/attachment_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/database.yml</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/fixtures/12k.png</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/fixtures/50x50.png</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/fixtures/5k.png</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/fixtures/bad.png</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/fixtures/s3.yml</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/fixtures/text.txt</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/fixtures/twopage.pdf</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/geometry_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/helper.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/integration_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/interpolations_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/iostream_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/matchers/have_attached_file_matcher_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/matchers/validate_attachment_content_type_matcher_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/matchers/validate_attachment_presence_matcher_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/matchers/validate_attachment_size_matcher_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/paperclip_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/processor_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/storage_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/thumbnail_test.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/paperclip/test/upfile_test.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -4,6 +4,8 @@ class PagesController &lt; ApplicationController
 
   def index
     @pages = Page.main_pages
+    @users = User.by_month(Date.today.month)
+    @events = Event.upcoming(:limit =&gt; 4)
   end
 
   def contato</diff>
      <filename>app/controllers/pages_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,11 +9,21 @@ class User &lt; ActiveRecord::Base
   end
 
   has_and_belongs_to_many :roles
+  
+  belongs_to :department
 
   validates_presence_of :name
 
   named_scope :admins, :include =&gt; :roles, :conditions =&gt; &quot;roles.name = 'admin'&quot;
   
+  default_scope :order =&gt; &quot;name ASC&quot;
+  
+  has_attached_file :avatar,
+                    :styles =&gt; { :thumb =&gt; &quot;70x80#&quot;, :list =&gt; &quot;120x140#&quot;, :big =&gt; &quot;420x580&gt;&quot; },
+                    :path =&gt; PAPERCLIP_PATH,
+                    :url =&gt; PAPERCLIP_URL,
+                    :default_url =&gt; &quot;&quot;
+  
   # has_role? simply needs to return true or false whether a user has a role or not.  
   # It may be a good idea to have &quot;admin&quot; roles return true always
   def has_role?(role_in_question)
@@ -22,4 +32,20 @@ class User &lt; ActiveRecord::Base
     (@_list.include?(role_in_question.to_s) )
   end
   
+  def age
+    now = Date.today
+    year = now.year - birthday.year if birthday
+    
+    if (birthday + year.year) &gt; now
+      year = year - 1
+    else
+      year
+    end
+  end
+  
+  private
+  def self.by_month(month)
+    all(:conditions =&gt; [&quot;MONTH(birthday) = ?&quot;, month])
+  end
+  
 end</diff>
      <filename>app/models/user.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,10 +1,12 @@
 &lt;ul id=&quot;menu&quot;&gt;
+	&lt;li&gt;&lt;%= link_to &quot;Departamentos&quot;, admin_departments_path %&gt;&lt;/li&gt;
 	&lt;li&gt;
-		&lt;%= link_to t(:menu_users), admin_users_path %&gt;
+		&lt;%= link_to &quot;Funcion&#225;rios&quot;, admin_users_path %&gt;
 		&lt;ul&gt;
 			&lt;li&gt;&lt;%= link_to t(:menu_users), admin_users_path %&gt;&lt;/li&gt;
 			&lt;li&gt;&lt;%= link_to t(:menu_admins), admin_users_path(:role =&gt; 'admin')  %&gt;&lt;/li&gt;
 		&lt;/ul&gt;
 	&lt;/li&gt;
 	&lt;li&gt;&lt;%= link_to t(:menu_pages), admin_pages_path %&gt;&lt;/li&gt;
+	&lt;li&gt;&lt;%= link_to &quot;Eventos&quot;, admin_events_path %&gt;&lt;/li&gt;
 &lt;/ul&gt;
\ No newline at end of file</diff>
      <filename>app/views/admin/layouts/_menu.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -18,7 +18,7 @@
 
 &lt;%= render :partial=&gt;&quot;admin/layouts/info&quot; if logged_in? %&gt;
 
-&lt;%= image_tag(&quot;admin/dbd.gif&quot;) %&gt;
+&lt;%= image_tag(&quot;admin/editora_callis.png&quot;) %&gt;
 
 &lt;%= render :partial=&gt;&quot;admin/layouts/menu&quot; if logged_in? %&gt;
 
@@ -31,7 +31,7 @@
 	&lt;%= yield  %&gt;
 &lt;/div&gt;
 
-&lt;div id=&quot;footer&quot;&gt;&lt;%=t :created_by %&gt; &lt;%= link_to &quot;DBurns Design&quot;, &quot;http://www.dburnsdesign.com&quot;, :target =&gt; &quot;_blank&quot; %&gt;&lt;/div&gt;
+&lt;div id=&quot;footer&quot;&gt;&lt;%=t :created_by %&gt; &lt;%= link_to &quot;Philipe Casarotte&quot;, &quot;http://philipecasarotte.com.br&quot;, :target =&gt; &quot;_blank&quot; %&gt;&lt;/div&gt;
 
 &lt;/body&gt;
 &lt;/html&gt;</diff>
      <filename>app/views/admin/layouts/admin.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,15 @@
 &lt;% f.inputs do %&gt;
+	&lt;p&gt;
+	  &lt;%= f.label :avatar, &quot;Foto&quot; %&gt;
+	  &lt;%= f.file_field :avatar %&gt;
+	&lt;/p&gt;
 	&lt;%= f.input :login %&gt;
 	&lt;%= f.input :name %&gt;
 	&lt;%= f.input :email %&gt;
+	&lt;%= f.label :birthday, &quot;Anivers&#225;rio&quot; %&gt;
+	&lt;%= f.date_select :birthday, :start_year =&gt; 1930 %&gt;
+	&lt;%= f.input :telephone, :label =&gt; &quot;Telefone/Ramal&quot; %&gt;
+	&lt;%= f.input :department, :label =&gt; &quot;Departamento&quot; %&gt;
 	&lt;%= f.input :password %&gt;
 	&lt;%= f.input :password_confirmation %&gt;
 	&lt;%= f.input :roles, :as =&gt; :check_boxes %&gt;</diff>
      <filename>app/views/admin/users/_form.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -3,17 +3,23 @@
 &lt;table id=&quot;table&quot;&gt;
 	&lt;thead&gt;
 		&lt;tr&gt;
+			&lt;th&gt;&lt;/th&gt;
 			&lt;th&gt;Login&lt;/th&gt;
 			&lt;th&gt;&lt;%=t :user_name %&gt;&lt;/th&gt;
 			&lt;th&gt;&lt;%=t :user_email %&gt;&lt;/th&gt;
+			&lt;th&gt;Departamento&lt;/th&gt;
+			&lt;th&gt;Telefone&lt;/th&gt;
 		&lt;/tr&gt;
 	&lt;/thead&gt;
 	&lt;tbody&gt;
 		&lt;%- @users.each do |user|%&gt;
 			&lt;tr&gt;
+				&lt;td&gt;&lt;%= image_tag user.avatar.url(:thumb) if user.avatar.url.present? %&gt;&lt;/td&gt;
 				&lt;td&gt;&lt;%=h user.login %&gt;&lt;/td&gt;
 				&lt;td&gt;&lt;%=h user.name %&gt;&lt;/td&gt;
 				&lt;td&gt;&lt;%=h user.email %&gt;&lt;/td&gt;
+				&lt;td&gt;&lt;%= user.department.name rescue &quot;&quot; %&gt;&lt;/td&gt;
+				&lt;td&gt;&lt;%= user.telephone %&gt;&lt;/td&gt;
 
 				&lt;td&gt;&lt;%=link_to t(:edit), edit_object_url(user) %&gt;&lt;/td&gt;
 				&lt;td&gt;&lt;%=link_to t(:destroy), object_url(user), :confirm =&gt; t(:are_you_sure), :method =&gt; :delete %&gt;&lt;/td&gt;</diff>
      <filename>app/views/admin/users/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -28,9 +28,9 @@
 				&lt;p&gt;Intranet Editora Callis | &lt;%= link_to &quot;Administrativo&quot;, admin_root_path %&gt;&lt;/p&gt;
 				&lt;ul&gt;
 					&lt;li&gt;&lt;%= link_to &quot;Home&quot;, root_path %&gt;&lt;/li&gt;
-					&lt;li&gt;&lt;%= link_to &quot;Procedimentos&quot;, &quot;procedures_path&quot; %&gt;&lt;/li&gt;
-					&lt;li&gt;&lt;%= link_to &quot;Eventos&quot;, &quot;events_path&quot; %&gt;&lt;/li&gt;
-					&lt;li&gt;&lt;%= link_to &quot;Anivers&#225;riantes&quot;, &quot;users_path&quot; %&gt;&lt;/li&gt;												
+					&lt;li&gt;&lt;%= link_to &quot;Procedimentos&quot;, procedures_path %&gt;&lt;/li&gt;
+					&lt;li&gt;&lt;%= link_to &quot;Eventos&quot;, events_path %&gt;&lt;/li&gt;
+					&lt;li&gt;&lt;%= link_to &quot;Anivers&#225;riantes&quot;, users_path %&gt;&lt;/li&gt;												
 				&lt;/ul&gt;
 			&lt;/div&gt;
 			&lt;% [:error, :notice].each do |message| %&gt;</diff>
      <filename>app/views/layouts/application.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -2,35 +2,48 @@
 &lt;div id=&quot;events&quot;&gt;
 	&lt;h2&gt;Pr&#243;ximos Eventos&lt;/h2&gt;
 	&lt;ul&gt;
+	&lt;% @events.each do |event| %&gt;
 		&lt;li&gt;
-			&lt;% link_to &quot;event_path(event)&quot; do %&gt;
-				&lt;small&gt;23 de Nov, 2009&lt;/small&gt;
-				&lt;h3&gt;Lorem sit amet dolen ipsum&lt;/h3&gt;
-			&lt;% end %&gt;
-		&lt;/li&gt;
-		&lt;li&gt;
-			&lt;% link_to &quot;event_path(event)&quot; do %&gt;
-				&lt;small&gt;23 de Nov, 2009&lt;/small&gt;
-				&lt;h3&gt;Lorem sit amet dolen ipsum&lt;/h3&gt;
-			&lt;% end %&gt;
-		&lt;/li&gt;
-		&lt;li&gt;
-			&lt;% link_to &quot;event_path(event)&quot; do %&gt;
-				&lt;small&gt;23 de Nov, 2009&lt;/small&gt;
-				&lt;h3&gt;Lorem sit amet dolen ipsum&lt;/h3&gt;
-			&lt;% end %&gt;
-		&lt;/li&gt;
-		&lt;li&gt;
-			&lt;% link_to &quot;event_path(event)&quot; do %&gt;
-				&lt;small&gt;23 de Nov, 2009&lt;/small&gt;
-				&lt;h3&gt;Lorem sit amet dolen ipsum&lt;/h3&gt;
+			&lt;% link_to event_path(event.permalink) do %&gt;
+				&lt;small&gt;&lt;%= l(event.happens_on, :format =&gt; :short) %&gt;&lt;/small&gt;
+				&lt;h3&gt;&lt;%= event.name.summary 30 %&gt;&lt;/h3&gt;
 			&lt;% end %&gt;
 		&lt;/li&gt;
+	&lt;% end %&gt;
 	&lt;/ul&gt;
 &lt;/div&gt;
 &lt;div id=&quot;births&quot;&gt;
 	&lt;h2&gt;Anivers&#225;riantes&lt;/h2&gt;
+&lt;% if @users.any? %&gt;
+	&lt;ul&gt;
+	&lt;% @users.each do |user| %&gt;	
+		&lt;li&gt;
+			&lt;% link_to user_path(user) do %&gt;
+				&lt;%= image_tag user.avatar.url(:thumb), :size =&gt; &quot;70x80&quot; if user.avatar.url.present? %&gt;
+				&lt;h3&gt;&lt;%= user.name %&gt;&lt;/h3&gt;
+				&lt;% if user.birthday.present? %&gt;	
+					&lt;big&gt;&lt;%= l(user.birthday, :format =&gt; :short) %&gt;&lt;/big&gt;
+					&lt;small&gt;&lt;%= &quot;#{user.age} anos&quot; if user.birthday.present? %&gt;&lt;/small&gt;
+				&lt;% end %&gt;
+			&lt;% end %&gt;
+		&lt;/li&gt;
+	&lt;% end %&gt;
+	&lt;/ul&gt;
+&lt;% else %&gt;
+	Nenhum anivers&#225;riante&lt;br/&gt;
+	no m&#234;s de &lt;%= l(Date.today, :format =&gt; :only_month) %&gt;
+&lt;% end %&gt;
 &lt;/div&gt;
 &lt;div id=&quot;procedures&quot;&gt;
 	&lt;h2&gt;Procedimentos&lt;/h2&gt;
+	&lt;% form_tag search_procedures_path, :method =&gt; :get do %&gt;
+		&lt;%= text_field_tag &quot;q&quot;, params[:q] || &quot;digite aqui sua palavra-chave&quot; %&gt;
+		&lt;%= submit_tag(&quot;Buscar&quot;, :class =&gt; &quot;submit&quot;) %&gt;
+	&lt;% end %&gt;
+	&lt;h2&gt;&#218;ltimos Cadastrados&lt;/h2&gt;
+	&lt;ul&gt;
+		&lt;li&gt;&lt;%= link_to &quot;Lorem ipsum dolor sit amet, consectetur adipisicing elit&quot;.summary(50), &quot;#&quot; %&gt;&lt;/li&gt;
+		&lt;li&gt;&lt;%= link_to &quot;Lorem ipsum dolor sit amet, consectetur adipisicing elit&quot;.summary(50), &quot;#&quot; %&gt;&lt;/li&gt;
+		&lt;li&gt;&lt;%= link_to &quot;Lorem ipsum dolor sit amet, consectetur adipisicing elit&quot;.summary(50), &quot;#&quot; %&gt;&lt;/li&gt;				
+	&lt;/ul&gt;
 &lt;/div&gt;
\ No newline at end of file</diff>
      <filename>app/views/pages/index.html.erb</filename>
    </modified>
    <modified>
      <diff>@@ -79,6 +79,9 @@ Rails::Initializer.run do |config|
   SITE_URL = &quot;http://www.#{SITE_DOMAIN}/&quot;
   SITE_EMAIL = &quot;contact@#{SITE_DOMAIN}&quot;
   SITE_META_KEYWORDS = &quot;&quot;
+  
+  PAPERCLIP_PATH = &quot;:rails_root/public/system/:class/:id/:style/:basename.:extension&quot;
+  PAPERCLIP_URL = &quot;/system/:class/:id/:style/:basename.:extension&quot;
 
   $VERBOSE = old_verbose
 end</diff>
      <filename>config/environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -49,6 +49,7 @@ pt-BR:
       short: &quot;%d de %B&quot;
       long: &quot;%d de %B de %Y&quot;
       only_day: &quot;%d&quot;
+      only_month: &quot;%B&quot;
 
     day_names: [Domingo, Segunda, Ter&#231;a, Quarta, Quinta, Sexta, S&#225;bado]
     abbr_day_names: [Dom, Seg, Ter, Qua, Qui, Sex, S&#225;b]</diff>
      <filename>config/locales/pt-BR.yml</filename>
    </modified>
    <modified>
      <diff>@@ -5,13 +5,19 @@ ActionController::Routing::Routes.draw do |map|
     admin.logout 'logout', :controller =&gt; &quot;user_sessions&quot;, :action =&gt; &quot;destroy&quot;
     admin.resource :user_session
     admin.resources :pages, :as =&gt; :paginas, :collection=&gt;{ :reorder=&gt;:get, :order=&gt;:post }
-    admin.resources :users, :usuarios
+    admin.resources :departments, :as =&gt; :departamentos
+    admin.resources :users, :as =&gt; :aniversariantes
+    admin.resources :events, :as =&gt; :eventos
+    admin.resources :procedures, :as =&gt; :procedimentos
     admin.root :controller =&gt; 'pages'
   end
 
   map.pages '/paginas/:action', :controller =&gt; 'pages'
   map.resources :pages, :as =&gt; :paginas
-
+  map.resources :users, :as =&gt; :aniversariantes
+  map.resources :events, :as =&gt; :eventos, :collection =&gt; { :arquivo =&gt; :get } 
+  map.resources :procedures, :as =&gt; :procedimentos, :collection =&gt; { :search =&gt; :get }
+  
   map.not_found '/404', :controller =&gt; 'pages', :action =&gt; '404'
   map.application_error '/500', :controller =&gt; 'pages', :action =&gt; '500'
   map.unprocessable_entity '/422', :controller =&gt; 'pages', :action =&gt; '422'</diff>
      <filename>config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,27 +1,55 @@
-contact:
-  name: &quot;Contact&quot;
-  body: &quot;Coming soon&quot;
-  permalink: &quot;contact&quot;
+home:
+  id: 7
+  name: &quot;Home&quot;
+  body: &quot;Em Breve&quot;
+  permalink: &quot;home&quot;
   parent:
   is_protected: 1
 
-page_not_found:
-  name: &quot;Page Not Found&quot;
-  body: &quot;Coming soon&quot;
+procedimentos:
+  id: 6
+  name: &quot;Procedimentos&quot;
+  body: &quot;Em Breve&quot;
+  permalink: &quot;procedimentos&quot;
+  parent:
+  is_protected: 1
+
+eventos:
+  id: 5
+  name: &quot;Eventos&quot;
+  body: &quot;Em Breve&quot;
+  permalink: &quot;eventos&quot;
+  parent:
+  is_protected: 1
+
+aniversariantes:
+  id: 4
+  name: &quot;Aniversariantes&quot;
+  body: &quot;Em Breve&quot;
+  permalink: &quot;aniversariantes&quot;
+  parent:
+  is_protected: 1
+
+pagina_nao_encontrada:
+  id: 3
+  name: &quot;P&#225;gina n&#227;o Encontrada&quot;
+  body: &quot;Em Breve&quot;
   permalink: &quot;404&quot;
   parent:
   is_protected: 1
 
-unexpected_error:
+erro_inesperado:
+  id: 2
   name: &quot;Unexpected Error&quot;
-  body: &quot;Coming soon&quot;
+  body: &quot;Em Breve&quot;
   permalink: &quot;500&quot;
   parent:
   is_protected: 1
 
-unprocessable_entity:
-  name: &quot;Unprocessable Entity&quot;
-  body: &quot;Coming soon&quot;
+entidade_desconhecida:
+  id: 1
+  name: &quot;Entidade Desconhecida&quot;
+  body: &quot;Em Breve&quot;
   permalink: &quot;422&quot;
   parent:
   is_protected: 1
\ No newline at end of file</diff>
      <filename>lib/dburns/pages.yml</filename>
    </modified>
    <modified>
      <diff>@@ -1,14 +1,15 @@
 *     {margin:0;padding:0;}
-body  {background: #FFF url('/images/admin/background.jpg') repeat-x; color:#fff; font:12px Verdana, Arial, Tahoma, sans-serif;}
+body  {background-color:black; color:#fff; font:12px Verdana, Arial, Tahoma, sans-serif;}
 
 .clear  {clear:both;}
 
-a       {color:#FF0000;text-decoration:none;font-weight:bold;}
+a       {color:#00CCCC;text-decoration:none;font-weight:bold;}
 a:hover {color:#000;}
 a img   {border:none;}
 
 h1,h2,
-h3,h4   {color:#FF0000;}
+h3,h4,
+legend span  {color:#00CCCC;}
 
 h1 {font-size:18px; margin: 20px.1em 0;}
 h2 {font-size:16px; margin: 0.3em 0; padding-top: 0.8em;}
@@ -28,19 +29,19 @@ dt              {font-weight: bold;padding-left: 4px;vertical-align: top;}
 dd              {margin-left: 10em;margin-top: -2em;vertical-align: top;}
 
 /* INFO */
-#info           {float:right; margin:20px 20px 50px 0;color:#FFCC00;text-align:right;}
-#info a         {color:#FFCC00;text-decoration:none;}
+#info           {float:right; margin:20px 20px 50px 0;color:white;text-align:right;}
+#info a         {color:#00CCCC;text-decoration:none;}
 #info a:hover   {text-decoration:underline;}
 
 /* MENU */
 #menu           {margin-top:10px;}
 #menu li        {float:left; list-style-type:none; margin:0 2px; z-index:100; position:relative;}
-#menu a         {color:#FFCC00; display:block; width:auto; background:#000; border:solid 1px #666; border-width: 0 1px 1px 1px; padding:5px 10px; }
+#menu a         {color:#00CCCC; display:block; width:auto; background:#000; padding:5px 10px; }
 #menu a:hover   {color:#FFF;}
 
 /* FOOTER */
-#footer         {clear: both; padding: 6px 20px; font-size:80%; text-align:right; color:#000;}
-#footer a       {color:#000;}
+#footer         {clear: both; padding: 6px 20px; font-size:80%; text-align:right; color:white;}
+#footer a       {color:#00CCCC;}
 #footer a:hover {text-decoration:underline;}
 
 /* CONTENT */</diff>
      <filename>public/stylesheets/admin/default.css</filename>
    </modified>
    <modified>
      <diff>@@ -4,16 +4,21 @@ img {border:none;}
 a {color:#00CCCC;text-decoration:none;}
 a:hover {text-decoration:underline;}
 
-h1 {}
+p {margin-bottom:14px;}
+
+h1 {font-size:42px;color:black;font-weight:normal;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid #C7C7C7;}
+h1 small {float:right;color:#C7C7C7;}
+h1 small.link {font-size:14px;margin-top:15px;}
+h1 small.select {color:#00CCCC;font-size:14px;margin-top:15px;}
 h2 {font-size:28px;font-weight:normal;border-bottom:1px solid #C7C7C7;margin-bottom:10px;padding-bottom:10px;}
 h3 {font-size:16px;}
 
-body {background:white url(../images/bg/body.gif) repeat-x;color:#C7C7C7;font:12px Arial, Verdana, Tahoma, sans-serif;}
+body {background:white url(../images/bg/body.gif) repeat-x;color:black;font:12px Arial, Verdana, Tahoma, sans-serif;}
 
 #main {margin:0 auto;width:920px;}
 
 /*Top*/
-#top {border-bottom:1px solid #C7C7C7;margin-bottom:20px;padding-bottom:20px;height:140px;}
+#top {border-bottom:1px solid #C7C7C7;color:#C7C7C7;margin-bottom:20px;padding-bottom:20px;height:140px;}
 #top img {float:left;}
 #top p {text-align:right;margin:15px 0 105px 0;}
 #top ul {float:right;}
@@ -24,7 +29,7 @@ body {background:white url(../images/bg/body.gif) repeat-x;color:#C7C7C7;font:12
 #banner {border-bottom:1px solid #C7C7C7;margin-bottom:20px;padding-bottom:20px;}
 
 /*Home*/
-#events {float:left;width:350px;margin-right:20px;}
+#events {float:left;width:350px;margin-right:20px;color:#C7C7C7;}
 #events li {border-bottom:1px solid #C7C7C7;margin-bottom:10px;list-style:none;height:40px;}
 #events li a {color:black;}
 #events li a:hover {color:#00CCCC;text-decoration:none;}
@@ -32,9 +37,46 @@ body {background:white url(../images/bg/body.gif) repeat-x;color:#C7C7C7;font:12
 #events li small {font-size:12px;float:left;width:100px;border-right:1px solid #C7C7C7;margin-right:10px;padding:10px 10px 0 0;height:20px;}
 #events li h3 {padding-top:8px;}
 
-#births {float:left;width:250px;margin-right:20px;}
+#births {float:left;width:250px;margin-right:20px;color:#C7C7C7;}
+#births li {margin-bottom:10px;list-style:none;height:90px;}
+#births li a:hover {text-decoration:none;}
+#births li a:hover img {border-color:#00CCCC;}
+#births li a:hover h3 {color:#00CCCC;}
+#births li a:hover small,
+#births li a:hover big {color:black;}
+#births li img {float:left;margin-right:10px;border:solid 3px white;}
+#births li h3 {color:black;font-size:14px;}
+#births li big, 
+#births li small {display:block;}
+#births li big {font-style:italic;color:#999;font-size:14px;}
+#births li small {color:#C7C7C7;font-size:14px;}
+
+#procedures {float:right;width:280px;color:#C7C7C7;}
+#procedures form {float:left;width:280px;margin-bottom:20px;}
+#procedures input {height:30px;width:197px;border:none;background-color:#C7C7C7;float:left;color:#999;font-size:13px;font-style:italic;padding-left:3px;}
+#procedures input.submit {height:30px;width:80px;border:none;background-color:#00CCCC;float:left;color:white;font-size:16px;}
+#procedures li {border-bottom:1px solid #C7C7C7;margin-bottom:10px;list-style:none;height:20px;font-weight:bold;}
+#procedures li a {color:black;}
+#procedures li a:hover {color:#00CCCC;text-decoration:none;}
+
+/*Events*/
+#events.full {float:left;width:920px;}
+#events.full li {border-bottom:1px solid #C7C7C7;margin-bottom:10px;list-style:none;height:130px;}
+#events.full li small {float:none;border:none;font-size:18px;margin:0;padding:0;}
+small.event {display:block;font-size:18px;color:#00CCCC;margin-bottom:15px;}
+#events.full li h3 {font-size:24px;margin-bottom:10px;}
 
-#procedures {float:right;width:280px;}
+/*Users*/
+#births.full {float:left;width:920px;}
+#births.full li {display:inline;}
+#births.full li a {display:block;padding:20px;float:left;width:260px;height:150px;background-color:#C7C7C7;margin:3px;}
+#births.full li.odd a {background-color:white;}
+#births.full li a:hover {background-color:black;color:white;}
+#births.full li a:hover small,
+#births.full li a:hover big {color:white;}
+#births.full li img {border-color:#C7C7C7;}
 
 /*Footer*/
-#footer {float:left;border-top:1px solid #C7C7C7;margin-top:20px;padding-top:20px;text-align:center;width:920px;}
\ No newline at end of file
+#footer,
+#navigation {float:left;border-top:1px solid #C7C7C7;margin-top:20px;padding:20px 0;text-align:center;width:920px;}
+#navigation {text-align:right;}</diff>
      <filename>public/stylesheets/default.css</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@
 #menu {font:14px &quot;Gill Sans&quot;,&quot;Trebuchet MS&quot;,Arial, Verdana, Tahoma, sans-serif;}
 #menu li {display:inline;list-style-type:none; margin:0 2px;background:#000;}
 /*#menu li.selected, #menu li.selected a {background:white; color:#000;}*/
-#menu a {color:#FFCC00;padding:5px 10px;border:solid 1px #666;}
-#menu li a {border-width: 0 1px 1px 1px;background:#000;display:block;}
-#menu a:hover{color:#FFF;}
+#menu a {color:white;padding:5px 10px;border:solid 1px white;}
+#menu li a {border-width:1px 1px 0 1px;background:#000;display:block;}
+#menu a:hover{color:#00CCCC;}
 #menu li ul li {*margin:-4px 0;}
\ No newline at end of file</diff>
      <filename>public/stylesheets/plugins/superfish.css</filename>
    </modified>
    <modified>
      <diff>@@ -14,6 +14,7 @@ Factory.define :user do |u|
   u.login Factory.next(:login)
   u.email Factory.next(:email)
   u.name 'User'
+  u.birthday &quot;1985-05-08&quot;
   u.password 'secret'
   u.password_confirmation 'secret'
   u.password_salt salt = Authlogic::Random.hex_token
@@ -26,6 +27,7 @@ Factory.define :quentin, :parent =&gt; :user do |u|
   u.email Factory.next(:email)
   u.name 'Quentin'
   u.password 'monkey'
+  u.birthday &quot;1985-05-08&quot;
   u.password_confirmation 'monkey'
   u.password_salt salt = Authlogic::Random.hex_token
   u.crypted_password Authlogic::CryptoProviders::Sha512.encrypt(&quot;monkey&quot; + salt)
@@ -35,6 +37,7 @@ Factory.define :admin, :parent =&gt; :user do |u|
   u.login Factory.next(:login)
   u.email Factory.next(:email)
   u.name 'Admin'
+  u.birthday &quot;1985-05-08&quot;
   u.password 'monkey'
   u.password_confirmation 'monkey'
   u.password_salt salt = Authlogic::Random.hex_token</diff>
      <filename>test/factories/users.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>4a6d95662c642db83cb59f04bad8f264c89b15fc</id>
    </parent>
  </parents>
  <author>
    <name>Philipe Casarotte</name>
    <email>phisoccer@globo.com</email>
  </author>
  <url>http://github.com/philipecasarotte/callis/commit/56ff5e8e3a2102d9e6de3b45c73ac0837e91861e</url>
  <id>56ff5e8e3a2102d9e6de3b45c73ac0837e91861e</id>
  <committed-date>2009-11-05T05:13:50-08:00</committed-date>
  <authored-date>2009-11-05T05:13:50-08:00</authored-date>
  <message>admin customization papaerlcip</message>
  <tree>b973013bcc79a77240513b5992341886cbed77bf</tree>
  <committer>
    <name>Philipe Casarotte</name>
    <email>phisoccer@globo.com</email>
  </committer>
</commit>
