whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ru...@apache.org
Subject [whimsy] branch master updated: add __self__ as an alias
Date Sat, 20 May 2017 00:47:28 GMT
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 <rubys@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" <commits@whimsical.apache.org>'].

Mime
View raw message