You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by ru...@apache.org on 2017/05/20 00:47:28 UTC
[whimsy] branch master updated: add __self__ as an alias
This is an automated email from the ASF dual-hosted git repository.
rubys pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git
The following commit(s) were added to refs/heads/master by this push:
new 237d4fb add __self__ as an alias
237d4fb is described below
commit 237d4fb562496dd2c1d10e92eef8b1b27b08778c
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Fri May 19 20:47:17 2017 -0400
add __self__ as an alias
---
www/roster/main.rb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/www/roster/main.rb b/www/roster/main.rb
index 6c89272..36eb84c 100755
--- a/www/roster/main.rb
+++ b/www/roster/main.rb
@@ -84,6 +84,11 @@ get '/committer/:name.json' do |name|
_json Committer.serialize(name, env)
end
+# make __self__ an alias for one's own page
+get '/committer/__self__' do
+ redirect to("committer/#{env.user}")
+end
+
get '/committer/:name' do |name|
@auth = Auth.info(env)
@committer = Committer.serialize(name, env)
@@ -195,4 +200,4 @@ end
not_found do
@errors = env
_html :errors
-end
\ No newline at end of file
+end
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].