mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-04-26 10:19:12 -04:00
Fix failing tests, update button icon and text according to feedback
This commit is contained in:
parent
922971590e
commit
788146012e
@ -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.",
|
"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.",
|
"%s requires a modern browser to work.": "%s requires a modern browser to work.",
|
||||||
"New": "New",
|
"New": "New",
|
||||||
|
"Start over": "Start over",
|
||||||
"Create": "Create",
|
"Create": "Create",
|
||||||
"Clone": "Clone",
|
"Clone": "Clone",
|
||||||
"Raw text": "Raw text",
|
"Raw text": "Raw text",
|
||||||
|
@ -497,7 +497,7 @@ endif;
|
|||||||
if ((bool)$ISDELETED):
|
if ((bool)$ISDELETED):
|
||||||
?>
|
?>
|
||||||
<button type="button" class="btn btn-default pull-right" id="new-from-alert">
|
<button type="button" class="btn btn-default pull-right" id="new-from-alert">
|
||||||
<span class="glyphicon glyphicon-file"></span> <?php echo I18n::_('New'), PHP_EOL; ?>
|
<span class="glyphicon glyphicon-repeat"></span> <?php echo I18n::_('Start over'), PHP_EOL; ?>
|
||||||
</button>
|
</button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -362,7 +362,7 @@ endif;
|
|||||||
if ((bool)$ISDELETED):
|
if ((bool)$ISDELETED):
|
||||||
?>
|
?>
|
||||||
<button type="button" class="btn btn-secondary" id="new-from-alert">
|
<button type="button" class="btn btn-secondary" id="new-from-alert">
|
||||||
<svg width="16" height="16" fill="currentColor" aria-hidden="true"><use href="img/bootstrap-icons.svg#file-earmark" /></svg> <?php echo I18n::_('New'), PHP_EOL; ?>
|
<svg width="16" height="16" fill="currentColor" aria-hidden="true"><use href="img/bootstrap-icons.svg#repeat" /></svg> <?php echo I18n::_('Start over'), PHP_EOL; ?>
|
||||||
</button>
|
</button>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -10,6 +10,8 @@ class ViewTest extends TestCase
|
|||||||
|
|
||||||
private static $status = '!*#@?$+';
|
private static $status = '!*#@?$+';
|
||||||
|
|
||||||
|
private static $is_deleted = false;
|
||||||
|
|
||||||
private static $formatters = array(
|
private static $formatters = array(
|
||||||
'plaintext' => 'Plain Text',
|
'plaintext' => 'Plain Text',
|
||||||
'syntaxhighlighting' => 'Source Code',
|
'syntaxhighlighting' => 'Source Code',
|
||||||
@ -38,6 +40,7 @@ class ViewTest extends TestCase
|
|||||||
$page->assign('BASEPATH', '');
|
$page->assign('BASEPATH', '');
|
||||||
$page->assign('ERROR', self::$error);
|
$page->assign('ERROR', self::$error);
|
||||||
$page->assign('STATUS', self::$status);
|
$page->assign('STATUS', self::$status);
|
||||||
|
$page->assign('ISDELETED', self::$is_deleted);
|
||||||
$page->assign('VERSION', self::$version);
|
$page->assign('VERSION', self::$version);
|
||||||
$page->assign('DISCUSSION', true);
|
$page->assign('DISCUSSION', true);
|
||||||
$page->assign('OPENDISCUSSION', true);
|
$page->assign('OPENDISCUSSION', true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user