We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f04bf5 commit b9972ebCopy full SHA for b9972eb
src/views/package/_search_item.php
@@ -8,12 +8,16 @@
8
/* @var $widget ListView */
9
/* @var $model Project */
10
11
+$bundle = \hiqdev\assetpackagist\assets\AppAsset::register($this);
12
+$logoUrl = $bundle->baseUrl . '/logo';
13
+
14
$url = Url::to(['package/detail', 'fullname' => $model->fullName]);
15
$url = str_replace('%2F', '/', $url);
16
?>
17
<div class="row well well-sm">
18
<div class="col-sm-9">
19
<h4 class="search-result-item-heading">
20
+ <img src="<?= $logoUrl . '/' . strtolower($model->platform) ?>.svg" title="<?= Html::encode($model->platform) ?>" height="20px" />
21
<a href="<?= $url ?>"><?= Html::encode($model->fullName) ?></a>
22
</h4>
23
<?php if ($model->description): ?>
0 commit comments