summaryrefslogtreecommitdiff
path: root/users/app/views
diff options
context:
space:
mode:
authorjessib <jessib@leap.se>2013-01-22 15:09:54 -0800
committerjessib <jessib@leap.se>2013-01-22 15:09:54 -0800
commitefe76ee1d9badbad12b0cc42affb7b3d0572797c (patch)
treea23e6fa80fcd530eefa367cef75b76dacfd392c4 /users/app/views
parent40edf176142bd6092f13bd9f9fb72a2c69d4b052 (diff)
Rough way to allow user to paste in their key, but certainly we will want different display.
Diffstat (limited to 'users/app/views')
-rw-r--r--users/app/views/users/_public_key_field.html.haml1
-rw-r--r--users/app/views/users/edit.html.haml1
2 files changed, 2 insertions, 0 deletions
diff --git a/users/app/views/users/_public_key_field.html.haml b/users/app/views/users/_public_key_field.html.haml
new file mode 100644
index 0000000..af88cbd
--- /dev/null
+++ b/users/app/views/users/_public_key_field.html.haml
@@ -0,0 +1 @@
+= f.input :public_key, :as => :text, :hint => t(:use_ascii_key), :input_html => {:class => "span5", :rows => 20} # will want to tweak this to be wide enough (maybe smaller text?)
diff --git a/users/app/views/users/edit.html.haml b/users/app/views/users/edit.html.haml
index 03088d8..d1c19ee 100644
--- a/users/app/views/users/edit.html.haml
+++ b/users/app/views/users/edit.html.haml
@@ -8,6 +8,7 @@
%legend=t :email_address
Your email address is
= render user.email_address, :as => :span
+ = user_form_with 'public_key_field', :legend => :public_key
= user_form_with 'email_forward_field', :legend => :forward_email
= user_form_with 'email_aliases', :legend => :add_email_alias
= render 'tabs/tabs', :tabs => [:account, :email]