Skip to content

Commit

Permalink
Report page cosmetic
Browse files Browse the repository at this point in the history
  • Loading branch information
Hai Zheng committed Dec 19, 2024
1 parent 35908e3 commit 657f9a7
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions tpl/toolbox/report.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@
}

$install_link = Utility::build_url(Router::ACTION_ACTIVATION, Activation::TYPE_INSTALL_3RD, false, null, array('plugin' => 'dologin'));

$btn_title = __('Send to LiteSpeed', 'litespeed-cache');
if (!empty($env_ref['num'])) {
$btn_title = __('Regenerate and Send a New Report', 'litespeed-cache');
}
?>

<?php if (!$has_pswdless_plugin) : ?>
Expand All @@ -46,8 +51,8 @@
<?php Doc::learn_more('https://docs.litespeedtech.com/lscache/lscwp/toolbox/#report-tab'); ?>
</h3>

<p><?php echo __('Report number', 'litespeed-cache'); ?>: <b><?php echo !empty($env_ref['num']) ? $env_ref['num'] : '-'; ?></b></p>
<p><?php echo __('Report date', 'litespeed-cache'); ?>: <b><?php echo !empty($env_ref['dateline']) ? date('m/d/Y H:i:s', $env_ref['dateline']) : '-'; ?></b></p>
<p><?php echo __('Last Report number', 'litespeed-cache'); ?>: <b><?php echo !empty($env_ref['num']) ? $env_ref['num'] : '-'; ?></b></p>
<p><?php echo __('Last Report date', 'litespeed-cache'); ?>: <b><?php echo !empty($env_ref['dateline']) ? date('m/d/Y H:i:s', $env_ref['dateline']) : '-'; ?></b></p>

<p class="litespeed-desc">
<?php echo __('The environment report contains detailed information about the WordPress configuration.', 'litespeed-cache'); ?>
Expand Down Expand Up @@ -114,8 +119,8 @@
</table>

<div class='litespeed-top20'></div>
<button class="button button-primary" type="submit"><?php echo __('Send to LiteSpeed', 'litespeed-cache'); ?></button>
<button class="button button-primary litespeed-float-submit" type="submit"><?php echo __('Send to LiteSpeed', 'litespeed-cache'); ?></button>
<button class="button button-primary" type="submit"><?php echo $btn_title; ?></button>
<button class="button button-primary litespeed-float-submit" type="submit"><?php echo $btn_title; ?></button>

<p class="litespeed-top30 litespeed-left10 litespeed-desc">
<?php echo __('Send this report to LiteSpeed. Refer to this report number when posting in the WordPress support forum.', 'litespeed-cache'); ?>
Expand Down

0 comments on commit 657f9a7

Please sign in to comment.