BookStack/resources/views/users/profile.blade.php

77 lines
3.5 KiB
PHP
Raw Normal View History

2016-02-16 16:25:11 -05:00
@extends('base')
@section('content')
<div class="container" ng-non-bindable>
<div class="row">
2016-02-17 17:11:48 -05:00
<div class="col-sm-7">
2016-02-16 16:25:11 -05:00
<div class="padded-top large"></div>
2016-02-17 17:11:48 -05:00
<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 }}">
2016-02-17 17:11:48 -05:00
</div>
<div>
<h3 style="margin-top: 0;">{{ $user->name }}</h3>
<p class="text-muted">
2016-12-04 09:08:04 -05:00
{{ trans('entities.profile_user_for_x', ['time' => $user->created_at->diffForHumans(null, true)]) }}
2016-02-17 17:11:48 -05:00
</p>
</div>
</div>
</div>
2016-02-18 14:32:07 -05:00
<div class="col-md-5 text-bigger" id="content-counts">
2016-12-04 09:08:04 -05:00
<div class="text-muted">{{ trans('entities.profile_created_content') }}</div>
2016-02-17 17:11:48 -05:00
<div class="text-book">
2016-12-04 09:08:04 -05:00
<i class="zmdi zmdi-book zmdi-hc-fw"></i> {{ $assetCounts['books'] }} {{ str_plural(trans('entities.book'), $assetCounts['books']) }}
2016-02-17 17:11:48 -05:00
</div>
<div class="text-chapter">
2016-12-04 09:08:04 -05:00
<i class="zmdi zmdi-collection-bookmark zmdi-hc-fw"></i> {{ $assetCounts['chapters'] }} {{ str_plural(trans('entities.chapter'), $assetCounts['chapters']) }}
2016-02-17 17:11:48 -05:00
</div>
<div class="text-page">
2016-12-04 09:08:04 -05:00
<i class="zmdi zmdi-file-text zmdi-hc-fw"></i> {{ $assetCounts['pages'] }} {{ str_plural(trans('entities.page'), $assetCounts['pages']) }}
2016-02-17 17:11:48 -05:00
</div>
</div>
</div>
<hr class="even">
2016-12-04 09:08:04 -05:00
<h3>{{ trans('entities.recently_created_pages') }}</h3>
2016-02-17 17:11:48 -05:00
@if (count($recentlyCreated['pages']) > 0)
@include('partials/entity-list', ['entities' => $recentlyCreated['pages']])
@else
2016-12-04 09:08:04 -05:00
<p class="text-muted">{{ trans('entities.profile_not_created_pages', ['userName' => $user->name]) }}</p>
2016-02-17 17:11:48 -05:00
@endif
<hr class="even">
2016-12-04 09:08:04 -05:00
<h3>{{ trans('entities.recently_created_chapters') }}</h3>
2016-02-17 17:11:48 -05:00
@if (count($recentlyCreated['chapters']) > 0)
@include('partials/entity-list', ['entities' => $recentlyCreated['chapters']])
@else
2016-12-04 09:08:04 -05:00
<p class="text-muted">{{ trans('entities.profile_not_created_chapters', ['userName' => $user->name]) }}</p>
2016-02-17 17:11:48 -05:00
@endif
<hr class="even">
2016-12-04 09:08:04 -05:00
<h3>{{ trans('entities.recently_created_books') }}</h3>
2016-02-17 17:11:48 -05:00
@if (count($recentlyCreated['books']) > 0)
@include('partials/entity-list', ['entities' => $recentlyCreated['books']])
@else
2016-12-04 09:08:04 -05:00
<p class="text-muted">{{ trans('entities.profile_not_created_books', ['userName' => $user->name]) }}</p>
2016-02-17 17:11:48 -05:00
@endif
2016-02-16 16:25:11 -05:00
</div>
2016-02-18 14:32:07 -05:00
<div class="col-sm-4 col-sm-offset-1" id="recent-activity">
2016-12-04 09:08:04 -05:00
<h3>{{ trans('entities.recent_activity') }}</h3>
2016-02-16 16:25:11 -05:00
@include('partials/activity-list', ['activity' => $activity])
</div>
</div>
</div>
@stop