From 788146012ea2dfca98d0f7cbb460168c234e3d86 Mon Sep 17 00:00:00 2001 From: parthiv-m Date: Thu, 17 Oct 2024 21:56:27 -0400 Subject: [PATCH] Fix failing tests, update button icon and text according to feedback --- i18n/en.json | 1 + tpl/bootstrap.php | 2 +- tpl/bootstrap5.php | 2 +- tst/ViewTest.php | 3 +++ 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/i18n/en.json b/i18n/en.json index 64bc773f..1e4d07c6 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -26,6 +26,7 @@ "JavaScript is required for %s to work. Sorry for the inconvenience.": "JavaScript is required for %s to work. Sorry for the inconvenience.", "%s requires a modern browser to work.": "%s requires a modern browser to work.", "New": "New", + "Start over": "Start over", "Create": "Create", "Clone": "Clone", "Raw text": "Raw text", diff --git a/tpl/bootstrap.php b/tpl/bootstrap.php index c3c4cb19..b08cbdd9 100644 --- a/tpl/bootstrap.php +++ b/tpl/bootstrap.php @@ -497,7 +497,7 @@ endif; if ((bool)$ISDELETED): ?> diff --git a/tpl/bootstrap5.php b/tpl/bootstrap5.php index a1c2edcc..b34328c7 100644 --- a/tpl/bootstrap5.php +++ b/tpl/bootstrap5.php @@ -362,7 +362,7 @@ endif; if ((bool)$ISDELETED): ?> diff --git a/tst/ViewTest.php b/tst/ViewTest.php index 65b252de..26994579 100644 --- a/tst/ViewTest.php +++ b/tst/ViewTest.php @@ -10,6 +10,8 @@ class ViewTest extends TestCase private static $status = '!*#@?$+'; + private static $is_deleted = false; + private static $formatters = array( 'plaintext' => 'Plain Text', 'syntaxhighlighting' => 'Source Code', @@ -38,6 +40,7 @@ class ViewTest extends TestCase $page->assign('BASEPATH', ''); $page->assign('ERROR', self::$error); $page->assign('STATUS', self::$status); + $page->assign('ISDELETED', self::$is_deleted); $page->assign('VERSION', self::$version); $page->assign('DISCUSSION', true); $page->assign('OPENDISCUSSION', true);