Adamw has uploaded a new change for review.
https://gerrit.wikimedia.org/r/56534
Change subject: maintenance notice as gateway form
......................................................................
maintenance notice as gateway form
Change-Id: Ie5d3167f42eda2af2e79137cda00cc68ef63ee4e
---
M gateway_common/interface.i18n.php
A gateway_forms/rapidhtml/html/maintenance.html
2 files changed, 24 insertions(+), 0 deletions(-)
git pull
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/DonationInterface
refs/changes/34/56534/1
diff --git a/gateway_common/interface.i18n.php
b/gateway_common/interface.i18n.php
index 9fb7357..f1684d4 100644
--- a/gateway_common/interface.i18n.php
+++ b/gateway_common/interface.i18n.php
@@ -36,6 +36,7 @@
'donate_interface-processing-error' => 'There has been an error
processing your request.
No processors are available.',
'donate_interface-fallback-currency-notice' => 'Your currency was
unsupported. Processing will take place using $1, if you decide to continue.',
+ 'donate_interface-maintenance-notice' => 'We apologize, but this type
of payment has been temporarily disabled.',
// Currency translations
'donate_interface-AED' => 'UAE dirham',
@@ -511,6 +512,8 @@
'donate_interface-processing-error' => 'Error message.',
'donate_interface-fallback-currency-notice' => "Notification that the
donor's currency has been changed. Parameters:
* $1 the currency code in which to continue the transaction.",
+ 'donate_interface-maintenance-notice' => 'Notification that this
service is temporarily disabled for maintenance.',
+
'donate_interface-AED' => 'Used in drop-down field for currency.',
'donate_interface-ARS' => 'Used in drop-down field for currency.',
'donate_interface-AUD' => 'Used in drop-down field for currency.',
diff --git a/gateway_forms/rapidhtml/html/maintenance.html
b/gateway_forms/rapidhtml/html/maintenance.html
new file mode 100644
index 0000000..7c4a787
--- /dev/null
+++ b/gateway_forms/rapidhtml/html/maintenance.html
@@ -0,0 +1,21 @@
+<style type="text/css">
+div.maintenance-box {
+ margin: auto;
+ width: 70%;
+ border: solid black 2px;
+ padding: 20px;
+}
+div.maintenance-box h2 {
+ color: red;
+}
+
+/* hide existing UI elements */
+.firstHeading {
+ display: none;
+}
+</style>
+
+<div class="maintenance-box">
+ <h2>%donate_interface-maintenance-notice%</h2>
+ <p>%donate_interface-otherways%</p>
+</div>
--
To view, visit https://gerrit.wikimedia.org/r/56534
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie5d3167f42eda2af2e79137cda00cc68ef63ee4e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/DonationInterface
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits