Skip to content
Browse files

Fixed Date bug and added footer_class helper.

  • Loading branch information...
1 parent 5b5e594 commit d1e93c1ac91ea48d6d0c17c79cfeddcaa52a8ed5 @mdb committed Apr 17, 2012
Showing with 10 additions and 1 deletion.
  1. +10 −1 app.rb
View
11 app.rb
@@ -5,6 +5,7 @@
require 'Haml'
require 'json'
require 'net/http'
+require 'date'
get '/' do
if params[:search1]
@@ -110,5 +111,13 @@ def format_date(string)
def capitalize(string)
return string.to_s.split(" ").each { |word| word.capitalize! }.join(" ")
- end
+ end
+
+ def footer_class(params)
+ if params && params[:search1]
+ return "has-search"
+ else
+ return "no-search"
+ end
+ end
end

0 comments on commit d1e93c1

Please sign in to comment.
Something went wrong with that request. Please try again.