afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-11-08 05:35 pm

[dw-free] Warning when deleting OpenIDs

[commit: http://hg.dwscoalition.org/dw-free/rev/72c16ffda155]

http://bugs.dwscoalition.org/show_bug.cgi?id=1998

Add warning for undeleted openid users.

Patch by [personal profile] yvi.

Files modified:
  • htdocs/accountstatus.bml
  • htdocs/accountstatus.bml.text
--------------------------------------------------------------------------------
diff -r 22ba34a608e6 -r 72c16ffda155 htdocs/accountstatus.bml
--- a/htdocs/accountstatus.bml	Sun Nov 08 17:12:07 2009 +0000
+++ b/htdocs/accountstatus.bml	Sun Nov 08 17:34:35 2009 +0000
@@ -166,6 +166,10 @@ body<=
 
     $ret .= "<?p $ML{'.journalstatus.about'} p?>\n";
 
+    # only show this text to not-deleted OpenID accounts
+    $ret .= "<?p $ML{'.delete.openid'} 'p?>"
+        if $u->is_identity && $u->statusvis ne "D";
+
     $ret .= LJ::run_hook("accountstatus_delete_text", $u);
 
     $ret .= "<div style='margin-left: 30px'>$ML{'.journalstatus.select.head'}\n";
diff -r 22ba34a608e6 -r 72c16ffda155 htdocs/accountstatus.bml.text
--- a/htdocs/accountstatus.bml.text	Sun Nov 08 17:12:07 2009 +0000
+++ b/htdocs/accountstatus.bml.text	Sun Nov 08 17:34:35 2009 +0000
@@ -1,6 +1,8 @@
 ;; -*- coding: utf-8 -*-
 .btn.status|notes=Submit button for form
 .btn.status=Change Status
+
+.delete.openid=If you wish to delete your OpenID account, please note that deleting it will mean you can no longer delete comments that were imported by other users and are associated with your OpenID account. Deleting your OpenID account will not prevent other users from importing comments you have left on journals under their control. Comments that you already deleted on this site might be reimported. More information on OpenID accounts can be found <a href=http://www.dreamwidth.org/support/faqbrowse?faqid=62>here</a>.
 
 .error.db=There has been a database error processing your request.
 
--------------------------------------------------------------------------------