Skip to content

Commit

Permalink
updated call me with time and added none found to search result
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Vudmaska committed Jul 12, 2009
1 parent 4a563d8 commit cef6bbc
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions app/views/callmes/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

%p
Enter your phone number in the box below. You will receive a call to confirm.
For the next week, if a pet is found in your zip code, a call will be made to you - telling you the pet details.
If your pet is described, you can send a message to the person who found it - anonymously.
For the next week, if a pet is found in your zip code, a call will be made to you at or around 5pm central time -
telling you the pet details. If your pet is described, you can send a message to the person who found it - anonymously.

%p
%b That is it, good luck!
Expand Down
2 changes: 2 additions & 0 deletions app/views/iphone/_pets.html.haml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
- if @pets.empty?
%li None found
- for pet in @pets
%li
- link_to "/iphone/pet/#{pet.id}", :class => pet.lost_or_found do
Expand Down
4 changes: 2 additions & 2 deletions app/views/iphone/search.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
- title "Search"
%ul{:id => @title, :title => @title, :selected => "true"}
- if @pets
= render :partial => 'pets'
%li
- form_for :search, :url => '/iphone/search' do |f|
= f.label :sex
Expand All @@ -12,5 +14,3 @@
= f.text_field :zip, :size => 5
%br/
= f.submit "Start Search"
- if @pets
= render :partial => 'pets'
2 changes: 1 addition & 1 deletion app/views/pets/search.html.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
-if @pets and !@pets.empty?
-if @pets
= render :partial => 'pets'

- @title = "Search"
Expand Down
2 changes: 1 addition & 1 deletion app/views/pets/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

%p
%strong Name:
=h @pet.name
=h @pet.no_name
%p
%strong Dog Or Cat:
=h @pet.dog_or_cat
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

.fieldset
%label Phone
= @user.phone
= @user.phone.to_phone

.fieldset
%label City
Expand Down

0 comments on commit cef6bbc

Please sign in to comment.