mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-01 05:51:52 +08:00
Improved login, Fixed breadcrumbs & improved grid thumbnails
This commit is contained in:
@ -5,6 +5,6 @@
|
||||
|
||||
<div class="form-group">
|
||||
<label for="password">{{ trans('auth.password') }}</label>
|
||||
@include('form.password', ['name' => 'password', 'tabindex' => 2])
|
||||
@include('form.password', ['name' => 'password', 'tabindex' => 1])
|
||||
<span class="block small mt-s"><a href="{{ baseUrl('/password/email') }}">{{ trans('auth.forgot_password') }}</a></span>
|
||||
</div>
|
@ -16,7 +16,7 @@
|
||||
@include('auth/forms/login/' . $authMethod)
|
||||
</div>
|
||||
|
||||
<div class="grid half large-gap v-center">
|
||||
<div class="grid half collapse-xs large-gap v-center">
|
||||
<div class="text-left ml-xxs">
|
||||
@include('components.custom-checkbox', [
|
||||
'name' => 'remember',
|
||||
@ -36,7 +36,7 @@
|
||||
<hr class="my-l">
|
||||
@foreach($socialDrivers as $driver => $name)
|
||||
<div>
|
||||
<a id="social-login-{{$driver}}" class="button block muted-light svg text-left" href="{{ baseUrl("/login/service/" . $driver) }}">
|
||||
<a id="social-login-{{$driver}}" class="button outline block svg text-left" href="{{ baseUrl("/login/service/" . $driver) }}">
|
||||
@icon('auth/' . $driver)
|
||||
{{ trans('auth.log_in_with', ['socialDriver' => $name]) }}
|
||||
</a>
|
||||
|
@ -26,7 +26,7 @@
|
||||
@include('form/password', ['name' => 'password', 'placeholder' => trans('auth.password_hint')])
|
||||
</div>
|
||||
|
||||
<div class="grid half large-gap v-center mt-m">
|
||||
<div class="grid half collapse-xs large-gap v-center mt-m">
|
||||
<div class="text-small">
|
||||
<a href="{{ baseUrl('/login') }}">Already have an account?</a>
|
||||
</div>
|
||||
@ -42,7 +42,7 @@
|
||||
<hr class="my-l">
|
||||
@foreach($socialDrivers as $driver => $name)
|
||||
<div>
|
||||
<a id="social-register-{{$driver}}" class="button block muted-light svg text-left" href="{{ baseUrl("/register/service/" . $driver) }}">
|
||||
<a id="social-register-{{$driver}}" class="button block outline svg text-left" href="{{ baseUrl("/register/service/" . $driver) }}">
|
||||
@icon('auth/' . $driver)
|
||||
{{ trans('auth.sign_up_with', ['socialDriver' => $name]) }}
|
||||
</a>
|
||||
|
@ -1,6 +1,8 @@
|
||||
<a href="{{$book->getUrl()}}" class="grid-card" data-entity-type="book" data-entity-id="{{$book->id}}">
|
||||
<div class="featured-image-container bg-book">
|
||||
<img src="{{$book->getBookCover()}}" alt="{{$book->name}}">
|
||||
<div class="bg-book featured-image-container-wrap">
|
||||
<div class="featured-image-container" @if($book->cover) style="background-image: url('{{ $book->getBookCover() }}')"@endif>
|
||||
</div>
|
||||
@icon('book')
|
||||
</div>
|
||||
<div class="grid-card-content">
|
||||
<h2>{{$book->getShortName(35)}}</h2>
|
||||
@ -10,9 +12,8 @@
|
||||
<p class="text-muted">{{ $book->getExcerpt(130) }}</p>
|
||||
@endif
|
||||
</div>
|
||||
<div class="grid-card-footer text-muted text-small">
|
||||
@icon('star')<span title="{{$book->created_at->toDayDateTimeString()}}">{{ trans('entities.meta_created', ['timeLength' => $book->created_at->diffForHumans()]) }}</span>
|
||||
<br>
|
||||
@icon('edit')<span title="{{ $book->updated_at->toDayDateTimeString() }}">{{ trans('entities.meta_updated', ['timeLength' => $book->updated_at->diffForHumans()]) }}</span>
|
||||
<div class="grid-card-footer text-muted ">
|
||||
<p>@icon('star')<span title="{{$book->created_at->toDayDateTimeString()}}">{{ trans('entities.meta_created', ['timeLength' => $book->created_at->diffForHumans()]) }}</span></p>
|
||||
<p>@icon('edit')<span title="{{ $book->updated_at->toDayDateTimeString() }}">{{ trans('entities.meta_updated', ['timeLength' => $book->updated_at->diffForHumans()]) }}</span></p>
|
||||
</div>
|
||||
</a>
|
@ -2,7 +2,7 @@
|
||||
<?php $breadcrumbCount = 0; ?>
|
||||
|
||||
{{--Show top level item--}}
|
||||
@if (count($crumbs) > 0 && $crumbs[0] instanceof \BookStack\Entities\Book)
|
||||
@if (count($crumbs) > 0 && array_first($crumbs) instanceof \BookStack\Entities\Book)
|
||||
<a href="{{ baseUrl('/books') }}" class="icon-list-item">
|
||||
<span>@icon('books')</span>
|
||||
<span>{{ trans('entities.books') }}</span>
|
||||
|
@ -1,7 +1,9 @@
|
||||
<a href="{{$shelf->getUrl()}}" class="bookshelf-grid-item grid-card"
|
||||
data-entity-type="bookshelf" data-entity-id="{{$shelf->id}}">
|
||||
<div class="featured-image-container bg-shelf">
|
||||
<img src="{{$shelf->getBookCover()}}" alt="{{$shelf->name}}">
|
||||
<div class="bg-shelf featured-image-container-wrap">
|
||||
<div class="featured-image-container" @if($shelf->cover) style="background-image: url('{{ $shelf->getBookCover() }}')"@endif>
|
||||
</div>
|
||||
@icon('bookshelf')
|
||||
</div>
|
||||
<div class="grid-card-content">
|
||||
<h2>{{$shelf->getShortName(35)}}</h2>
|
||||
|
Reference in New Issue
Block a user