whimsical-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From curc...@apache.org
Subject [whimsy] branch mail_ldap_notification updated: Testing ideas
Date Sat, 08 Jun 2019 13:13:48 GMT
This is an automated email from the ASF dual-hosted git repository.

curcuru pushed a commit to branch mail_ldap_notification
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/mail_ldap_notification by this push:
     new b07e770  Testing ideas
b07e770 is described below

commit b07e770c945133d28326ece12ab9ffa4b17dd1f9
Author: Shane Curcuru <asf@shanecurcuru.org>
AuthorDate: Sat Jun 8 09:13:39 2019 -0400

    Testing ideas
---
 www/roster/models.rb              |  2 ++
 www/roster/views/debugger.html.rb |  2 --
 www/roster/views/debugger.js.rb   | 52 ++++++++++++++++++---------------------
 3 files changed, 26 insertions(+), 30 deletions(-)

diff --git a/www/roster/models.rb b/www/roster/models.rb
index cfc6e9d..c610c0a 100644
--- a/www/roster/models.rb
+++ b/www/roster/models.rb
@@ -11,3 +11,5 @@ require_relative 'models/ldap'
 require_relative 'models/svn'
 
 require_relative 'models/mailer'
+require_relative 'models/debugger'
+
diff --git a/www/roster/views/debugger.html.rb b/www/roster/views/debugger.html.rb
index 6575719..43cc985 100644
--- a/www/roster/views/debugger.html.rb
+++ b/www/roster/views/debugger.html.rb
@@ -12,9 +12,7 @@ _html do
         test: '/test.cgi'
       }
     ) do
-      _h3 "Before debugger"
       _div_.main!
-      _h3 "After debugger!"
     end
 
     _script src: "app.js?#{appmtime}"
diff --git a/www/roster/views/debugger.js.rb b/www/roster/views/debugger.js.rb
index 8f07c4d..36c9a2c 100644
--- a/www/roster/views/debugger.js.rb
+++ b/www/roster/views/debugger.js.rb
@@ -4,6 +4,7 @@
 class Debugger < Vue
   def initialize
     @committer = {}
+    @auth = {}
   end
 
   def render
@@ -26,9 +27,6 @@ class Debugger < Vue
       end
     end
   end
-  
-  def created
-  end
 
 end
 
@@ -40,36 +38,34 @@ class DebugLDAP < Vue
   end
 
   def render
-    def render
-      _div.modal.fade id: $options.add_tag, tabindex: -1 do
-        _div.modal_dialog do
-          _div.modal_content do
-            _div.modal_header.bg_info do
-              _button.close 'x', data_dismiss: 'modal'
-              _h4.modal_title 'Do a debug LDAP Lookup'
-            end
-            _div.modal_body do
-              _div.container_fluid do
-                _div.form_group do
-                  _label.control_label.col_sm_3 'Search LDAP for', for:  'search-text'
-                  _div.col_sm_9 do
-                    _div.input_group do
-                      _input.form_control autofocus: true, value: @search, 
-                        onInput: self.change
-                      _span.input_group_addon do
-                        _span.glyphicon.glyphicon_user aria_label: "LDAP search query"
-                      end
+    _div.modal.fade id: $options.add_tag, tabindex: -1 do
+      _div.modal_dialog do
+        _div.modal_content do
+          _div.modal_header.bg_info do
+            _button.close 'x', data_dismiss: 'modal'
+            _h4.modal_title 'Do a debug LDAP Lookup'
+          end
+          _div.modal_body do
+            _div.container_fluid do
+              _div.form_group do
+                _label.control_label.col_sm_3 'Search LDAP for', for:  'search-text'
+                _div.col_sm_9 do
+                  _div.input_group do
+                    _input.form_control autofocus: true, value: @search, 
+                      onInput: self.change
+                    _span.input_group_addon do
+                      _span.glyphicon.glyphicon_user aria_label: "LDAP search query"
                     end
                   end
                 end
               end
             end
-            _div.modal_footer do
-              _button.btn.btn_default 'Cancel', data_dismiss: 'modal'
-              _button.btn.btn_primary "Search LDAP", 
-                data_action: 'search ldap',
-                onClick: self.post, disabled: (@search.empty?)
-            end
+          end
+          _div.modal_footer do
+            _button.btn.btn_default 'Cancel', data_dismiss: 'modal'
+            _button.btn.btn_primary "Search LDAP", 
+              data_action: 'search ldap',
+              onClick: self.post, disabled: (@search.empty?)
           end
         end
       end


Mime
View raw message