You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Modal donation buttons with a confirmation prompt
* Increase security on referrer and opener for payment processors. If it doesn't work then you won't be returned. Current PP policy is to handle the "callback" *(similar to the auth strategies)* in the account. e.g. no need to let PP, and others know where you are coming from.
* Remove flag UI notice if not able to... this should be in line with comments so they don't accidently/purposely get turned on without establishing owner approval. Modal is still output because of a logic error in what comes first versus the view... probably in the controller as a post op outside of `modelParser`... omitting for now.
* Change text for PP as it may not be safe in other countries. Never liked the stock PP text in the first place.
* Rework some icons... form values can't accept static HTML so stripping it out and placing in modal titlebar
* Rework some mustache names from prior PR. Easier to distinguish/search from a human perspective e.g. code readability
Applies to OpenUserJS#1538OpenUserJS#1537 ... loosely related to OpenUserJS#1385
<inputtype="submit" value="Donate" class="btn btn-donate" title="Donations for the site are greatly appreciated via PayPal - A safer, easier, way to donate online.">
<h4class="modal-title"><iclass="fa fa-fw fa-money"></i> Donate for {{script.fullName}}</h4>
29
+
</div>
30
+
<divclass="modal-body">
31
+
<p>Are you sure you want to go to an external site to donate a monetary value?</p>
32
+
<divclass="alert alert-warning" role="alert">
33
+
<iclass="fa fa-fw fa-exclamation-triangle"></i> WARNING: Some countries laws may supersede the payment processors policy such as the GDPR and PayPal. While it is highly appreciated to donate, please check with your countries privacy and identity laws regarding privacy of information first. Use at your utmost discretion.
<h4class="modal-title"><iclass="fa fa-fw fa-money"></i> Donate for the site OpenUserJS</h4>
7
+
</div>
8
+
<divclass="modal-body">
9
+
<p>Are you sure you want to go to an external site to donate a monetary value?</p>
10
+
<divclass="alert alert-warning" role="alert">
11
+
<iclass="fa fa-fw fa-exclamation-triangle"></i> WARNING: Some countries laws may supersede the payment processors policy such as the GDPR and PayPal. While it is highly appreciated to donate, please check with your countries privacy and identity laws regarding privacy of information first. Use at your utmost discretion.
<arel="external nofollow" referrerpolicy="strict-origin" href="{{{url}}}" class="btn btn-donate" title="External web payment processor URL for monetary donations to this Author">
63
+
<arel="external noreferrer noopener nofollow" referrerpolicy="same-origin" href="#" data-toggle="modal" data-target="#donateScriptModal" class="btn btn-donate" title="Monetary donations for this Author">
Copy file name to clipboardExpand all lines: views/pages/scriptIssuePage.html
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -55,23 +55,24 @@
55
55
</div>
56
56
<divclass="container-fluid col-sm-4">
57
57
{{> includes/searchBarPanel.html }}
58
-
{{#script.hasContribution}}
58
+
{{#script.canDonate}}
59
59
{{#script.contribution}}
60
60
<divclass="panel">
61
61
<divclass="panel-body">
62
62
<divclass="btn-group btn-group-justified">
63
-
<arel="external nofollow" referrerpolicy="strict-origin" href="{{{url}}}" class="btn btn-donate" title="External web payment processor URL for monetary donations to this Author">
63
+
<arel="external noreferrer noopener nofollow" referrerpolicy="same-origin" href="#" data-toggle="modal" data-target="#donateScriptModal" class="btn btn-donate" title="Monetary donations for this Author">
0 commit comments