mirror of
https://github.com/documize/community.git
synced 2025-07-24 15:49:44 +02:00
Show if search result is template
Helps to distinguish between docs and templates when listing search results.
This commit is contained in:
parent
1da49974cb
commit
82ed36478b
2 changed files with 16 additions and 0 deletions
|
@ -72,6 +72,19 @@
|
|||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
> .template {
|
||||
@include border-radius(3px);
|
||||
@extend .no-select;
|
||||
display: inline-block;
|
||||
margin: 5px 5px 5px 0;
|
||||
padding: 0.3rem 0.7rem;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
background-color: map-get($yellow-shades, 300);
|
||||
color: map-get($yellow-shades, 800);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
> .title {
|
||||
color: $color-link;
|
||||
|
|
|
@ -69,6 +69,9 @@
|
|||
</div>
|
||||
<div class="space">{{result.space}}</div>
|
||||
<div class="snippet">{{result.excerpt}}</div>
|
||||
{{#if result.template}}
|
||||
<div class="template">Template</div>
|
||||
{{/if}}
|
||||
{{folder/document-tags documentTags=result.tags}}
|
||||
{{/link-to}}
|
||||
</li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue