This is an automated email from the ASF dual-hosted git repository.

sebb 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 31d38a3  Get svn path from caller
31d38a3 is described below

commit 31d38a33fe675c52bb4df19fd45b0bd41d3853aa
Author: Sebb <[email protected]>
AuthorDate: Sat Jul 4 22:03:47 2020 +0100

    Get svn path from caller
---
 www/roster/views/committerSearch.js.rb | 4 ++--
 www/roster/views/committers.html.rb    | 4 +++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/www/roster/views/committerSearch.js.rb 
b/www/roster/views/committerSearch.js.rb
index 3fb2242..b23639a 100644
--- a/www/roster/views/committerSearch.js.rb
+++ b/www/roster/views/committerSearch.js.rb
@@ -137,8 +137,8 @@ class CommitterSearch < Vue
                     _td ''
                   end
                   if @@notinavail
-                    # Cannot use whimsy gem code here
-                    _td { _a person.claRef, href: 
"https://svn.apache.org/repos/private/documents/iclas/#{person.iclaFile}"; }
+                    # iclapath already ends in /
+                    _td { _a person.claRef, href: 
"#{@@iclapath}#{person.iclaFile}" }
                   end
                 end
               end
diff --git a/www/roster/views/committers.html.rb 
b/www/roster/views/committers.html.rb
index ddf49b9..399b76a 100644
--- a/www/roster/views/committers.html.rb
+++ b/www/roster/views/committers.html.rb
@@ -23,7 +23,9 @@ _html do
     _div_.main!
     _script src: "app.js?#{appmtime}"
     _.render '#main' do
-      _CommitterSearch notinavail: @notinavail
+      _CommitterSearch notinavail: @notinavail,
+                       # This ends with '/'
+                       iclapath: `ASF::SVN.svnpath!('iclas').inspect`
     end
   end
 end

Reply via email to