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/09/30 21:53:59 UTC
[whimsy] branch master updated: create a shepherd shortcut
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 bb933c6 create a shepherd shortcut
bb933c6 is described below
commit bb933c6eb738699a934c544a5d961ce2f0a25406
Author: Sam Ruby <ru...@intertwingly.net>
AuthorDate: Sat Sep 30 17:53:44 2017 -0400
create a shepherd shortcut
---
www/board/agenda/routes.rb | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/www/board/agenda/routes.rb b/www/board/agenda/routes.rb
index 19d1de3..a1fb5db 100755
--- a/www/board/agenda/routes.rb
+++ b/www/board/agenda/routes.rb
@@ -23,6 +23,14 @@ get '/' do
redirect "#{request.path}#{agenda[/\d+_\d+_\d+/].gsub('_', '-')}/"
end
+# redirect shepherd to latest agenda
+get '/shepherd' do
+ user=ASF::Person.find(env.user).public_name.split(' ').first
+ agenda = dir('board_agenda_*.txt').sort.last
+ redirect File.dirname(request.path) +
+ "/#{agenda[/\d+_\d+_\d+/].gsub('_', '-')}/shepherd/#{user}"
+end
+
# redirect missing to missing page for the latest agenda
get '/missing' do
agenda = dir('board_agenda_*.txt').sort.last
--
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <co...@whimsical.apache.org>'].