File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ class DashboardPanelNumber extends DashboardPanel
3131 return $this->view('panels/number', [
3232 'number' => $this->number,
3333 'detail' => $this->detail,
34- 'trend' => $this->data[' trend'] ?? null ,
34+ 'trend' => $this->trend,
3535 ]);
3636 }
3737
@@ -41,6 +41,7 @@ class DashboardPanelNumber extends DashboardPanel
4141 $this->locale = $this->data['locale'] ?? setlocale(LC_ALL, 0);
4242 $this->detail = $this->data['detail'] ?? '';
4343 $this->number = $this->data['number'] ?? null;
44+ $this->trend = $this->data['trend'] ?? null;
4445 if (is_int($this->number) || is_float($this->number)) {
4546 $this->number = $this->formatNumber($this->number);
4647 }
Original file line number Diff line number Diff line change 11<div class="DashboardPanelNumber__content" data-trend="<?= isset ($ trend ) ? htmlspecialchars ($ trend ) : '' ?> ">
22
3- <?php if ($ number && $ detail ) { ?>
3+ <?php if ($ detail ) { ?>
44 <dl>
55 <dt><?= $ number ?> <i class="fa fa-arrow-right fa-fw"></i></dt>
66 <dd><?= $ detail ?> </dd>
You can’t perform that action at this time.
0 commit comments