Use the small PanZoom control on the user map instead of the
full PanZoomBar control.
This commit is contained in:
parent
dcbc807526
commit
ed0375ec89
3 changed files with 12 additions and 2 deletions
|
@ -85,7 +85,7 @@
|
|||
<td></td>
|
||||
<td>
|
||||
<p><%= t 'user.account.update home location on click' %> <input type="checkbox" value="1" <% unless @user.home_lat and @user.home_lon %> checked="checked" <% end %> id="updatehome" /> </p>
|
||||
<div id="map" style="border:1px solid black; position:relative; width:500px; height:400px;"></div>
|
||||
<div id="map" class="user_map" style="border:1px solid black; position:relative; width:500px; height:400px;"></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
<div id="description"><%= htmlize(@this_user.description) %></div>
|
||||
|
||||
<% if @user and @this_user.id == @user.id %>
|
||||
<div id="map" style="border: 1px solid black; position: relative; width: 400px; height: 400px; float: right;">
|
||||
<div id="map" class="user_map" style="border: 1px solid black; position: relative; width: 400px; height: 400px; float: right;">
|
||||
<% if @this_user.home_lat.nil? or @this_user.home_lon.nil? %>
|
||||
<p style="position: absolute; top: 0; bottom: 0; width: 90%; height: 30%; margin: auto 5%">
|
||||
<%= 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) %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue