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 35e13615 Show contents of unattached project groups
35e13615 is described below

commit 35e13615c463bd9807034bd9367a9931d940cf2c
Author: Sebb <[email protected]>
AuthorDate: Wed Oct 1 14:46:23 2025 +0100

    Show contents of unattached project groups
---
 www/roster/models/group.rb     | 7 +++++++
 www/roster/views/other.html.rb | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/www/roster/models/group.rb b/www/roster/models/group.rb
index 38ce78be..e54c883c 100644
--- a/www/roster/models/group.rb
+++ b/www/roster/models/group.rb
@@ -47,6 +47,13 @@ class Group
       group = ASF::Service.find(id)
     end
 
+    unless group.hasLDAP?
+      if itype == 'unattached_project' # special for unattached project groups
+        type = 'LDAP project'
+        group = ASF::Project.find(id)
+      end
+    end
+
     if group.hasLDAP?
       # LDAP group
 
diff --git a/www/roster/views/other.html.rb b/www/roster/views/other.html.rb
index 33012331..05f69f7b 100644
--- a/www/roster/views/other.html.rb
+++ b/www/roster/views/other.html.rb
@@ -44,7 +44,7 @@ _html do
       _tbody do
         @others.sort.each do |k,v|
           _tr do
-            _td k
+            _td {_a k, href: "group/#{k}?type=unattached_project"}
             _td v[:type]
             _td v[:date]
           end

Reply via email to