Skip to content

Commit 856c104

Browse files
committed
added breadcrumbs and subtitle for pages
1 parent 6aa8285 commit 856c104

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Diff for: src/views/package/search.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* @var yii\web\View
4+
* @var yii\web\View $this
55
* @var string $query the search query that was submitted
66
* @var \hiqdev\assetpackagist\models\AssetPackage $package
77
* @var bool $forceUpdate Whether the application must force package update
@@ -13,6 +13,8 @@
1313

1414
$this->title = 'Search';
1515
$this->params['searchQuery'] = $query;
16+
$this->params['subtitle'] = $query;
17+
$this->params['breadcrumbs'][] = $this->title;
1618

1719
?>
1820
<div class="package-details">

Diff for: src/views/site/about.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?php
22

3-
/* @var $this yii\web\View */
3+
/** @var yii\web\View $this */
44

55
$this->title = 'About';
6+
$this->params['subtitle'] = 'Composer + Bower + NPM = friends forever!';
7+
$this->params['breadcrumbs'][] = $this->title;
68

79
?>
810
<div class="site-about">

Diff for: src/views/site/contact.php

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
use yii\helpers\Html;
77

88
$this->title = 'Contact';
9+
$this->params['subtitle'] = '<a href="https://github.com/hiqdev/asset-packagist/issues">GitHub issues</a> is the preferred way';
10+
$this->params['breadcrumbs'][] = $this->title;
911

1012
?>
1113
<div class="site-contact">

0 commit comments

Comments
 (0)