mirror of
https://github.com/humhub/humhub.git
synced 2025-01-29 12:28:06 +01:00
Display content search header with results number
This commit is contained in:
parent
eae0d494aa
commit
7ecd808d72
@ -42,6 +42,9 @@ $hasResults = $resultSet !== null && count($resultSet->results);
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($hasResults): ?>
|
||||
<div class="search-results-header">
|
||||
<?= Yii::t('ContentModule.search', 'Results ({count})', ['count' => $resultSet->pagination->totalCount]) ?>
|
||||
</div>
|
||||
<div class="search-results">
|
||||
<?php foreach ($resultSet->results as $result): ?>
|
||||
<?= StreamEntryWidget::renderStreamEntry($result->getModel(),
|
||||
|
@ -1,3 +1,4 @@
|
||||
// Dropdown/Modal search window:
|
||||
#dropdown-search.dropdown-menu {
|
||||
left: auto;
|
||||
right: 0;
|
||||
@ -215,3 +216,12 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Search results page list:
|
||||
.search-results-header {
|
||||
font-size: 12px;
|
||||
line-height: 1.5;
|
||||
padding: 10px 0 15px;
|
||||
margin-bottom: 10px;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user