From 78e6578daaa8171c86c67d1046095fcaa1f6e919 Mon Sep 17 00:00:00 2001 From: Richard Fairhurst Date: Sat, 27 Oct 2007 21:47:59 +0000 Subject: [PATCH] Preparation for anon edit change --- app/views/site/edit.rhtml | 11 +++++++++++ app/views/user/account.rhtml | 4 ++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/app/views/site/edit.rhtml b/app/views/site/edit.rhtml index ceb4702d4..8ff98a3b1 100644 --- a/app/views/site/edit.rhtml +++ b/app/views/site/edit.rhtml @@ -90,5 +90,16 @@ window.onresize = handleResize; window.onload = handleResize; + + +<% unless @user.data_public? %> + var warningtext ="

You haven't set your edits to be public.

From mid-November, you will no longer be able to use the online editor unless you do so. You can set your edits as public from your "; + var warningtext=warningtext+'<%= link_to 'user page', {:controller => 'user', :action => 'account', :display_name => @user.display_name}%>.

'; + var warningtext=warningtext+'

(Find out why this is changing.)

'; + updateSidebar("Warning",warningtext); + openSidebar(); +<% end %> + + <% end %> diff --git a/app/views/user/account.rhtml b/app/views/user/account.rhtml index f405e0b3c..53c355316 100644 --- a/app/views/user/account.rhtml +++ b/app/views/user/account.rhtml @@ -103,11 +103,11 @@ // --> -

Privacy

+

Public editing

<% if @user.data_public? %> All your edits are public. <% else %> - Currently your edits are anonymous and people can't find out where you are located. To show what you edited and allow people to contact you through the website, click the button below. This action cannot be reversed. + Currently your edits are anonymous and people can't send you messages or see your location. To show what you edited and allow people to contact you through the website, click the button below. You will need to do this if you want to use the online editor after mid-November (find out why). This action cannot be reversed.

<%= button_to "Make all my edits public, forever", :action => :go_public %> <% end %> -- 2.43.2