Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2015-10-14 21:55:56 +0100
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
965851d11243c7a8050ad06ae75f72e83817c092
965851d1
1 parent
7039695b
Added book and chapter icons to pages in global search results. Closes #19.
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
1 deletions
resources/assets/sass/_lists.scss
resources/views/pages/list-item.blade.php
resources/views/search/all.blade.php
resources/assets/sass/_lists.scss
View file @
965851d
...
...
@@ -32,6 +32,13 @@
.book
{
border-left
:
5px
solid
$color-book
;
}
.meta
{
margin-top
:
-
$-m
;
font-size
:
0
.95em
;
}
.meta
span
{
margin-right
:
$-s
;
}
}
.chapter-toggle
{
cursor
:
pointer
;
...
...
resources/views/pages/list-item.blade.php
View file @
965851d
...
...
@@ -2,6 +2,16 @@
<h3>
<a
href=
"{{ $page->getUrl() }}"
class=
"text-page"
><i
class=
"zmdi zmdi-file-text"
></i>
{{ $page->name }}
</a>
</h3>
@if(isset($showMeta)
&&
$showMeta)
<div
class=
"meta"
>
<span
class=
"text-book"
><i
class=
"zmdi zmdi-book"
></i>
{{ $page->book->name }}
</span>
@if($page->chapter)
<span
class=
"text-chapter"
><i
class=
"zmdi zmdi-collection-bookmark"
></i>
{{ $page->chapter->name }}
</span>
@endif
</div>
@endif
@if(isset($page->searchSnippet))
<p
class=
"text-muted"
>
{!! $page->searchSnippet !!}
</p>
@else
...
...
resources/views/search/all.blade.php
View file @
965851d
...
...
@@ -13,7 +13,7 @@
<div
class=
"page-list"
>
@if(count($pages) > 0)
@foreach($pages as $page)
@include('pages/list-item', ['page' => $page])
@include('pages/list-item', ['page' => $page
, 'showMeta' => true
])
<hr>
@endforeach
@else
...
...
Please
register
or
sign in
to post a comment