mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-31 15:24:31 +03:00
Added favourites page with link from header and home
This commit is contained in:
17
resources/views/common/detailed-listing-paginated.blade.php
Normal file
17
resources/views/common/detailed-listing-paginated.blade.php
Normal file
@ -0,0 +1,17 @@
|
||||
@extends('simple-layout')
|
||||
|
||||
@section('body')
|
||||
<div class="container small pt-xl">
|
||||
<main class="card content-wrap">
|
||||
<h1 class="list-heading">{{ $title }}</h1>
|
||||
|
||||
<div class="book-contents">
|
||||
@include('partials.entity-list', ['entities' => $entities, 'style' => 'detailed'])
|
||||
</div>
|
||||
|
||||
<div class="text-center">
|
||||
{!! $entities->links() !!}
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
@stop
|
19
resources/views/common/detailed-listing-with-more.blade.php
Normal file
19
resources/views/common/detailed-listing-with-more.blade.php
Normal file
@ -0,0 +1,19 @@
|
||||
@extends('simple-layout')
|
||||
|
||||
@section('body')
|
||||
<div class="container small pt-xl">
|
||||
<main class="card content-wrap">
|
||||
<h1 class="list-heading">{{ $title }}</h1>
|
||||
|
||||
<div class="book-contents">
|
||||
@include('partials.entity-list', ['entities' => $entities, 'style' => 'detailed'])
|
||||
</div>
|
||||
|
||||
<div class="text-right">
|
||||
@if($hasMoreLink)
|
||||
<a href="{{ $hasMoreLink }}" class="button outline">{{ trans('common.more') }}</a>
|
||||
@endif
|
||||
</div>
|
||||
</main>
|
||||
</div>
|
||||
@stop
|
@ -61,6 +61,9 @@
|
||||
<span class="name">{{ $currentUser->getShortName(9) }}</span> @icon('caret-down')
|
||||
</span>
|
||||
<ul refs="dropdown@menu" class="dropdown-menu" role="menu">
|
||||
<li>
|
||||
<a href="{{ url('/favourites') }}">@icon('star'){{ trans('entities.my_favourites') }}</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="{{ $currentUser->getProfileUrl() }}">@icon('user'){{ trans('common.view_profile') }}</a>
|
||||
</li>
|
||||
|
@ -7,7 +7,9 @@
|
||||
|
||||
@if(count($favourites) > 0)
|
||||
<div id="top-favourites" class="card mb-xl">
|
||||
<h3 class="card-title">{{ trans('entities.my_most_viewed_favourites') }}</h3>
|
||||
<h3 class="card-title">
|
||||
<a href="{{ url('/favourites') }}" class="no-color">{{ trans('entities.my_most_viewed_favourites') }}</a>
|
||||
</h3>
|
||||
<div class="px-m">
|
||||
@include('partials.entity-list', [
|
||||
'entities' => $favourites,
|
||||
|
@ -44,7 +44,9 @@
|
||||
<div>
|
||||
@if(count($favourites) > 0)
|
||||
<div id="top-favourites" class="card mb-xl">
|
||||
<h3 class="card-title">{{ trans('entities.my_most_viewed_favourites') }}</h3>
|
||||
<h3 class="card-title">
|
||||
<a href="{{ url('/favourites') }}" class="no-color">{{ trans('entities.my_most_viewed_favourites') }}</a>
|
||||
</h3>
|
||||
<div class="px-m">
|
||||
@include('partials.entity-list', [
|
||||
'entities' => $favourites,
|
||||
|
Reference in New Issue
Block a user