From ad6bbd511df682a572c140a3212a13d6badf9668 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 2 Oct 2013 11:14:31 -0700 Subject: [PATCH] Restore "Where am I?" --- app/assets/stylesheets/common.css.scss | 9 +++++++++ app/views/layouts/map.html.erb | 3 +++ config/locales/en.yml | 2 ++ 3 files changed, 14 insertions(+) diff --git a/app/assets/stylesheets/common.css.scss b/app/assets/stylesheets/common.css.scss index 1fd2733bb..35a5ced5f 100644 --- a/app/assets/stylesheets/common.css.scss +++ b/app/assets/stylesheets/common.css.scss @@ -241,6 +241,7 @@ table { border-bottom: $keyline; #query_wrapper { + position: relative; overflow: hidden; } @@ -266,6 +267,14 @@ table { min-width: 0; border-radius: 0 2px 2px 0; } + + #describe_location { + position: absolute; + top: 6px; + right: 6px; + font-size: 10px; + color: $blue; + } } /* Utility for de-emphasizing content */ diff --git a/app/views/layouts/map.html.erb b/app/views/layouts/map.html.erb index 09c7d0d8e..55953f004 100644 --- a/app/views/layouts/map.html.erb +++ b/app/views/layouts/map.html.erb @@ -10,6 +10,9 @@ <%= text_field_tag :query, params[:query], :placeholder => t('site.search.search'), :autofocus => "autofocus" %> + <%= link_to t('site.search.where_am_i'), + { :controller => :geocoder, :action => :description }, + { :id => "describe_location", :title => t('site.search.where_am_i_title') } %> <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index af3951edc..01139aa4d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1410,6 +1410,8 @@ en: close: Close search: search: Search + where_am_i: "Where am I?" + where_am_i_title: Describe the current location using the search engine submit_text: "Go" key: table: -- 2.43.2