whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [whimsy] branch master updated: Move button to 1st column
Date Sat, 04 May 2019 15:53:34 GMT
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 c9e7556  Move button to 1st column
c9e7556 is described below

commit c9e7556a31633f98dceef0fc371a3128ced882dd
Author: Sebb <sebb@apache.org>
AuthorDate: Sat May 4 16:53:30 2019 +0100

    Move button to 1st column
---
 www/members/mentors.cgi | 23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

diff --git a/www/members/mentors.cgi b/www/members/mentors.cgi
index df48b78..f24d3aa 100755
--- a/www/members/mentors.cgi
+++ b/www/members/mentors.cgi
@@ -63,15 +63,26 @@ _html do
         _p do
           _ "If you are a newer Member looking for a mentor, please reach out directly to
available volunteers below that fit your interests by #{uimap['contact'][0]} and request mentoring.
 Not every mentoring pair may be the right fit, so you'll need to decide together if you're
a good pair."
           _ 'Remember, this is an informal program run by volunteers, so please be kind -
and patient!   Mentors currently listed as available for new mentees:'
-        end 
-        _ul.list_inline do
-          mentors.each do | apacheid, mentor |
-            _li do
-              _a apacheid, href: "##{apacheid}"
+        end
+        _table do
+          _tr do
+            _td do
+              _a.btn.btn_default.btn_sm (mentors.has_key?($USER) ? 'Edit Your Mentor Record'
: 'Volunteer To Mentor'), href: "/members/mentor-update.cgi", role: "button"
+            end
+            _td do
+              _{"&nbsp;"*2}
+            end
+            _td do
+              _ul.list_inline do
+                mentors.each do | apacheid, mentor |
+                  _li do
+                    _a apacheid, href: "##{apacheid}"
+                  end
+                end
+              end
             end
           end
         end
-        _a.btn.btn_default.btn_sm (mentors.has_key?($USER) ? 'Edit Your Mentor Record' :
'Volunteer To Mentor'), href: "/members/mentor-update.cgi", role: "button"
         _p.text_warning 'Reminder: All Mentoring data is private to the ASF; only ASF Members
can sign up here as Mentors or Mentees.'
       }
     ) do


Mime
View raw message