1 <% if STATUS == :database_offline or STATUS == :api_offline %>
2 <p><%= t 'layouts.osm_offline' %>
4 <% elsif STATUS == :database_readonly or STATUS == :api_readonly %>
5 <p><%= t 'layouts.osm_read_only' %>
7 <% elsif !@user.data_public? %>
8 <p><%= t 'site.edit.not_public' %></p>
9 <p><%= t 'site.edit.not_public_description',
10 :user_page => (link_to t('site.edit.user_page_link'), {:controller => 'user', :action => 'account', :display_name => @user.display_name, :anchor => 'public'}) %></p>
11 <p><%= t 'site.edit.anon_edits', :link => link_to(t('site.edit.anon_edits_link_text'), t('site.edit.anon_edits_link')) %></p>
13 <% content_for :greeting do %>
14 <% if @user and !@user.home_lon.nil? and !@user.home_lat.nil? %>
15 <%= link_to_function t('layouts.home'), "setPosition(#{@user.home_lat}, #{@user.home_lon}, 10)", { :title => t('layouts.home_tooltip') } %> |
19 <%= render :partial => 'sidebar', :locals => { :onopen => "resizeMap();", :onclose => "resizeMap();" } %>
20 <%= render :partial => 'search' %>
21 <%= render :partial => 'resize' %>
23 <%= render :partial => preferred_editor %>
25 <script type="text/javascript">
26 function maximiseMap() {
27 $("left").style.display = "none";
28 $("greeting").style.display = "none";
29 $("tabnav").style.display = "none";
31 $("content").style.top = "10px";
32 <% if t('html.dir') == "ltr" -%>
33 $("content").style.left = "10px";
35 $("content").style.right = "10px";
41 function minimiseMap() {
42 $("left").style.display = "";
43 $("greeting").style.display = "";
44 $("tabnav").style.display = "";
46 $("content").style.top = "35px";
47 <% if t('html.dir') == "ltr" -%>
48 $("content").style.left = "192px";
50 $("content").style.right = "192px";
56 document.observe("dom:loaded", handleResize);
58 Event.observe(window, "resize", handleResize);