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 33bfab4  Allow display of form name with no link
33bfab4 is described below

commit 33bfab428a49ad5b8fa5cc4d3fbd037cc90993ce
Author: Sebb <[email protected]>
AuthorDate: Thu May 10 21:50:21 2018 +0100

    Allow display of form name with no link
---
 www/roster/views/person/forms.js.rb | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/www/roster/views/person/forms.js.rb 
b/www/roster/views/person/forms.js.rb
index be7702a..2a14b6a 100644
--- a/www/roster/views/person/forms.js.rb
+++ b/www/roster/views/person/forms.js.rb
@@ -17,12 +17,20 @@ class PersonForms < Vue
             
             if form == 'icla'
               _li do
-                _a 'ICLA', href: "#{documents}/iclas/#{link}"
+                if link == '' # has ICLA bu no karma to view it
+                  _ 'ICLA'
+                else
+                  _a 'ICLA', href: "#{documents}/iclas/#{link}"
+                end
               end
             elsif form == 'member'
               _li do
-                _a 'Membership App', 
-                  href: "#{documents}/member_apps/#{link}"
+                if link == '' # has form but no karma to view it
+                  _ 'Membership App'
+                else
+                  _a 'Membership App',
+                    href: "#{documents}/member_apps/#{link}"
+                end
               end
             else
               _li "#{form}: #{link}"

-- 
To stop receiving notification emails like this one, please contact
[email protected].

Reply via email to