summaryrefslogtreecommitdiff
path: root/users/app
diff options
context:
space:
mode:
authorjessib <jessib@riseup.net>2013-11-18 16:18:33 -0800
committerjessib <jessib@riseup.net>2013-11-18 16:18:33 -0800
commitf1bc68c73e7183a0ad30c6aefc6cc4cbbf1bc1f0 (patch)
tree19d7bf82690a88d15c78289a9371d1cfee5e8ba6 /users/app
parentd2eaffde87286c0cc9c0658503a60706759f7f51 (diff)
Need to cleanup some, but start to show public key for /key/username
Diffstat (limited to 'users/app')
-rw-r--r--users/app/controllers/users_controller.rb6
-rw-r--r--users/app/views/users/get_public_key.html.haml2
2 files changed, 8 insertions, 0 deletions
diff --git a/users/app/controllers/users_controller.rb b/users/app/controllers/users_controller.rb
index 3cbb6dc..3f4daeb 100644
--- a/users/app/controllers/users_controller.rb
+++ b/users/app/controllers/users_controller.rb
@@ -59,4 +59,10 @@ class UsersController < UsersBaseController
end
end
+ def get_public_key
+ @show_navigation = false
+ user = User.find_by_login(params[:login])
+ @public_key = user.public_key if user
+ end
+
end
diff --git a/users/app/views/users/get_public_key.html.haml b/users/app/views/users/get_public_key.html.haml
new file mode 100644
index 0000000..eccb367
--- /dev/null
+++ b/users/app/views/users/get_public_key.html.haml
@@ -0,0 +1,2 @@
+- if @public_key
+ = @public_key \ No newline at end of file