You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@whimsical.apache.org by cl...@apache.org on 2022/06/09 23:45:29 UTC

[whimsy] branch unsigned-document created (now 939729c7)

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

clr pushed a change to branch unsigned-document
in repository https://gitbox.apache.org/repos/asf/whimsy.git


      at 939729c7 Update parts.js.rb

This branch includes the following new commits:

     new 939729c7 Update parts.js.rb

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[whimsy] 01/01: Update parts.js.rb

Posted by cl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

clr pushed a commit to branch unsigned-document
in repository https://gitbox.apache.org/repos/asf/whimsy.git

commit 939729c7deab04a483c47ef488796a1bdd997c05
Author: Craig L Russell <ap...@gmail.com>
AuthorDate: Thu Jun 9 16:45:24 2022 -0700

    Update parts.js.rb
    
    Add unsigned document and script font to document reject menu
---
 www/secretary/workbench/views/parts.js.rb | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/www/secretary/workbench/views/parts.js.rb b/www/secretary/workbench/views/parts.js.rb
index 42efe0f3..ff4c9122 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)
 
@@ -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: -> {@cript_font = !@cript_font}
+                  _span ' a name typed in a script font is not a signature'
+                end
+              end
             end
 
             _label do