You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by se...@apache.org on 2017/09/11 20:06:43 UTC

[whimsy] branch master updated: Add sort to podlings list

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 5a4a81f  Add sort to podlings list
5a4a81f is described below

commit 5a4a81f3de0f476abf4ad3d7c668a8671ff02281
Author: Sebb <se...@apache.org>
AuthorDate: Mon Sep 11 21:06:06 2017 +0100

    Add sort to podlings list
---
 www/roster/views/ppmcs.html.rb | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

diff --git a/www/roster/views/ppmcs.html.rb b/www/roster/views/ppmcs.html.rb
index 5d811f3..1db9a8e 100644
--- a/www/roster/views/ppmcs.html.rb
+++ b/www/roster/views/ppmcs.html.rb
@@ -1,5 +1,5 @@
 #
-# List of committees
+# List of podlings
 #
 
 _html do
@@ -14,13 +14,14 @@ _html do
       }
     ) do
       _p 'A listing of all Podling Project Management Committees (PPMCs) from the Apache Incubator.'
+      _p 'Click on column names to sort.'
 
       _table.table.table_hover do
         _thead do
           _tr do
-            _th 'Name'
-            _th 'Established'
-            _th 'Description'
+            _th.sorting_asc 'Name', data_sort: 'string-ins'
+            _th 'Established', data_sort: 'string'
+            _th 'Description', data_sort: 'string'
           end
         end
 
@@ -38,15 +39,19 @@ _html do
             _td ppmc.startdate
 
             _td do
+              # using _p here messes up the sort
               if project_names.include? ppmc.name
-                _p ppmc.description
+                _ ppmc.description
               else
-                _p ppmc.description + " (not in ldap)"
+                _ ppmc.description + " (not in ldap)"
               end
             end
           end
         end
       end
     end
+    _script %{
+      $(".table").stupidtable();
+    }
   end
 end

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