This is an automated email from the ASF dual-hosted git repository.

clr 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 e13fe85b Update parts.js.rb (#165)
e13fe85b is described below

commit e13fe85b3eb67f76bce912dab70e949b370710d7
Author: Craig L Russell <apache....@gmail.com>
AuthorDate: Fri Jun 10 10:18:53 2022 -0700

    Update parts.js.rb (#165)
    
    * Update parts.js.rb
    
    Add unsigned document and script font to document reject menu
    
    * Update parts.js.rb
    
    Fix typo; change key validation failed to signature validation failed
---
 www/secretary/workbench/views/parts.js.rb | 20 +++++++++++++++++++-
 1 file changed, 19 insertions(+), 1 deletion(-)

diff --git a/www/secretary/workbench/views/parts.js.rb 
b/www/secretary/workbench/views/parts.js.rb
index 42efe0f3..4de0a741 100644
--- a/www/secretary/workbench/views/parts.js.rb
+++ b/www/secretary/workbench/views/parts.js.rb
@@ -23,6 +23,8 @@ class Parts < Vue
     @wrong_identity = false
     @validation_failed = false
     @signature_not_armored = false
+    @unsigned = false
+    @script_font = false
   end
 
   ########################################################################
@@ -196,6 +198,8 @@ class Parts < Vue
             _input type: 'hidden', name: 'wrong_identity', value: 
@wrong_identity
             _input type: 'hidden', name: 'validation_failed', value: 
@validation_failed
             _input type: 'hidden', name: 'signature_not_armored', value: 
@signature_not_armored
+            _input type: 'hidden', name: 'unsigned', value: @unsigned
+            _input type: 'hidden', name: 'script_font', value: @script_font
 
             # Defer processing (must be part of POST block)
 
@@ -294,7 +298,7 @@ class Parts < Vue
                 _label do
                   _input type: 'checkbox', checked: @validation_failed,
                   onClick: -> {@validation_failed = !@validation_failed}
-                  _span ' gpg key validation failed'
+                  _span ' gpg signature validation failed'
                 end
               end
               _li do
@@ -304,6 +308,20 @@ class Parts < Vue
                   _span ' gpg signature not armored'
                 end
               end
+              _li do
+                _label do
+                  _input type: 'checkbox', checked: @unsigned,
+                  onClick: -> {@unsigned = !@unsigned}
+                  _span ' the document appears to be unsigned'
+                end
+              end
+              _li do
+                _label do
+                  _input type: 'checkbox', checked: @script_font,
+                  onClick: -> {@script_font = !@script_font}
+                  _span ' a name typed in a script font is not a signature'
+                end
+              end
             end
 
             _label do

Reply via email to