From 4c96e12a317c513a2cf9fd18c9149aea58fee164 Mon Sep 17 00:00:00 2001
From: maxwell <maxwell@joindiaspora.com>
Date: Fri, 26 Nov 2010 09:56:30 -0800
Subject: [PATCH] removing the form for user creation thru signup

---
 app/views/invitations/edit.html.haml | 28 +++++++++++++++-------------
 config/locales/diaspora/en.yml       |  1 +
 2 files changed, 16 insertions(+), 13 deletions(-)

diff --git a/app/views/invitations/edit.html.haml b/app/views/invitations/edit.html.haml
index 1eac967f66..1f9c01d40e 100644
--- a/app/views/invitations/edit.html.haml
+++ b/app/views/invitations/edit.html.haml
@@ -1,14 +1,16 @@
-= form_for(resource, :as => resource_name, :url => invitation_path(resource_name), :html => {:method => :put }) do |f|
-  %p
-    = f.label :username
-    = f.text_field :username
-  %p
-    = f.label :password
-    = f.password_field :password
-  %p
-    = f.label :password_confirmation
-    = f.password_field :password_confirmation
+%h1= t('.invitations_closed')
 
-    = f.hidden_field :invitation_token
-  = f.submit t('.sign_up')
-= render :partial => "devise/shared/links"
+-#= form_for(resource, :as => resource_name, :url => invitation_path(resource_name), :html => {:method => :put }) do |f|
+  -#%p
+    -#= f.label :username
+    -#= f.text_field :username
+  -#%p
+    -#= f.label :password
+    -#= f.password_field :password
+  -#%p
+    -#= f.label :password_confirmation
+    -#= f.password_field :password_confirmation
+
+    -#= f.hidden_field :invitation_token
+  -#= f.submit t('.sign_up')
+-#= render :partial => "devise/shared/links"
diff --git a/config/locales/diaspora/en.yml b/config/locales/diaspora/en.yml
index 6702dc9b5d..102f1bc424 100644
--- a/config/locales/diaspora/en.yml
+++ b/config/locales/diaspora/en.yml
@@ -284,6 +284,7 @@ en:
           not_found: "Invitation token not found"
       edit:
           sign_up: "sign_up"
+          invitations_closed: "Invitations for this Diaspora Pod are closed right now.  Don't worry, your invite will still work, please try again in about a week."
   status_messages:
       new_status_message:
           tell_me_something_good: "tell me something good"
-- 
GitLab