Updated remaining views to 2017 design update.

Also fixed issue with duplicate confirmation email.
This commit is contained in:
Dan Brown 2017-08-26 17:17:04 +01:00
parent 36f524a354
commit 4cb4c9e568
No known key found for this signature in database
GPG Key ID: 46D9F943C24A2EF9
20 changed files with 835 additions and 832 deletions

View File

@ -231,7 +231,6 @@ class RegisterController extends Controller
return redirect('/register/confirm'); return redirect('/register/confirm');
} }
$this->emailConfirmationService->sendConfirmation($user);
session()->flash('success', trans('auth.email_confirm_resent')); session()->flash('success', trans('auth.email_confirm_resent'));
return redirect('/register/confirm'); return redirect('/register/confirm');
} }

View File

@ -92,7 +92,7 @@ class SearchService
return [ return [
'total' => $total, 'total' => $total,
'count' => count($results), 'count' => count($results),
'results' => $results->sortByDesc('score') 'results' => $results->sortByDesc('score')->values()
]; ];
} }

View File

@ -237,8 +237,8 @@ div[editor-type="markdown"] .title-input.page-title input[type="text"] {
padding: 0; padding: 0;
cursor: pointer; cursor: pointer;
position: absolute; position: absolute;
left: 7px; left: 8px;
top: 7px; top: 9.5px;
} }
input { input {
display: block; display: block;

View File

@ -378,12 +378,6 @@ span.sep {
display: block; display: block;
} }
.action-header {
h1 {
margin-top: $-m;
}
}
/** /**
* Icons * Icons
*/ */

View File

@ -9,9 +9,11 @@
@section('content') @section('content')
<div class="text-center"> <div class="text-center">
<div class="center-box"> <div class="card center-box">
<h2>{{ trans('auth.register_thanks') }}</h2> <h3><i class="zmdi zmdi-accounts"></i> {{ trans('auth.register_thanks') }}</h3>
<p>{{ trans('auth.register_confirm', ['appName' => setting('app-name')]) }}</p> <div class="body">
<p>{{ trans('auth.register_confirm', ['appName' => setting('app-name')]) }}</p>
</div>
</div> </div>
</div> </div>

View File

@ -2,29 +2,33 @@
@section('content') @section('content')
<div class="row"> <div class="container small">
<div class="col-md-6 col-md-offset-3"> <p>&nbsp;</p>
<h2>{{ trans('auth.email_not_confirmed') }}</h2> <div class="card">
<p class="text-muted">{{ trans('auth.email_not_confirmed_text') }}<br> <h3><i class="zmdi zmdi-accounts"></i> {{ trans('auth.email_not_confirmed') }}</h3>
{{ trans('auth.email_not_confirmed_click_link') }} <br> <div class="body">
{{ trans('auth.email_not_confirmed_resend') }} <p class="text-muted">{{ trans('auth.email_not_confirmed_text') }}<br>
</p> {{ trans('auth.email_not_confirmed_click_link') }} <br>
<hr> {{ trans('auth.email_not_confirmed_resend') }}
<form action="{{ baseUrl("/register/confirm/resend") }}" method="POST"> </p>
{!! csrf_field() !!} <hr>
<div class="form-group"> <form action="{{ baseUrl("/register/confirm/resend") }}" method="POST">
<label for="email">{{ trans('auth.email') }}</label> {!! csrf_field() !!}
@if(auth()->check()) <div class="form-group">
@include('form/text', ['name' => 'email', 'model' => auth()->user()]) <label for="email">{{ trans('auth.email') }}</label>
@else @if(auth()->check())
@include('form/text', ['name' => 'email']) @include('form/text', ['name' => 'email', 'model' => auth()->user()])
@endif @else
</div> @include('form/text', ['name' => 'email'])
<div class="form-group"> @endif
<button type="submit" class="button pos">{{ trans('auth.email_not_confirmed_resend_button') }}</button> </div>
</div> <div class="form-group">
</form> <button type="submit" class="button pos">{{ trans('auth.email_not_confirmed_resend_button') }}</button>
</div>
</form>
</div>
</div> </div>
</div> </div>
@stop @stop

View File

@ -8,5 +8,5 @@
@endforeach @endforeach
</div> </div>
@else @else
<p class="text-muted">{{ trans('common.no_activity') }}</p> <p class="text-muted empty-text">{{ trans('common.no_activity') }}</p>
@endif @endif

View File

@ -1,213 +1,204 @@
@extends('base') @extends('sidebar-layout')
@section('content') @section('toolbar')
<div class="col-sm-12 faded">
<input type="hidden" name="searchTerm" value="{{$searchTerm}}"> <div class="breadcrumbs">
<a href="{{ baseUrl("/search?term=" . urlencode($searchTerm)) }}" class="text-button"><i class="zmdi zmdi-search"></i>{{ trans('entities.search_for_term', ['term' => $searchTerm]) }}</a>
<div id="search-system">
<div class="faded-small toolbar">
<div class="container">
<div class="row">
<div class="col-sm-12 faded">
<div class="breadcrumbs">
<a href="{{ baseUrl("/search?term=" . urlencode($searchTerm)) }}" class="text-button"><i class="zmdi zmdi-search"></i>{{ trans('entities.search_for_term', ['term' => $searchTerm]) }}</a>
</div>
</div>
</div>
</div> </div>
</div> </div>
@stop
<div class="container" ng-non-bindable id="searchSystem">
@section('container-attrs')
<div class="row"> id="search-system"
ng-non-bindable=""
<div class="col-md-6"> @stop
<h1>{{ trans('entities.search_results') }}</h1>
<h6 class="text-muted">{{ trans_choice('entities.search_total_results_found', $totalResults, ['count' => $totalResults]) }}</h6> @section('sidebar')
@include('partials/entity-list', ['entities' => $entities]) <div class="card">
@if ($hasNextPage) <h3>{{ trans('entities.search_filters') }}</h3>
<a href="{{ $nextPageLink }}" class="button">{{ trans('entities.search_more') }}</a>
@endif <div class="body">
</div> <form v-on:submit="updateSearch" v-cloak class="v-cloak anim fadeIn">
<h6 class="text-muted">{{ trans('entities.search_content_type') }}</h6>
<div class="col-md-5 col-md-offset-1"> <div class="form-group">
<h3>{{ trans('entities.search_filters') }}</h3> <label class="inline checkbox text-page"><input type="checkbox" v-on:change="typeChange" v-model="search.type.page" value="page">{{ trans('entities.page') }}</label>
<label class="inline checkbox text-chapter"><input type="checkbox" v-on:change="typeChange" v-model="search.type.chapter" value="chapter">{{ trans('entities.chapter') }}</label>
<form v-on:submit="updateSearch" v-cloak class="v-cloak anim fadeIn"> <label class="inline checkbox text-book"><input type="checkbox" v-on:change="typeChange" v-model="search.type.book" value="book">{{ trans('entities.book') }}</label>
<h6 class="text-muted">{{ trans('entities.search_content_type') }}</h6> </div>
<div class="form-group">
<label class="inline checkbox text-page"><input type="checkbox" v-on:change="typeChange" v-model="search.type.page" value="page">{{ trans('entities.page') }}</label> <h6 class="text-muted">{{ trans('entities.search_exact_matches') }}</h6>
<label class="inline checkbox text-chapter"><input type="checkbox" v-on:change="typeChange" v-model="search.type.chapter" value="chapter">{{ trans('entities.chapter') }}</label> <table cellpadding="0" cellspacing="0" border="0" class="no-style">
<label class="inline checkbox text-book"><input type="checkbox" v-on:change="typeChange" v-model="search.type.book" value="book">{{ trans('entities.book') }}</label> <tr v-for="(term, i) in search.exactTerms">
</div> <td style="padding: 0 12px 6px 0;">
<input class="exact-input outline" v-on:input="exactChange" type="text" v-model="search.exactTerms[i]"></td>
<h6 class="text-muted">{{ trans('entities.search_exact_matches') }}</h6> <td>
<table cellpadding="0" cellspacing="0" border="0" class="no-style"> <button type="button" class="text-neg text-button" v-on:click="removeExact(i)">
<tr v-for="(term, i) in search.exactTerms"> <i class="zmdi zmdi-close"></i>
<td style="padding: 0 12px 6px 0;"> </button>
<input class="exact-input outline" v-on:input="exactChange" type="text" v-model="search.exactTerms[i]"></td> </td>
<td> </tr>
<button type="button" class="text-neg text-button" v-on:click="removeExact(i)"> <tr>
<i class="zmdi zmdi-close"></i> <td colspan="2">
</button> <button type="button" class="text-button" v-on:click="addExact">
</td> <i class="zmdi zmdi-plus-circle-o"></i>{{ trans('common.add') }}
</tr> </button>
<tr> </td>
<td colspan="2"> </tr>
<button type="button" class="text-button" v-on:click="addExact"> </table>
<i class="zmdi zmdi-plus-circle-o"></i>{{ trans('common.add') }}
</button> <h6 class="text-muted">{{ trans('entities.search_tags') }}</h6>
</td> <table cellpadding="0" cellspacing="0" border="0" class="no-style">
</tr> <tr v-for="(term, i) in search.tagTerms">
</table> <td style="padding: 0 12px 6px 0;">
<input class="tag-input outline" v-on:input="tagChange" type="text" v-model="search.tagTerms[i]"></td>
<h6 class="text-muted">{{ trans('entities.search_tags') }}</h6> <td>
<table cellpadding="0" cellspacing="0" border="0" class="no-style"> <button type="button" class="text-neg text-button" v-on:click="removeTag(i)">
<tr v-for="(term, i) in search.tagTerms"> <i class="zmdi zmdi-close"></i>
<td style="padding: 0 12px 6px 0;"> </button>
<input class="tag-input outline" v-on:input="tagChange" type="text" v-model="search.tagTerms[i]"></td> </td>
<td> </tr>
<button type="button" class="text-neg text-button" v-on:click="removeTag(i)"> <tr>
<i class="zmdi zmdi-close"></i> <td colspan="2">
</button> <button type="button" class="text-button" v-on:click="addTag">
</td> <i class="zmdi zmdi-plus-circle-o"></i>{{ trans('common.add') }}
</tr> </button>
<tr> </td>
<td colspan="2"> </tr>
<button type="button" class="text-button" v-on:click="addTag"> </table>
<i class="zmdi zmdi-plus-circle-o"></i>{{ trans('common.add') }}
</button> <h6 class="text-muted">Options</h6>
</td> <label class="checkbox">
</tr> <input type="checkbox" v-on:change="optionChange('viewed_by_me')"
</table> v-model="search.option.viewed_by_me" value="page">
{{ trans('entities.search_viewed_by_me') }}
<h6 class="text-muted">Options</h6> </label>
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" v-on:change="optionChange('viewed_by_me')" <input type="checkbox" v-on:change="optionChange('not_viewed_by_me')"
v-model="search.option.viewed_by_me" value="page"> v-model="search.option.not_viewed_by_me" value="page">
{{ trans('entities.search_viewed_by_me') }} {{ trans('entities.search_not_viewed_by_me') }}
</label> </label>
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" v-on:change="optionChange('not_viewed_by_me')" <input type="checkbox" v-on:change="optionChange('is_restricted')"
v-model="search.option.not_viewed_by_me" value="page"> v-model="search.option.is_restricted" value="page">
{{ trans('entities.search_not_viewed_by_me') }} {{ trans('entities.search_permissions_set') }}
</label> </label>
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" v-on:change="optionChange('is_restricted')" <input type="checkbox" v-on:change="optionChange('created_by:me')"
v-model="search.option.is_restricted" value="page"> v-model="search.option['created_by:me']" value="page">
{{ trans('entities.search_permissions_set') }} {{ trans('entities.search_created_by_me') }}
</label> </label>
<label class="checkbox"> <label class="checkbox">
<input type="checkbox" v-on:change="optionChange('created_by:me')" <input type="checkbox" v-on:change="optionChange('updated_by:me')"
v-model="search.option['created_by:me']" value="page"> v-model="search.option['updated_by:me']" value="page">
{{ trans('entities.search_created_by_me') }} {{ trans('entities.search_updated_by_me') }}
</label> </label>
<label class="checkbox">
<input type="checkbox" v-on:change="optionChange('updated_by:me')" <h6 class="text-muted">Date Options</h6>
v-model="search.option['updated_by:me']" value="page"> <table cellpadding="0" cellspacing="0" border="0" class="no-style form-table">
{{ trans('entities.search_updated_by_me') }} <tr>
</label> <td width="200">{{ trans('entities.search_updated_after') }}</td>
<td width="80">
<h6 class="text-muted">Date Options</h6> <button type="button" class="text-button" v-if="!search.dates.updated_after"
<table cellpadding="0" cellspacing="0" border="0" class="no-style form-table"> v-on:click="enableDate('updated_after')">{{ trans('entities.search_set_date') }}</button>
<tr>
<td width="200">{{ trans('entities.search_updated_after') }}</td> </td>
<td width="80"> </tr>
<button type="button" class="text-button" v-if="!search.dates.updated_after" <tr v-if="search.dates.updated_after">
v-on:click="enableDate('updated_after')">{{ trans('entities.search_set_date') }}</button> <td>
<input v-if="search.dates.updated_after" class="tag-input"
</td> v-on:input="dateChange('updated_after')" type="date" v-model="search.dates.updated_after"
</tr> pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}">
<tr v-if="search.dates.updated_after"> </td>
<td> <td>
<input v-if="search.dates.updated_after" class="tag-input" <button v-if="search.dates.updated_after" type="button" class="text-neg text-button"
v-on:input="dateChange('updated_after')" type="date" v-model="search.dates.updated_after" v-on:click="dateRemove('updated_after')">
pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}"> <i class="zmdi zmdi-close"></i>
</td> </button>
<td> </td>
<button v-if="search.dates.updated_after" type="button" class="text-neg text-button" </tr>
v-on:click="dateRemove('updated_after')"> <tr>
<i class="zmdi zmdi-close"></i> <td>{{ trans('entities.search_updated_before') }}</td>
</button> <td>
</td> <button type="button" class="text-button" v-if="!search.dates.updated_before"
</tr> v-on:click="enableDate('updated_before')">{{ trans('entities.search_set_date') }}</button>
<tr>
<td>{{ trans('entities.search_updated_before') }}</td> </td>
<td> </tr>
<button type="button" class="text-button" v-if="!search.dates.updated_before" <tr v-if="search.dates.updated_before">
v-on:click="enableDate('updated_before')">{{ trans('entities.search_set_date') }}</button> <td>
<input v-if="search.dates.updated_before" class="tag-input"
</td> v-on:input="dateChange('updated_before')" type="date" v-model="search.dates.updated_before"
</tr> pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}">
<tr v-if="search.dates.updated_before"> </td>
<td> <td>
<input v-if="search.dates.updated_before" class="tag-input" <button v-if="search.dates.updated_before" type="button" class="text-neg text-button"
v-on:input="dateChange('updated_before')" type="date" v-model="search.dates.updated_before" v-on:click="dateRemove('updated_before')">
pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}"> <i class="zmdi zmdi-close"></i>
</td> </button>
<td> </td>
<button v-if="search.dates.updated_before" type="button" class="text-neg text-button" </tr>
v-on:click="dateRemove('updated_before')"> <tr>
<i class="zmdi zmdi-close"></i> <td>{{ trans('entities.search_created_after') }}</td>
</button> <td>
</td> <button type="button" class="text-button" v-if="!search.dates.created_after"
</tr> v-on:click="enableDate('created_after')">{{ trans('entities.search_set_date') }}</button>
<tr>
<td>{{ trans('entities.search_created_after') }}</td> </td>
<td> </tr>
<button type="button" class="text-button" v-if="!search.dates.created_after" <tr v-if="search.dates.created_after">
v-on:click="enableDate('created_after')">{{ trans('entities.search_set_date') }}</button> <td>
<input v-if="search.dates.created_after" class="tag-input"
</td> v-on:input="dateChange('created_after')" type="date" v-model="search.dates.created_after"
</tr> pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}">
<tr v-if="search.dates.created_after"> </td>
<td> <td>
<input v-if="search.dates.created_after" class="tag-input" <button v-if="search.dates.created_after" type="button" class="text-neg text-button"
v-on:input="dateChange('created_after')" type="date" v-model="search.dates.created_after" v-on:click="dateRemove('created_after')">
pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}"> <i class="zmdi zmdi-close"></i>
</td> </button>
<td> </td>
<button v-if="search.dates.created_after" type="button" class="text-neg text-button" </tr>
v-on:click="dateRemove('created_after')"> <tr>
<i class="zmdi zmdi-close"></i> <td>{{ trans('entities.search_created_before') }}</td>
</button> <td>
</td> <button type="button" class="text-button" v-if="!search.dates.created_before"
</tr> v-on:click="enableDate('created_before')">{{ trans('entities.search_set_date') }}</button>
<tr>
<td>{{ trans('entities.search_created_before') }}</td> </td>
<td> </tr>
<button type="button" class="text-button" v-if="!search.dates.created_before" <tr v-if="search.dates.created_before">
v-on:click="enableDate('created_before')">{{ trans('entities.search_set_date') }}</button> <td>
<input v-if="search.dates.created_before" class="tag-input"
</td> v-on:input="dateChange('created_before')" type="date" v-model="search.dates.created_before"
</tr> pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}">
<tr v-if="search.dates.created_before"> </td>
<td> <td>
<input v-if="search.dates.created_before" class="tag-input" <button v-if="search.dates.created_before" type="button" class="text-neg text-button"
v-on:input="dateChange('created_before')" type="date" v-model="search.dates.created_before" v-on:click="dateRemove('created_before')">
pattern="[0-9]{4}-[0-9]{2}-[0-9]{2}"> <i class="zmdi zmdi-close"></i>
</td> </button>
<td> </td>
<button v-if="search.dates.created_before" type="button" class="text-neg text-button" </tr>
v-on:click="dateRemove('created_before')"> </table>
<i class="zmdi zmdi-close"></i>
</button>
</td> <button type="submit" class="button primary">{{ trans('entities.search_update') }}</button>
</tr> </form>
</table> </div>
</div>
<button type="submit" class="button primary">{{ trans('entities.search_update') }}</button> @stop
</form>
@section('body')
</div> <div class="container small">
<input type="hidden" name="searchTerm" value="{{$searchTerm}}">
</div>
<h1>{{ trans('entities.search_results') }}</h1>
<h6 class="text-muted">{{ trans_choice('entities.search_total_results_found', $totalResults, ['count' => $totalResults]) }}</h6>
</div> @include('partials/entity-list', ['entities' => $entities])
</div> @if ($hasNextPage)
<a href="{{ $nextPageLink }}" class="button">{{ trans('entities.search_more') }}</a>
@endif
</div>
@stop @stop

View File

@ -1,128 +1,141 @@
@extends('base') @extends('simple-layout')
@section('content')
@section('toolbar')
@include('settings/navbar', ['selected' => 'settings']) @include('settings/navbar', ['selected' => 'settings'])
@stop
<div class="container small settings-container"> @section('body')
<div class="container small">
<h1>{{ trans('settings.settings') }}</h1> <div class="text-right text-muted container">
<br>
BookStack @if(strpos($version, 'v') !== 0) version @endif {{ $version }}
</div>
<form action="{{ baseUrl("/settings") }}" method="POST"> <div class="card">
{!! csrf_field() !!} <h3><i class="zmdi zmdi-settings-square"></i> {{ trans('settings.app_settings') }}</h3>
<div class="body">
<form action="{{ baseUrl("/settings") }}" method="POST">
{!! csrf_field() !!}
<div class="row">
<h3>{{ trans('settings.app_settings') }}</h3> <div class="col-md-6">
<div class="form-group">
<label for="setting-app-name">{{ trans('settings.app_name') }}</label>
<p class="small">{{ trans('settings.app_name_desc') }}</p>
<input type="text" value="{{ setting('app-name', 'BookStack') }}" name="setting-app-name" id="setting-app-name">
</div>
<div class="form-group">
<label>{{ trans('settings.app_name_header') }}</label>
@include('components.toggle-switch', ['name' => 'setting-app-name-header', 'value' => setting('app-name-header')])
</div>
<div class="form-group">
<label for="setting-app-public">{{ trans('settings.app_public_viewing') }}</label>
@include('components.toggle-switch', ['name' => 'setting-app-public', 'value' => setting('app-public')])
</div>
<div class="form-group">
<label>{{ trans('settings.app_secure_images') }}</label>
<p class="small">{{ trans('settings.app_secure_images_desc') }}</p>
@include('components.toggle-switch', ['name' => 'setting-app-secure-images', 'value' => setting('app-secure-images')])
</div>
<div class="form-group">
<label for="setting-app-editor">{{ trans('settings.app_editor') }}</label>
<p class="small">{{ trans('settings.app_editor_desc') }}</p>
<select name="setting-app-editor" id="setting-app-editor">
<option @if(setting('app-editor') === 'wysiwyg') selected @endif value="wysiwyg">WYSIWYG</option>
<option @if(setting('app-editor') === 'markdown') selected @endif value="markdown">Markdown</option>
</select>
</div>
</div>
<div class="row"> <div class="col-md-6">
<div class="form-group" id="logo-control">
<label for="setting-app-logo">{{ trans('settings.app_logo') }}</label>
<p class="small">{!! trans('settings.app_logo_desc') !!}</p>
@include('components.image-picker', [
'resizeHeight' => '43',
'resizeWidth' => '200',
'showRemove' => true,
'defaultImage' => baseUrl('/logo.png'),
'currentImage' => setting('app-logo'),
'name' => 'setting-app-logo',
'imageClass' => 'logo-image',
'currentId' => false
])
</div>
<div class="form-group" id="color-control">
<label for="setting-app-color">{{ trans('settings.app_primary_color') }}</label>
<p class="small">{!! trans('settings.app_primary_color_desc') !!}</p>
<input type="text" value="{{ setting('app-color', '') }}" name="setting-app-color" id="setting-app-color" placeholder="#0288D1">
<input type="hidden" value="{{ setting('app-color-light', '') }}" name="setting-app-color-light" id="setting-app-color-light" placeholder="rgba(21, 101, 192, 0.15)">
</div>
</div>
</div>
<div class="col-md-6">
<div class="form-group"> <div class="form-group">
<label for="setting-app-name">{{ trans('settings.app_name') }}</label> <label for="setting-app-custom-head">{{ trans('settings.app_custom_html') }}</label>
<p class="small">{{ trans('settings.app_name_desc') }}</p> <p class="small">{{ trans('settings.app_custom_html_desc') }}</p>
<input type="text" value="{{ setting('app-name', 'BookStack') }}" name="setting-app-name" id="setting-app-name"> <textarea name="setting-app-custom-head" id="setting-app-custom-head">{{ setting('app-custom-head', '') }}</textarea>
</div> </div>
<div class="form-group">
<label>{{ trans('settings.app_name_header') }}</label>
@include('components.toggle-switch', ['name' => 'setting-app-name-header', 'value' => setting('app-name-header')])
</div>
<div class="form-group">
<label for="setting-app-public">{{ trans('settings.app_public_viewing') }}</label>
@include('components.toggle-switch', ['name' => 'setting-app-public', 'value' => setting('app-public')])
</div>
<div class="form-group">
<label>{{ trans('settings.app_secure_images') }}</label>
<p class="small">{{ trans('settings.app_secure_images_desc') }}</p>
@include('components.toggle-switch', ['name' => 'setting-app-secure-images', 'value' => setting('app-secure-images')])
</div>
<div class="form-group">
<label for="setting-app-editor">{{ trans('settings.app_editor') }}</label>
<p class="small">{{ trans('settings.app_editor_desc') }}</p>
<select name="setting-app-editor" id="setting-app-editor">
<option @if(setting('app-editor') === 'wysiwyg') selected @endif value="wysiwyg">WYSIWYG</option>
<option @if(setting('app-editor') === 'markdown') selected @endif value="markdown">Markdown</option>
</select>
</div>
</div>
<div class="col-md-6">
<div class="form-group" id="logo-control">
<label for="setting-app-logo">{{ trans('settings.app_logo') }}</label>
<p class="small">{!! trans('settings.app_logo_desc') !!}</p>
@include('components.image-picker', [
'resizeHeight' => '43',
'resizeWidth' => '200',
'showRemove' => true,
'defaultImage' => baseUrl('/logo.png'),
'currentImage' => setting('app-logo'),
'name' => 'setting-app-logo',
'imageClass' => 'logo-image',
'currentId' => false
])
<div class="form-group text-right">
<button type="submit" class="button pos">{{ trans('settings.settings_save') }}</button>
</div> </div>
<div class="form-group" id="color-control"> </form>
<label for="setting-app-color">{{ trans('settings.app_primary_color') }}</label>
<p class="small">{!! trans('settings.app_primary_color_desc') !!}</p>
<input type="text" value="{{ setting('app-color', '') }}" name="setting-app-color" id="setting-app-color" placeholder="#0288D1">
<input type="hidden" value="{{ setting('app-color-light', '') }}" name="setting-app-color-light" id="setting-app-color-light" placeholder="rgba(21, 101, 192, 0.15)">
</div>
</div>
</div> </div>
</div>
<div class="form-group"> <p>&nbsp;</p>
<label for="setting-app-custom-head">{{ trans('settings.app_custom_html') }}</label>
<p class="small">{{ trans('settings.app_custom_html_desc') }}</p>
<textarea name="setting-app-custom-head" id="setting-app-custom-head">{{ setting('app-custom-head', '') }}</textarea>
</div>
<hr class="margin-top"> <div class="card">
<h3><i class="zmdi zmdi-accounts-add"></i> {{ trans('settings.reg_settings') }}</h3>
<div class="body">
<form action="{{ baseUrl("/settings") }}" method="POST">
{!! csrf_field() !!}
<h3>{{ trans('settings.reg_settings') }}</h3> <div class="row">
<div class="col-md-6">
<div class="row"> <div class="form-group">
<div class="col-md-6"> <label for="setting-registration-enabled">{{ trans('settings.reg_allow') }}</label>
<div class="form-group"> @include('components.toggle-switch', ['name' => 'setting-registration-enabled', 'value' => setting('registration-enabled')])
<label for="setting-registration-enabled">{{ trans('settings.reg_allow') }}</label> </div>
@include('components.toggle-switch', ['name' => 'setting-registration-enabled', 'value' => setting('registration-enabled')]) <div class="form-group">
</div> <label for="setting-registration-role">{{ trans('settings.reg_default_role') }}</label>
<div class="form-group"> <select id="setting-registration-role" name="setting-registration-role" @if($errors->has('setting-registration-role')) class="neg" @endif>
<label for="setting-registration-role">{{ trans('settings.reg_default_role') }}</label> @foreach(\BookStack\Role::all() as $role)
<select id="setting-registration-role" name="setting-registration-role" @if($errors->has('setting-registration-role')) class="neg" @endif> <option value="{{$role->id}}" data-role-name="{{ $role->name }}"
@foreach(\BookStack\Role::all() as $role) @if(setting('registration-role', \BookStack\Role::first()->id) == $role->id) selected @endif
<option value="{{$role->id}}" data-role-name="{{ $role->name }}"
@if(setting('registration-role', \BookStack\Role::first()->id) == $role->id) selected @endif
> >
{{ $role->display_name }} {{ $role->display_name }}
</option> </option>
@endforeach @endforeach
</select> </select>
</div>
<div class="form-group">
<label for="setting-registration-confirmation">{{ trans('settings.reg_confirm_email') }}</label>
<p class="small">{{ trans('settings.reg_confirm_email_desc') }}</p>
@include('components.toggle-switch', ['name' => 'setting-registration-confirmation', 'value' => setting('registration-confirmation')])
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="setting-registration-restrict">{{ trans('settings.reg_confirm_restrict_domain') }}</label>
<p class="small">{!! trans('settings.reg_confirm_restrict_domain_desc') !!}</p>
<input type="text" id="setting-registration-restrict" name="setting-registration-restrict" placeholder="{{ trans('settings.reg_confirm_restrict_domain_placeholder') }}" value="{{ setting('registration-restrict', '') }}">
</div>
</div>
</div> </div>
<div class="form-group">
<label for="setting-registration-confirmation">{{ trans('settings.reg_confirm_email') }}</label>
<p class="small">{{ trans('settings.reg_confirm_email_desc') }}</p>
@include('components.toggle-switch', ['name' => 'setting-registration-confirmation', 'value' => setting('registration-confirmation')])
</div>
</div>
<div class="col-md-6">
<div class="form-group">
<label for="setting-registration-restrict">{{ trans('settings.reg_confirm_restrict_domain') }}</label>
<p class="small">{!! trans('settings.reg_confirm_restrict_domain_desc') !!}</p>
<input type="text" id="setting-registration-restrict" name="setting-registration-restrict" placeholder="{{ trans('settings.reg_confirm_restrict_domain_placeholder') }}" value="{{ setting('registration-restrict', '') }}">
</div>
</div>
</div>
<hr class="margin-top"> <div class="form-group text-right">
<button type="submit" class="button pos">{{ trans('settings.settings_save') }}</button>
<div class="form-group"> </div>
<span class="float right muted"> </form>
BookStack @if(strpos($version, 'v') !== 0) version @endif {{ $version }}
</span>
<button type="submit" class="button pos">{{ trans('settings.settings_save') }}</button>
</div> </div>
</form> </div>
</div> </div>

View File

@ -1,18 +1,12 @@
<div class="faded-small toolbar"> <div class="col-md-12 setting-nav nav-tabs">
<div class="container"> @if($currentUser->can('settings-manage'))
<div class="row"> <a href="{{ baseUrl('/settings') }}" @if($selected == 'settings') class="selected text-button" @endif><i class="zmdi zmdi-settings"></i>{{ trans('settings.settings') }}</a>
<div class="col-md-12 setting-nav nav-tabs"> @endif
@if($currentUser->can('settings-manage')) @if($currentUser->can('users-manage'))
<a href="{{ baseUrl('/settings') }}" @if($selected == 'settings') class="selected text-button" @endif><i class="zmdi zmdi-settings"></i>{{ trans('settings.settings') }}</a> <a href="{{ baseUrl('/settings/users') }}" @if($selected == 'users') class="selected text-button" @endif><i class="zmdi zmdi-accounts"></i>{{ trans('settings.users') }}</a>
@endif @endif
@if($currentUser->can('users-manage')) @if($currentUser->can('user-roles-manage'))
<a href="{{ baseUrl('/settings/users') }}" @if($selected == 'users') class="selected text-button" @endif><i class="zmdi zmdi-accounts"></i>{{ trans('settings.users') }}</a> <a href="{{ baseUrl('/settings/roles') }}" @if($selected == 'roles') class="selected text-button" @endif><i class="zmdi zmdi-lock-open"></i>{{ trans('settings.roles') }}</a>
@endif @endif
@if($currentUser->can('user-roles-manage'))
<a href="{{ baseUrl('/settings/roles') }}" @if($selected == 'roles') class="selected text-button" @endif><i class="zmdi zmdi-lock-open"></i>{{ trans('settings.roles') }}</a>
@endif
</div>
</div>
</div>
</div> </div>

View File

@ -1,15 +1,17 @@
@extends('base') @extends('simple-layout')
@section('content')
@section('toolbar')
@include('settings/navbar', ['selected' => 'roles']) @include('settings/navbar', ['selected' => 'roles'])
@stop
<div class="container"> @section('body')
<h1>{{ trans('settings.role_create') }}</h1>
<form action="{{ baseUrl("/settings/roles/new") }}" method="POST"> <form action="{{ baseUrl("/settings/roles/new") }}" method="POST">
@include('settings/roles/form') <div class="container">
</form> <div class="row">
</div> @include('settings/roles/form', ['title' => trans('settings.role_create'), 'icon' => 'plus'])
</div>
</div>
</form>
@stop @stop

View File

@ -1,28 +1,36 @@
@extends('base') @extends('simple-layout')
@section('content')
@section('toolbar')
@include('settings/navbar', ['selected' => 'roles']) @include('settings/navbar', ['selected' => 'roles'])
@stop
<div class="container small" ng-non-bindable>
<h1>{{ trans('settings.role_delete') }}</h1> @section('body')
<p>{{ trans('settings.role_delete_confirm', ['roleName' => $role->display_name]) }}</p> <div class="container small" ng-non-bindable>
<p>&nbsp;</p>
<form action="{{ baseUrl("/settings/roles/delete/{$role->id}") }}" method="POST"> <div class="card">
{!! csrf_field() !!} <h3><i class="zmdi zmdi-delete"></i> {{ trans('settings.role_delete') }}</h3>
<input type="hidden" name="_method" value="DELETE"> <div class="body">
<p>{{ trans('settings.role_delete_confirm', ['roleName' => $role->display_name]) }}</p>
@if($role->users->count() > 0)
<div class="form-group"> <form action="{{ baseUrl("/settings/roles/delete/{$role->id}") }}" method="POST">
<p>{{ trans('settings.role_delete_users_assigned', ['userCount' => $role->users->count()]) }}</p> {!! csrf_field() !!}
@include('form/role-select', ['options' => $roles, 'name' => 'migration_role_id']) <input type="hidden" name="_method" value="DELETE">
</div>
@endif @if($role->users->count() > 0)
<div class="form-group">
<p class="text-neg">{{ trans('settings.role_delete_sure') }}</p> <p>{{ trans('settings.role_delete_users_assigned', ['userCount' => $role->users->count()]) }}</p>
<a href="{{ baseUrl("/settings/roles/{$role->id}") }}" class="button muted">{{ trans('common.cancel') }}</a> @include('form/role-select', ['options' => $roles, 'name' => 'migration_role_id'])
<button type="submit" class="button neg">{{ trans('common.confirm') }}</button> </div>
</form> @endif
</div>
<p class="text-neg">{{ trans('settings.role_delete_sure') }}</p>
<div class="form-group">
<a href="{{ baseUrl("/settings/roles/{$role->id}") }}" class="button outline">{{ trans('common.cancel') }}</a>
<button type="submit" class="button neg">{{ trans('common.confirm') }}</button>
</div>
</form>
</div>
</div>
</div>
@stop @stop

View File

@ -1,24 +1,17 @@
@extends('base') @extends('simple-layout')
@section('content')
@section('toolbar')
@include('settings/navbar', ['selected' => 'roles']) @include('settings/navbar', ['selected' => 'roles'])
@stop
<div class="container"> @section('body')
<div class="row">
<div class="col-sm-6"> <form action="{{ baseUrl("/settings/roles/{$role->id}") }}" method="POST">
<h1>{{ trans('settings.role_edit') }}</h1> <input type="hidden" name="_method" value="PUT">
</div> <div class="container">
<div class="col-sm-6"> <div class="row">
<p></p> @include('settings/roles/form', ['model' => $role, 'title' => trans('settings.role_edit'), 'icon' => 'edit'])
<a href="{{ baseUrl("/settings/roles/delete/{$role->id}") }}" class="button neg float right">{{ trans('settings.role_delete') }}</a>
</div> </div>
</div> </div>
</form>
<form action="{{ baseUrl("/settings/roles/{$role->id}") }}" method="POST">
<input type="hidden" name="_method" value="PUT">
@include('settings/roles/form', ['model' => $role])
</form>
</div>
@stop @stop

View File

@ -1,169 +1,175 @@
{!! csrf_field() !!} {!! csrf_field() !!}
<div class="row"> <div class="col-md-9">
<div class="card">
<h3><i class="zmdi zmdi-{{$icon}}"></i> {{$title}}</h3>
<div class="body">
<div class="row">
<div class="col-md-5">
<h5>{{ trans('settings.role_details') }}</h5>
<div class="form-group">
<label for="name">{{ trans('settings.role_name') }}</label>
@include('form/text', ['name' => 'display_name'])
</div>
<div class="form-group">
<label for="name">{{ trans('settings.role_desc') }}</label>
@include('form/text', ['name' => 'description'])
</div>
<h5>{{ trans('settings.role_system') }}</h5>
<label>@include('settings/roles/checkbox', ['permission' => 'users-manage']) {{ trans('settings.role_manage_users') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'user-roles-manage']) {{ trans('settings.role_manage_roles') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'restrictions-manage-all']) {{ trans('settings.role_manage_entity_permissions') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'restrictions-manage-own']) {{ trans('settings.role_manage_own_entity_permissions') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'settings-manage']) {{ trans('settings.role_manage_settings') }}</label>
</div>
<div class="col-md-9"> <div class="col-md-6">
<div class="row">
<div class="col-md-5"> <h5>{{ trans('settings.role_asset') }}</h5>
<h3>{{ trans('settings.role_details') }}</h3> <p>{{ trans('settings.role_asset_desc') }}</p>
<div class="form-group">
<label for="name">{{ trans('settings.role_name') }}</label> <table class="table">
@include('form/text', ['name' => 'display_name']) <tr>
<th width="20%"></th>
<th width="20%">{{ trans('common.create') }}</th>
<th width="20%">{{ trans('common.view') }}</th>
<th width="20%">{{ trans('common.edit') }}</th>
<th width="20%">{{ trans('common.delete') }}</th>
</tr>
<tr>
<td>{{ trans('entities.books') }}</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'book-create-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'book-view-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'book-view-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'book-update-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'book-update-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'book-delete-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'book-delete-all']) {{ trans('settings.role_all') }}</label>
</td>
</tr>
<tr>
<td>{{ trans('entities.chapters') }}</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-create-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-create-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-view-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-view-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-update-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-update-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-delete-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-delete-all']) {{ trans('settings.role_all') }}</label>
</td>
</tr>
<tr>
<td>{{ trans('entities.pages') }}</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'page-create-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'page-create-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'page-view-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'page-view-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'page-update-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'page-update-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'page-delete-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'page-delete-all']) {{ trans('settings.role_all') }}</label>
</td>
</tr>
<tr>
<td>{{ trans('entities.images') }}</td>
<td>@include('settings/roles/checkbox', ['permission' => 'image-create-all'])</td>
<td style="line-height:1.2;"><small class="faded">{{ trans('settings.role_controlled_by_asset') }}</small></td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'image-update-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'image-update-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'image-delete-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'image-delete-all']) {{ trans('settings.role_all') }}</label>
</td>
</tr>
<tr>
<td>{{ trans('entities.attachments') }}</td>
<td>@include('settings/roles/checkbox', ['permission' => 'attachment-create-all'])</td>
<td style="line-height:1.2;"><small class="faded">{{ trans('settings.role_controlled_by_asset') }}</small></td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'attachment-update-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'attachment-update-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'attachment-delete-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'attachment-delete-all']) {{ trans('settings.role_all') }}</label>
</td>
</tr>
<tr>
<td>{{ trans('entities.comments') }}</td>
<td>@include('settings/roles/checkbox', ['permission' => 'comment-create-all'])</td>
<td style="line-height:1.2;"><small class="faded">{{ trans('settings.role_controlled_by_asset') }}</small></td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'comment-update-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'comment-update-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'comment-delete-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'comment-delete-all']) {{ trans('settings.role_all') }}</label>
</td>
</tr>
</table>
</div> </div>
<div class="form-group">
<label for="name">{{ trans('settings.role_desc') }}</label>
@include('form/text', ['name' => 'description'])
</div>
<h3>{{ trans('settings.role_system') }}</h3>
<label>@include('settings/roles/checkbox', ['permission' => 'users-manage']) {{ trans('settings.role_manage_users') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'user-roles-manage']) {{ trans('settings.role_manage_roles') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'restrictions-manage-all']) {{ trans('settings.role_manage_entity_permissions') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'restrictions-manage-own']) {{ trans('settings.role_manage_own_entity_permissions') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'settings-manage']) {{ trans('settings.role_manage_settings') }}</label>
</div> </div>
<div class="form-group text-right">
<div class="col-md-6"> <a href="{{ baseUrl("/settings/roles") }}" class="button outline">{{ trans('common.cancel') }}</a>
@if (isset($role) && $role->id)
<h3>{{ trans('settings.role_asset') }}</h3> <a href="{{ baseUrl("/settings/roles/delete/{$role->id}") }}" class="button neg">{{ trans('settings.role_delete') }}</a>
<p>{{ trans('settings.role_asset_desc') }}</p> @endif
<button type="submit" class="button pos">{{ trans('settings.role_save') }}</button>
<table class="table">
<tr>
<th width="20%"></th>
<th width="20%">{{ trans('common.create') }}</th>
<th width="20%">{{ trans('common.view') }}</th>
<th width="20%">{{ trans('common.edit') }}</th>
<th width="20%">{{ trans('common.delete') }}</th>
</tr>
<tr>
<td>{{ trans('entities.books') }}</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'book-create-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'book-view-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'book-view-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'book-update-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'book-update-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'book-delete-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'book-delete-all']) {{ trans('settings.role_all') }}</label>
</td>
</tr>
<tr>
<td>{{ trans('entities.chapters') }}</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-create-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-create-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-view-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-view-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-update-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-update-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-delete-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'chapter-delete-all']) {{ trans('settings.role_all') }}</label>
</td>
</tr>
<tr>
<td>{{ trans('entities.pages') }}</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'page-create-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'page-create-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'page-view-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'page-view-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'page-update-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'page-update-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'page-delete-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'page-delete-all']) {{ trans('settings.role_all') }}</label>
</td>
</tr>
<tr>
<td>{{ trans('entities.images') }}</td>
<td>@include('settings/roles/checkbox', ['permission' => 'image-create-all'])</td>
<td style="line-height:1.2;"><small class="faded">{{ trans('settings.role_controlled_by_asset') }}</small></td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'image-update-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'image-update-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'image-delete-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'image-delete-all']) {{ trans('settings.role_all') }}</label>
</td>
</tr>
<tr>
<td>{{ trans('entities.attachments') }}</td>
<td>@include('settings/roles/checkbox', ['permission' => 'attachment-create-all'])</td>
<td style="line-height:1.2;"><small class="faded">{{ trans('settings.role_controlled_by_asset') }}</small></td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'attachment-update-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'attachment-update-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'attachment-delete-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'attachment-delete-all']) {{ trans('settings.role_all') }}</label>
</td>
</tr>
<tr>
<td>{{ trans('entities.comments') }}</td>
<td>@include('settings/roles/checkbox', ['permission' => 'comment-create-all'])</td>
<td style="line-height:1.2;"><small class="faded">{{ trans('settings.role_controlled_by_asset') }}</small></td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'comment-update-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'comment-update-all']) {{ trans('settings.role_all') }}</label>
</td>
<td>
<label>@include('settings/roles/checkbox', ['permission' => 'comment-delete-own']) {{ trans('settings.role_own') }}</label>
<label>@include('settings/roles/checkbox', ['permission' => 'comment-delete-all']) {{ trans('settings.role_all') }}</label>
</td>
</tr>
</table>
</div> </div>
</div> </div>
<a href="{{ baseUrl("/settings/roles") }}" class="button muted">{{ trans('common.cancel') }}</a>
<button type="submit" class="button pos">{{ trans('settings.role_save') }}</button>
</div> </div>
<div class="col-md-3"> </div>
<h3>{{ trans('settings.role_users') }}</h3> <div class="col-md-3">
<div class="card">
@if(isset($role) && count($role->users) > 0) <h3><i class="zmdi zmdi-accounts"></i> {{ trans('settings.role_users') }}</h3>
<table class="list-table"> <div class="body">
@foreach($role->users as $user) @if(isset($role) && count($role->users) > 0)
<tr> <table class="list-table">
<td style="line-height: 0;"><img class="avatar small" src="{{ $user->getAvatar(40) }}" alt="{{ $user->name }}"></td> @foreach($role->users as $user)
<td> <tr>
@if(userCan('users-manage') || $currentUser->id == $user->id) <td style="line-height: 0;"><img class="avatar small" src="{{ $user->getAvatar(40) }}" alt="{{ $user->name }}"></td>
<a href="{{ baseUrl("/settings/users/{$user->id}") }}"> <td>
@endif @if(userCan('users-manage') || $currentUser->id == $user->id)
{{ $user->name }} <a href="{{ baseUrl("/settings/users/{$user->id}") }}">
@if(userCan('users-manage') || $currentUser->id == $user->id) @endif
</a> {{ $user->name }}
@endif @if(userCan('users-manage') || $currentUser->id == $user->id)
</td> </a>
</tr> @endif
@endforeach </td>
</table> </tr>
@else @endforeach
<p class="text-muted"> </table>
{{ trans('settings.role_users_none') }} @else
</p> <p class="text-muted">
@endif {{ trans('settings.role_users_none') }}
</p>
</div> @endif
</div>
</div>
</div> </div>

View File

@ -1,35 +1,36 @@
@extends('base') @extends('simple-layout')
@section('content')
@section('toolbar')
@include('settings/navbar', ['selected' => 'roles']) @include('settings/navbar', ['selected' => 'roles'])
@stop
@section('body')
<div class="container small"> <div class="container small">
<p>&nbsp;</p>
<div class="card">
<h3><i class="zmdi zmdi-lock-open"></i> {{ trans('settings.role_user_roles') }}</h3>
<div class="body">
<table class="table">
<tr>
<th>{{ trans('settings.role_name') }}</th>
<th></th>
<th class="text-center">{{ trans('settings.users') }}</th>
</tr>
@foreach($roles as $role)
<tr>
<td><a href="{{ baseUrl("/settings/roles/{$role->id}") }}">{{ $role->display_name }}</a></td>
<td>{{ $role->description }}</td>
<td class="text-center">{{ $role->users->count() }}</td>
</tr>
@endforeach
</table>
<div class="row action-header"> <div class="form-group">
<div class="col-sm-8"> <a href="{{ baseUrl("/settings/roles/new") }}" class="button pos">{{ trans('settings.role_create') }}</a>
<h1>{{ trans('settings.role_user_roles') }}</h1> </div>
</div>
<div class="col-sm-4">
<p></p>
<a href="{{ baseUrl("/settings/roles/new") }}" class="button float right pos"><i class="zmdi zmdi-lock-open"></i>{{ trans('settings.role_create') }}</a>
</div> </div>
</div> </div>
<table class="table">
<tr>
<th>{{ trans('settings.role_name') }}</th>
<th></th>
<th class="text-center">{{ trans('settings.users') }}</th>
</tr>
@foreach($roles as $role)
<tr>
<td><a href="{{ baseUrl("/settings/roles/{$role->id}") }}">{{ $role->display_name }}</a></td>
<td>{{ $role->description }}</td>
<td class="text-center">{{ $role->users->count() }}</td>
</tr>
@endforeach
</table>
</div> </div>
@stop @stop

View File

@ -1,31 +1,26 @@
@extends('base') @extends('simple-layout')
@section('toolbar')
@include('settings/navbar', ['selected' => 'users'])
@stop
@section('content') @section('body')
<div class="faded-small toolbar"> <div class="container small" ng-non-bindable>
<div class="container"> <p>&nbsp;</p>
<div class="row"> <div class="card">
<div class="col-sm-12 faded"> <h3><i class="zmdi zmdi-accounts-add"></i> {{ trans('settings.users_add_new') }}</h3>
<div class="breadcrumbs"> <div class="body">
<a href="{{ baseUrl('/settings/users') }}" class="text-button"><i class="zmdi zmdi-accounts"></i>{{ trans('settings.users') }}</a> <form action="{{ baseUrl("/settings/users/create") }}" method="post">
{!! csrf_field() !!}
@include('users/forms/' . $authMethod)
<div class="form-group text-right">
<a href="{{ baseUrl($currentUser->can('users-manage') ? "/settings/users" : "/") }}" class="button outline">{{ trans('common.cancel') }}</a>
<button class="button pos" type="submit">{{ trans('common.save') }}</button>
</div> </div>
</div> </form>
</div> </div>
</div> </div>
</div> </div>
<div class="container small" ng-non-bindable>
<h1>{{ trans('settings.users_add_new') }}</h1>
<form action="{{ baseUrl("/settings/users/create") }}" method="post">
{!! csrf_field() !!}
@include('users/forms/' . $authMethod)
<div class="form-group">
<a href="{{ baseUrl($currentUser->can('users-manage') ? "/settings/users" : "/") }}" class="button muted">{{ trans('common.cancel') }}</a>
<button class="button pos" type="submit">{{ trans('common.save') }}</button>
</div>
</form>
</div>
@stop @stop

View File

@ -1,32 +1,27 @@
@extends('base') @extends('simple-layout')
@section('content') @section('toolbar')
@include('settings/navbar', ['selected' => 'users'])
@stop
<div class="faded-small toolbar"> @section('body')
<div class="container">
<div class="row"> <div class="container small" ng-non-bindable>
<div class="col-sm-12 faded"> <p>&nbsp;</p>
<div class="breadcrumbs"> <div class="card">
<a href="{{ baseUrl("/settings/users") }}" class="text-button"><i class="zmdi zmdi-accounts"></i>Users</a> <h3><i class="zmdi zmdi-delete"></i> {{ trans('settings.users_delete') }}</h3>
<span class="sep">&raquo;</span> <div class="body">
<a href="{{ baseUrl("/settings/users/{$user->id}") }}" class="text-button"><i class="zmdi zmdi-account"></i>{{ $user->name }}</a> <p>{{ trans('settings.users_delete_warning', ['userName' => $user->name]) }}</p>
</div> <p class="text-neg">{{ trans('settings.users_delete_confirm') }}</p>
</div>
<form action="{{ baseUrl("/settings/users/{$user->id}") }}" method="POST">
{!! csrf_field() !!}
<input type="hidden" name="_method" value="DELETE">
<a href="{{ baseUrl("/settings/users/{$user->id}") }}" class="button outline">{{ trans('common.cancel') }}</a>
<button type="submit" class="button neg">{{ trans('common.confirm') }}</button>
</form>
</div> </div>
</div> </div>
</div> </div>
<div class="container small" ng-non-bindable>
<h1>{{ trans('settings.users_delete') }}</h1>
<p>{{ trans('settings.users_delete_warning', ['userName' => $user->name]) }}</p>
<p class="text-neg">{{ trans('settings.users_delete_confirm') }}</p>
<form action="{{ baseUrl("/settings/users/{$user->id}") }}" method="POST">
{!! csrf_field() !!}
<input type="hidden" name="_method" value="DELETE">
<a href="{{ baseUrl("/settings/users/{$user->id}") }}" class="button muted">{{ trans('common.cancel') }}</a>
<button type="submit" class="button neg">{{ trans('common.confirm') }}</button>
</form>
</div>
@stop @stop

View File

@ -1,80 +1,84 @@
@extends('base') @extends('simple-layout')
@section('content')
@section('toolbar')
@include('settings/navbar', ['selected' => 'users']) @include('settings/navbar', ['selected' => 'users'])
@stop
@section('body')
<div class="container small"> <div class="container small">
<form action="{{ baseUrl("/settings/users/{$user->id}") }}" method="post"> <p>&nbsp;</p>
<div class="row"> <div class="card">
<div class="col-sm-8"> <h3><i class="zmdi-edit zmdi"></i> {{ $user->id === $currentUser->id ? trans('settings.users_edit_profile') : trans('settings.users_edit') }}</h3>
<h1>{{ $user->id === $currentUser->id ? trans('settings.users_edit_profile') : trans('settings.users_edit') }}</h1> <div class="body">
</div> <form action="{{ baseUrl("/settings/users/{$user->id}") }}" method="post">
<div class="col-sm-4"> <div class="row">
<p></p> <div class="col-sm-6" ng-non-bindable>
@if($authMethod !== 'system') {!! csrf_field() !!}
<a href="{{ baseUrl("/settings/users/{$user->id}/delete") }}" class="neg button float right">{{ trans('settings.users_delete') }}</a> <input type="hidden" name="_method" value="put">
@endif @include('users.forms.' . $authMethod, ['model' => $user])
</div>
</div>
<div class="row">
<div class="col-sm-6" ng-non-bindable>
{!! csrf_field() !!}
<input type="hidden" name="_method" value="put">
@include('users.forms.' . $authMethod, ['model' => $user])
</div> </div>
<div class="col-sm-6"> <div class="col-sm-6">
<div class="form-group" id="logo-control"> <div class="form-group" id="logo-control">
<label for="user-avatar">{{ trans('settings.users_avatar') }}</label> <label for="user-avatar">{{ trans('settings.users_avatar') }}</label>
<p class="small">{{ trans('settings.users_avatar_desc') }}</p> <p class="small">{{ trans('settings.users_avatar_desc') }}</p>
@include('components.image-picker', [ @include('components.image-picker', [
'resizeHeight' => '512', 'resizeHeight' => '512',
'resizeWidth' => '512', 'resizeWidth' => '512',
'showRemove' => false, 'showRemove' => false,
'defaultImage' => baseUrl('/user_avatar.png'), 'defaultImage' => baseUrl('/user_avatar.png'),
'currentImage' => $user->getAvatar(80), 'currentImage' => $user->getAvatar(80),
'currentId' => $user->image_id, 'currentId' => $user->image_id,
'name' => 'image_id', 'name' => 'image_id',
'imageClass' => 'avatar large' 'imageClass' => 'avatar large'
]) ])
</div> </div>
<div class="form-group"> <div class="form-group">
<label for="user-language">{{ trans('settings.users_preferred_language') }}</label> <label for="user-language">{{ trans('settings.users_preferred_language') }}</label>
<select name="setting[language]" id="user-language"> <select name="setting[language]" id="user-language">
@foreach(trans('settings.language_select') as $lang => $label) @foreach(trans('settings.language_select') as $lang => $label)
<option @if(setting()->getUser($user, 'language') === $lang) selected @endif value="{{ $lang }}">{{ $label }}</option> <option @if(setting()->getUser($user, 'language') === $lang) selected @endif value="{{ $lang }}">{{ $label }}</option>
@endforeach @endforeach
</select> </select>
</div> </div>
</div>
</div>
<div class="form-group">
<a href="{{ baseUrl($currentUser->can('users-manage') ? "/settings/users" : "/") }}" class="button muted">{{ trans('common.cancel') }}</a>
<button class="button pos" type="submit">{{ trans('common.save') }}</button>
</div>
</form>
<hr class="margin-top large">
@if($currentUser->id === $user->id && count($activeSocialDrivers) > 0)
<h3>{{ trans('settings.users_social_accounts') }}</h3>
<p class="text-muted">{{ trans('settings.users_social_accounts_info') }}</p>
<div class="row">
@foreach($activeSocialDrivers as $driver => $enabled)
<div class="col-sm-3 col-xs-6 text-center">
<div>@icon($driver, ['width' => 56])</div>
<div>
@if($user->hasSocialAccount($driver))
<a href="{{ baseUrl("/login/service/{$driver}/detach") }}" class="button neg">{{ trans('settings.users_social_disconnect') }}</a>
@else
<a href="{{ baseUrl("/login/service/{$driver}") }}" class="button pos">{{ trans('settings.users_social_connect') }}</a>
@endif
</div> </div>
</div> </div>
@endforeach <div class="form-group text-right">
<a href="{{ baseUrl($currentUser->can('users-manage') ? "/settings/users" : "/") }}" class="button outline">{{ trans('common.cancel') }}</a>
@if($authMethod !== 'system')
<a href="{{ baseUrl("/settings/users/{$user->id}/delete") }}" class="neg button">{{ trans('settings.users_delete') }}</a>
@endif
<button class="button pos" type="submit">{{ trans('common.save') }}</button>
</div>
</form>
</div>
</div>
@if($currentUser->id === $user->id && count($activeSocialDrivers) > 0)
<div class="card">
<h3><i class="zmdi zmdi-sign-in"></i> {{ trans('settings.users_social_accounts') }}</h3>
<div class="body">
<p class="text-muted">{{ trans('settings.users_social_accounts_info') }}</p>
<div class="container">
<div class="row">
@foreach($activeSocialDrivers as $driver => $enabled)
<div class="col-sm-4 col-xs-6 text-center">
<div>@icon($driver, ['width' => 56])</div>
<div>
@if($user->hasSocialAccount($driver))
<a href="{{ baseUrl("/login/service/{$driver}/detach") }}" class="button neg">{{ trans('settings.users_social_disconnect') }}</a>
@else
<a href="{{ baseUrl("/login/service/{$driver}") }}" class="button pos">{{ trans('settings.users_social_connect') }}</a>
@endif
</div>
<div>&nbsp;</div>
</div>
@endforeach
</div>
</div>
</div>
</div> </div>
@endif @endif

View File

@ -1,80 +1,77 @@
@extends('base') @extends('simple-layout')
@section('content')
@section('toolbar')
@include('settings/navbar', ['selected' => 'users']) @include('settings/navbar', ['selected' => 'users'])
@stop
@section('body')
<div class="container small" ng-non-bindable> <div class="container small" ng-non-bindable>
<div class="row action-header"> <p>&nbsp;</p>
<div class="col-sm-8"> <div class="card">
<h1>{{ trans('settings.users') }}</h1> <h3><i class="zmdi zmdi-accounts"></i> {{ trans('settings.users') }}</h3>
</div> <div class="body">
<div class="col-sm-4"> <div class="container">
<p></p> <div class="row">
@if(userCan('users-manage')) <div class="col-sm-4">
<a href="{{ baseUrl("/settings/users/create") }}" class="pos button float right"><i class="zmdi zmdi-account-add"></i>{{ trans('settings.users_add_new') }}</a> <form method="get" action="{{ baseUrl("/settings/users") }}">
@endif @foreach(collect($listDetails)->except('search') as $name => $val)
</div> <input type="hidden" name="{{ $name }}" value="{{ $val }}">
</div> @endforeach
<input type="text" name="search" placeholder="{{ trans('settings.users_search') }}" @if($listDetails['search']) value="{{$listDetails['search']}}" @endif>
</form>
</div>
<div class="col-sm-8 text-right">
@if(userCan('users-manage'))
<a href="{{ baseUrl("/settings/users/create") }}" style="margin-top: 0;" class="pos button">{{ trans('settings.users_add_new') }}</a>
@endif
</div>
</div>
</div>
<div class="row"> <table class="table">
<div class="col-sm-8"> <tr>
<div class="compact"> <th></th>
<th><a href="{{ sortUrl('/settings/users', $listDetails, ['sort' => 'name']) }}">{{ trans('auth.name') }}</a></th>
<th><a href="{{ sortUrl('/settings/users', $listDetails, ['sort' => 'email']) }}">{{ trans('auth.email') }}</a></th>
<th>{{ trans('settings.role_user_roles') }}</th>
</tr>
@foreach($users as $user)
<tr>
<td style="line-height: 0;"><img class="avatar med" src="{{ $user->getAvatar(40)}}" alt="{{ $user->name }}"></td>
<td>
@if(userCan('users-manage') || $currentUser->id == $user->id)
<a href="{{ baseUrl("/settings/users/{$user->id}") }}">
@endif
{{ $user->name }}
@if(userCan('users-manage') || $currentUser->id == $user->id)
</a>
@endif
</td>
<td>
@if(userCan('users-manage') || $currentUser->id == $user->id)
<a href="{{ baseUrl("/settings/users/{$user->id}") }}">
@endif
{{ $user->email }}
@if(userCan('users-manage') || $currentUser->id == $user->id)
</a>
@endif
</td>
<td>
@foreach($user->roles as $index => $role)
<small><a href="{{ baseUrl("/settings/roles/{$role->id}") }}">{{$role->display_name}}</a>@if($index !== count($user->roles) -1),@endif</small>
@endforeach
</td>
</tr>
@endforeach
</table>
<div>
{{ $users->links() }} {{ $users->links() }}
</div> </div>
</div>
<div class="col-sm-4">
<form method="get" class="float right" action="{{ baseUrl("/settings/users") }}">
@foreach(collect($listDetails)->except('search') as $name => $val)
<input type="hidden" name="{{ $name }}" value="{{ $val }}">
@endforeach
<input type="text" name="search" placeholder="{{ trans('settings.users_search') }}" @if($listDetails['search']) value="{{$listDetails['search']}}" @endif>
</form>
</div> </div>
</div> </div>
<table class="table">
<tr>
<th></th>
<th><a href="{{ sortUrl('/settings/users', $listDetails, ['sort' => 'name']) }}">{{ trans('auth.name') }}</a></th>
<th><a href="{{ sortUrl('/settings/users', $listDetails, ['sort' => 'email']) }}">{{ trans('auth.email') }}</a></th>
<th>{{ trans('settings.role_user_roles') }}</th>
</tr>
@foreach($users as $user)
<tr>
<td style="line-height: 0;"><img class="avatar med" src="{{ $user->getAvatar(40)}}" alt="{{ $user->name }}"></td>
<td>
@if(userCan('users-manage') || $currentUser->id == $user->id)
<a href="{{ baseUrl("/settings/users/{$user->id}") }}">
@endif
{{ $user->name }}
@if(userCan('users-manage') || $currentUser->id == $user->id)
</a>
@endif
</td>
<td>
@if(userCan('users-manage') || $currentUser->id == $user->id)
<a href="{{ baseUrl("/settings/users/{$user->id}") }}">
@endif
{{ $user->email }}
@if(userCan('users-manage') || $currentUser->id == $user->id)
</a>
@endif
</td>
<td>
@foreach($user->roles as $index => $role)
<small><a href="{{ baseUrl("/settings/roles/{$role->id}") }}">{{$role->display_name}}</a>@if($index !== count($user->roles) -1),@endif</small>
@endforeach
</td>
</tr>
@endforeach
</table>
<div>
{{ $users->links() }}
</div>
</div> </div>
@stop @stop

View File

@ -1,76 +1,81 @@
@extends('base') @extends('sidebar-layout')
@section('content') @section('toolbar')
<div class="col-sm-6 col-xs-1 faded">
<div class="breadcrumbs">
<a href="{{ $user->getProfileUrl() }}" class="text-button"><i class="zmdi zmdi-account"></i>{{ $user->name }}</a>
</div>
</div>
@stop
@section('sidebar')
<div class="card" id="recent-activity">
<h3><i class="zmdi zmdi-time"></i> {{ trans('entities.recent_activity') }}</h3>
@include('partials/activity-list', ['activity' => $activity])
</div>
@stop
@section('body')
<div class="container small" ng-non-bindable>
<div class="padded-top large"></div>
<div class="container" ng-non-bindable>
<div class="row"> <div class="row">
<div class="col-sm-7"> <div class="col-md-7">
<div class="clearfix">
<div class="padded-top large"></div> <div class="padded-right float left">
<img class="avatar square huge" src="{{ $user->getAvatar(120) }}" alt="{{ $user->name }}">
<div class="row">
<div class="col-md-7">
<div class="clearfix">
<div class="padded-right float left">
<img class="avatar square huge" src="{{ $user->getAvatar(120) }}" alt="{{ $user->name }}">
</div>
<div>
<h3 style="margin-top: 0;">{{ $user->name }}</h3>
<p class="text-muted">
{{ trans('entities.profile_user_for_x', ['time' => $user->created_at->diffForHumans(null, true)]) }}
</p>
</div>
</div>
</div> </div>
<div class="col-md-5 text-bigger" id="content-counts"> <div>
<div class="text-muted">{{ trans('entities.profile_created_content') }}</div> <h3 style="margin-top: 0;">{{ $user->name }}</h3>
<div class="text-book"> <p class="text-muted">
<i class="zmdi zmdi-book zmdi-hc-fw"></i> {{ $assetCounts['books'] }} {{ str_plural(trans('entities.book'), $assetCounts['books']) }} {{ trans('entities.profile_user_for_x', ['time' => $user->created_at->diffForHumans(null, true)]) }}
</div> </p>
<div class="text-chapter">
<i class="zmdi zmdi-collection-bookmark zmdi-hc-fw"></i> {{ $assetCounts['chapters'] }} {{ str_plural(trans('entities.chapter'), $assetCounts['chapters']) }}
</div>
<div class="text-page">
<i class="zmdi zmdi-file-text zmdi-hc-fw"></i> {{ $assetCounts['pages'] }} {{ str_plural(trans('entities.page'), $assetCounts['pages']) }}
</div>
</div> </div>
</div> </div>
<hr class="even">
<h3>{{ trans('entities.recently_created_pages') }}</h3>
@if (count($recentlyCreated['pages']) > 0)
@include('partials/entity-list', ['entities' => $recentlyCreated['pages']])
@else
<p class="text-muted">{{ trans('entities.profile_not_created_pages', ['userName' => $user->name]) }}</p>
@endif
<hr class="even">
<h3>{{ trans('entities.recently_created_chapters') }}</h3>
@if (count($recentlyCreated['chapters']) > 0)
@include('partials/entity-list', ['entities' => $recentlyCreated['chapters']])
@else
<p class="text-muted">{{ trans('entities.profile_not_created_chapters', ['userName' => $user->name]) }}</p>
@endif
<hr class="even">
<h3>{{ trans('entities.recently_created_books') }}</h3>
@if (count($recentlyCreated['books']) > 0)
@include('partials/entity-list', ['entities' => $recentlyCreated['books']])
@else
<p class="text-muted">{{ trans('entities.profile_not_created_books', ['userName' => $user->name]) }}</p>
@endif
</div> </div>
<div class="col-md-5 text-bigger" id="content-counts">
<div class="col-sm-4 col-sm-offset-1" id="recent-activity"> <div class="text-muted">{{ trans('entities.profile_created_content') }}</div>
<h3>{{ trans('entities.recent_activity') }}</h3> <div class="text-book">
@include('partials/activity-list', ['activity' => $activity]) <i class="zmdi zmdi-book zmdi-hc-fw"></i> {{ $assetCounts['books'] }} {{ str_plural(trans('entities.book'), $assetCounts['books']) }}
</div>
<div class="text-chapter">
<i class="zmdi zmdi-collection-bookmark zmdi-hc-fw"></i> {{ $assetCounts['chapters'] }} {{ str_plural(trans('entities.chapter'), $assetCounts['chapters']) }}
</div>
<div class="text-page">
<i class="zmdi zmdi-file-text zmdi-hc-fw"></i> {{ $assetCounts['pages'] }} {{ str_plural(trans('entities.page'), $assetCounts['pages']) }}
</div>
</div> </div>
</div> </div>
<hr class="even">
<h3>{{ trans('entities.recently_created_pages') }}</h3>
@if (count($recentlyCreated['pages']) > 0)
@include('partials/entity-list', ['entities' => $recentlyCreated['pages']])
@else
<p class="text-muted">{{ trans('entities.profile_not_created_pages', ['userName' => $user->name]) }}</p>
@endif
<hr class="even">
<h3>{{ trans('entities.recently_created_chapters') }}</h3>
@if (count($recentlyCreated['chapters']) > 0)
@include('partials/entity-list', ['entities' => $recentlyCreated['chapters']])
@else
<p class="text-muted">{{ trans('entities.profile_not_created_chapters', ['userName' => $user->name]) }}</p>
@endif
<hr class="even">
<h3>{{ trans('entities.recently_created_books') }}</h3>
@if (count($recentlyCreated['books']) > 0)
@include('partials/entity-list', ['entities' => $recentlyCreated['books']])
@else
<p class="text-muted">{{ trans('entities.profile_not_created_books', ['userName' => $user->name]) }}</p>
@endif
</div> </div>