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 download link; handle info not found
Date Sun, 04 Jun 2017 19:51:45 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  f3975e8   add download link; handle info not found
f3975e8 is described below

commit f3975e8cc79800b3df35aa68cd68833f240ef022
Author: Sam Ruby <rubys@intertwingly.net>
AuthorDate: Sun Jun 4 15:51:26 2017 -0400

    add download link; handle info not found
---
 www/roster/views/pmc/main.js.rb | 44 +++++++++++++++++++++++------------------
 1 file changed, 25 insertions(+), 19 deletions(-)

diff --git a/www/roster/views/pmc/main.js.rb b/www/roster/views/pmc/main.js.rb
index 004c1cf..4f578a0 100644
--- a/www/roster/views/pmc/main.js.rb
+++ b/www/roster/views/pmc/main.js.rb
@@ -117,25 +117,31 @@ class PMC < React
 
       info = @committee.project_info
 
-      if info.doap
-        _li {_a 'DOAP', href: info.doap}
-      end
-
-      if info['bug-database']
-        _li {_a 'Bug Database', href: info['bug-database']}
-      end
-
-      if info.repository and not info.repository.empty?
-        if info.repository.length == 1
-          _li {_a 'Repository', href: info.repository.first}
-        else
-          _li do
-            _span 'Repositories:'
-            _ul info.repository do |repository|
-              _li {_a repository, href: repository}
-            end
-          end
-        end
+      if info
+	if info.doap
+	  _li {_a 'DOAP', href: info.doap}
+	end
+
+	if info['download-page']
+	  _li {_a 'Download Page', href: info['download-page']}
+	end
+
+	if info['bug-database']
+	  _li {_a 'Bug Database', href: info['bug-database']}
+	end
+
+	if info.repository and not info.repository.empty?
+	  if info.repository.length == 1
+	    _li {_a 'Repository', href: info.repository.first}
+	  else
+	    _li do
+	      _span 'Repositories:'
+	      _ul info.repository do |repository|
+		_li {_a repository, href: repository}
+	      end
+	    end
+	  end
+	end
       end
     end
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Mime
View raw message