From 7348d637ca1b4b5ad6bf840adb409eed7cc8d9ec Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Sat, 20 May 2023 22:49:00 +0200 Subject: Updated 14 files and added 2 files (automated) --- _edit/index.php | 97 +++++++++++++++++++++++++++++++++--------------- _edit/save/index.php | 51 ++++++++++++++++--------- _icons/_mdi/preview.svg | 1 + _icons/preview.svg | 1 + admin/approve/index.php | 5 +++ admin/reject/index.php | 5 +++ admin/requests/index.php | 10 ++++- includes/editor.php | 14 ++++++- includes/email.html | 2 +- includes/header.php | 5 +-- includes/navigation.php | 2 + lang/en.json | 15 +++++--- lang/fr.json | 9 +++-- logo.svg | 12 ++++-- request/index.php | 2 +- version | 2 +- 16 files changed, 165 insertions(+), 68 deletions(-) create mode 100644 _icons/_mdi/preview.svg create mode 100644 _icons/preview.svg diff --git a/_edit/index.php b/_edit/index.php index c2b72ff..330e8b3 100644 --- a/_edit/index.php +++ b/_edit/index.php @@ -45,20 +45,35 @@ if (isset($id)) { require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/header.php"; require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/navigation.php"; -if (!isset($_PROFILE["requests"][$id])): ?>


+ + + +

() - " class="btn btn-outline-primary btn-with-img = 2 ? "disabled" : "" ?>" data-bs-toggle="tooltip">= 2 ? "" : "?p" ?>" style="width: 24px;">/" class="btn btn-outline-dark btn-with-img" title="" data-bs-toggle="tooltip"> + " class="btn btn-outline-primary btn-with-img disabled" data-bs-toggle="tooltip">" data-bs-toggle="tooltip">/" class="btn btn-outline-dark btn-with-img" title="" data-bs-toggle="tooltip">

+ +
+

+ + +
+ +

= 2): ?> @@ -66,12 +81,26 @@ if (!isset($_PROFILE["requests"][$id])):
- +
+ \ No newline at end of file diff --git a/_edit/save/index.php b/_edit/save/index.php index 3e16871..9216535 100644 --- a/_edit/save/index.php +++ b/_edit/save/index.php @@ -20,17 +20,16 @@ if (isset($id)) { die(); } -if (isset($_PROFILE["requests"][$id])) { - header("Location: /edit/" . $id); - die(); -} - if (isset($_POST["contents"])) { $_POST["contents"] = str_replace("https://delta-staging.equestria.dev/", "/", str_replace("https://delta.equestria.dev/", "/", str_replace("https://" . $_SERVER['HTTP_HOST'] . "/", "/", str_replace("http://" . $_SERVER['HTTP_HOST'] . "/", "/", str_replace(" -
- \ No newline at end of file +
\ No newline at end of file diff --git a/includes/navigation.php b/includes/navigation.php index 186f779..34fc557 100644 --- a/includes/navigation.php +++ b/includes/navigation.php @@ -346,4 +346,6 @@ } + +
\ No newline at end of file diff --git a/lang/en.json b/lang/en.json index 8cdf6f9..91235bd 100644 --- a/lang/en.json +++ b/lang/en.json @@ -201,16 +201,17 @@ "save": "Publish change request", "confirm": { "title": "Publish this change request", - "description": "Do you want to publish your changes to be reviewed by the administrators? After you have published your request, you won't be able to make any more changes to the document.", + "description": "Do you want to publish your changes to be reviewed by the administrators? After you have published your request, you will be able to make more changes to the document.", "summary": "Describe changes you made to this document:", "followup": "You will receive an alert when your change is approved or rejected.", "button": "Publish" }, "alert": { "title": "You have a pending change request for this content", - "message": "You have published a change request for this content %1. You need to wait for that change request to be reviewed by the administrators before you can publish another change request.", - "contents": "Below is the contents of your change request." - } + "message": "You have published a change request for this content %1. You can continue changing it until the administrators have reviewed it.", + "message2": "You have published a change request for this content %1. You need to wait for that change request to be reviewed by the administrators before you can publish another change request." + }, + "preview": "Changes preview" }, "request": { "title": "Create a change request", @@ -1065,7 +1066,11 @@ "manual": "Manual changes required", "notify": "Author will be notified of the decision taken" }, - "search": "Search objects in the Delta database..." + "search": "Search objects in the Delta database...", + "modified": { + "title": "Unable to change this request:", + "description": "You cannot change this request as it was modified while you were reviewing it. Please review the request again." + } }, "oobe": { "next": "Next", diff --git a/lang/fr.json b/lang/fr.json index a2a1376..636b09f 100644 --- a/lang/fr.json +++ b/lang/fr.json @@ -201,16 +201,17 @@ "save": "Publier la demande", "confirm": { "title": "Publier cette demande de changement", - "description": "Voulez-vous publier vos changements pour être relus par les administrateur·ice·s ? Après avoir publié votre demande, vous ne pourrez plus apporter d'autres changements à ce document.", + "description": "Voulez-vous publier vos changements pour être relus par les administrateur·ice·s ? Après avoir publié votre demande, vous pourrez apporter d'autres changements à ce document.", "summary": "Décrivez les changements que vous avez apporté :", "followup": "Vous recevrez une alerte lorsque votre changement est approuvé ou rejeté.", "button": "Publier" }, "alert": { "title": "Vous avez une demande de changement pour ce contenu", - "message": "Vous avez publié une demande de changement pour ce contenu %1. Vous devez attendre que cette demande soit relue par les administrateur·ice·s avant de pouvoir en publier une nouvelle.", - "contents": "Ci-dessous est le contenu de votre demande." - } + "message": "Vous avez publié une demande de changement pour ce contenu %1. Vous pouvez continuer de la modifier jusqu'à ce que les administrateur·ice·s l'ait relue.", + "message2": "Vous avez publié une demande de changement pour ce contenu %1. Vous devez attendre que cette demande soit relue par les administrateur·ice·s avant de pouvoir en publier une nouvelle." + }, + "preview": "Prévisualisation" }, "request": { "title": "Créer une demande de changement", diff --git a/logo.svg b/logo.svg index 1019d73..bec5ce9 100644 --- a/logo.svg +++ b/logo.svg @@ -1,15 +1,19 @@ - + - + - + + + diff --git a/request/index.php b/request/index.php index 6d8a3b5..087578e 100644 --- a/request/index.php +++ b/request/index.php @@ -58,7 +58,7 @@ if (!isset($_PROFILE["requests"]["r:" . $_GET['id']])): $request = json_decode(pf_utf8_decode(file_get_contents($_SERVER['DOCUMENT_ROOT'] . "/includes/data/requests/" . $_PROFILE["requests"]["r:" . $_GET['id']] . ".json")), true); ?> -

+

diff --git a/version b/version index 46584a8..83c6fcf 100644 --- a/version +++ b/version @@ -1 +1 @@ -5.12.0-rc1 \ No newline at end of file +5.1.12-rc1 \ No newline at end of file -- cgit