From ed0375ec89862574e642070b01fe16e90f058538 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 11 Mar 2010 18:29:35 +0000 Subject: [PATCH 1/1] Use the small PanZoom control on the user map instead of the full PanZoomBar control. --- app/views/user/account.html.erb | 2 +- app/views/user/view.html.erb | 2 +- public/stylesheets/common.css | 10 ++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/views/user/account.html.erb b/app/views/user/account.html.erb index 66c303bb6..13e8a7564 100644 --- a/app/views/user/account.html.erb +++ b/app/views/user/account.html.erb @@ -85,7 +85,7 @@

<%= t 'user.account.update home location on click' %> checked="checked" <% end %> id="updatehome" />

-
+
diff --git a/app/views/user/view.html.erb b/app/views/user/view.html.erb index 77ad06a8f..b333b5c67 100644 --- a/app/views/user/view.html.erb +++ b/app/views/user/view.html.erb @@ -87,7 +87,7 @@
<%= htmlize(@this_user.description) %>
<% if @user and @this_user.id == @user.id %> -
+
<% if @this_user.home_lat.nil? or @this_user.home_lon.nil? %>

<%= t 'user.view.if set location', :settings_link => (link_to t('user.view.settings_link_text'), :controller => 'user', :action => 'account', :display_name => @user.display_name) %> diff --git a/public/stylesheets/common.css b/public/stylesheets/common.css index c42495718..c28a3c02c 100644 --- a/public/stylesheets/common.css +++ b/public/stylesheets/common.css @@ -560,6 +560,16 @@ hr { display: inline !important; } +/* Rules for the user map */ + +.user_map .olControlPanZoomBar { + display: none; +} + +.user_map .olControlPanZoom { + display: block; +} + /* Rules for user popups on maps */ .user_popup p { -- 2.43.2