Skip to content

Commit 0bddc18

Browse files
committed
Update tpl
1 parent 2a7d613 commit 0bddc18

5 files changed

Lines changed: 13 additions & 7 deletions

File tree

src/Dashboards/APCu/APCuDashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function showPanels(): string {
125125
}
126126

127127
return $this->template->render('partials/info', [
128-
'title' => 'APCu',
128+
'title' => 'PHP <span class="font-semibold">APCu</span> extension',
129129
'extension_version' => phpversion('apcu'),
130130
'info' => $this->info(),
131131
]);

src/Dashboards/Memcached/MemcachedDashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public function showPanels(): string {
166166
$memcached = extension_loaded('memcached') ? 'd' : '';
167167

168168
return $this->template->render('partials/info', [
169-
'title' => 'Memcache'.$memcached,
169+
'title' => 'PHP <span class="font-semibold">Memcache'.$memcached.'</span> extension',
170170
'extension_version' => phpversion('memcache'.$memcached),
171171
'info' => $this->info(),
172172
]);

src/Dashboards/OPCache/OPCacheDashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public function showPanels(): string {
133133
}
134134

135135
return $this->template->render('partials/info', [
136-
'title' => 'OPCache',
136+
'title' => 'PHP <span class="font-semibold">OPCache</span> extension',
137137
'extension_version' => phpversion('Zend OPcache'),
138138
'info' => $this->info(),
139139
]);

src/Dashboards/Redis/RedisDashboard.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function showPanels(): string {
183183
}
184184

185185
return $this->template->render('partials/info', [
186-
'title' => 'Redis',
186+
'title' => 'PHP <span class="font-semibold">Redis</span> extension',
187187
'extension_version' => phpversion('redis'),
188188
'info' => $this->info(),
189189
]);

templates/partials/info.twig

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
11
<div class="flex flex-col md:flex-row md:items-center md:justify-between">
2-
{% if extension_version %}
2+
{% if title or extension_version %}
33
<div class="mb-5 text-lg">
4-
PHP <span class="font-semibold">{{ title }}</span> extension
5-
{{ include('components/badge.twig', {text: 'v' ~ extension_version, bg: 'bg-' ~ color ~ '-500', class: 'font-semibold'}) }}
4+
{{ title|raw }}
5+
{% if extension_version %}
6+
{{ include('components/badge.twig', {
7+
text: 'v' ~ extension_version,
8+
bg: 'bg-' ~ color ~ '-500',
9+
class: 'font-semibold',
10+
}) }}
11+
{% endif %}
612
</div>
713
{% endif %}
814

0 commit comments

Comments
 (0)