- if @location
  - content_for :title, "Members near #{@location}"
- else content_for :title, "Find nearby members"

%p
  = form_tag(nearby_members_path, :method => :get, :class => 'form-inline') do
    = label_tag :distance, "Find members within", :class => 'control-label'
    = text_field_tag :distance, @distance, :class => 'input-mini'
    = select_tag :units, options_for_select({"miles" => :mi, "km" => :km}, @units), :width => "2em", :class => 'input-mini'
    = label_tag :location, "miles of", :class => 'control-label'
    = text_field_tag :location, @location
    = submit_tag "Search", :class => 'btn btn-primary'

- if can? :update, current_member
  %p
    = link_to "Edit your location", edit_member_registration_path(current_member)

- if !@nearby_members.empty?
  %h3 Results found
  %ul.thumbnails
    - @nearby_members.each do |member|
      %li.span2
        = render :partial => "members/thumbnail", :locals => { :member => member }
- elsif @location
  %h3 No results found

- if @location
  - content_for :title, "Members near #{@location}"
- else content_for :title, "Find nearby members"

%p
  = form_tag(nearby_members_path, :method => :get, :class => 'form-inline') do
    = label_tag :distance, "Find members within", :class => 'control-label'
    = text_field_tag :distance, @distance, :class => 'input-mini'
    = select_tag :units, options_for_select({"miles" => :mi, "km" => :km}, @units), :class => 'input-small'
    = label_tag :location, "miles of", :class => 'control-label'
    = text_field_tag :location, @location
    = submit_tag "Search", :class => 'btn btn-primary'

- if can? :update, current_member
  %p
    = link_to "Edit your location", edit_member_registration_path(current_member)

- if !@nearby_members.empty?
  %h3 Results found
  %ul.thumbnails
    - @nearby_members.each do |member|
      %li.span2
        = render :partial => "members/thumbnail", :locals => { :member => member }
- elsif @location
  %h3 No results found

Make units dropdown wide enough to contain "miles".
Make units dropdown wide enough to contain "miles".

It's now "miles" wide. Hehehe.
