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 f31d0a77 Add chair to heading
f31d0a77 is described below

commit f31d0a778ff53c71c27bd2d2af506b2d3ce3e45e
Author: Sebb <[email protected]>
AuthorDate: Thu Jul 18 11:42:27 2024 +0100

    Add chair to heading
---
 www/roster/models/committee.rb  | 1 +
 www/roster/views/pmc/main.js.rb | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/www/roster/models/committee.rb b/www/roster/models/committee.rb
index 7866779f..50fc4b20 100644
--- a/www/roster/models/committee.rb
+++ b/www/roster/models/committee.rb
@@ -184,6 +184,7 @@ class Committee
     ret = {
       id: id,
       chair: pmc.chair&.id,
+      chairname: pmc.chair.public_name,
       pmc_chair: pmc_chair,
       display_name: pmc.display_name,
       description: pmc.description,
diff --git a/www/roster/views/pmc/main.js.rb b/www/roster/views/pmc/main.js.rb
index c5b77d58..28a81404 100644
--- a/www/roster/views/pmc/main.js.rb
+++ b/www/roster/views/pmc/main.js.rb
@@ -38,6 +38,10 @@ class PMC < Vue
     _h1 do
       _a @committee.display_name, href: @committee.site
       _small " established #{@committee.established}" if @committee.established
+      _small do
+        _' Chair: '
+        _a @@committee.chairname, href: "committer/#{@@committee.chair}"
+      end
       if @committee.image
         _img src: "https://apache.org/logos/res/#{@committee.id}/default.png";
       end

Reply via email to