mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-15 11:04:30 +00:00
f718efcc95
* Make followers list flush on mobile * Make followers list flush on mobile * Add message for no saved posts Signed-off-by: Marcin Mikołajczak <me@m4sk.in> * add MySQL version req to README.md * adding back example file, deleted accidentally * and remove extra empty line, no need to cause a change in the repo * make clear which version of MySQL is supported * Unsquish tag-page avatars Fix #374 * Fix usernames escaping div and make images link to users * Fix Nginx config
99 lines
3.1 KiB
PHP
99 lines
3.1 KiB
PHP
@extends('layouts.app',['title' => $user->username . " on " . config('app.name')])
|
|
|
|
@section('content')
|
|
|
|
@include('profile.partial.user-info')
|
|
|
|
@if(true === $owner)
|
|
<div>
|
|
<ul class="nav nav-topbar d-flex justify-content-center border-0">
|
|
<li class="nav-item">
|
|
<a class="nav-link {{request()->is('*/saved') ? '':'active'}} font-weight-bold text-uppercase" href="{{$user->url()}}">Posts</a>
|
|
</li>
|
|
<li class="nav-item">
|
|
<a class="nav-link {{request()->is('*/saved') ? 'active':''}} font-weight-bold text-uppercase" href="{{$user->url('/saved')}}">Saved</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
@endif
|
|
<div class="container">
|
|
@if($owner && request()->is('*/saved'))
|
|
<div class="col-12">
|
|
<p class="text-muted font-weight-bold small">{{__('profile.savedWarning')}}</p>
|
|
</div>
|
|
@endif
|
|
<div class="profile-timeline mt-2 mt-md-4">
|
|
<div class="row">
|
|
@if($timeline->count() > 0)
|
|
@foreach($timeline as $status)
|
|
<div class="col-4 p-0 p-sm-2 p-md-3">
|
|
<a class="card info-overlay card-md-border-0" href="{{$status->url()}}">
|
|
<div class="square {{$status->firstMedia()->filter_class}}">
|
|
<div class="square-content" style="background-image: url('{{$status->thumb()}}')"></div>
|
|
<div class="info-overlay-text">
|
|
<h5 class="text-white m-auto font-weight-bold">
|
|
<span class="pr-4">
|
|
<span class="far fa-heart fa-lg pr-1"></span> {{$status->likes_count}}
|
|
</span>
|
|
<span>
|
|
<span class="far fa-comment fa-lg pr-1"></span> {{$status->comments_count}}
|
|
</span>
|
|
</h5>
|
|
</div>
|
|
</div>
|
|
</a>
|
|
</div>
|
|
@endforeach
|
|
</div>
|
|
</div>
|
|
<div class="pagination-container">
|
|
<div class="d-flex justify-content-center">
|
|
{{$timeline->links()}}
|
|
</div>
|
|
</div>
|
|
@else
|
|
<div class="col-12">
|
|
<div class="card">
|
|
<div class="card-body py-5 my-5">
|
|
<div class="d-flex my-5 py-5 justify-content-center align-items-center">
|
|
@if($owner && request()->is('*/saved'))
|
|
<p class="lead font-weight-bold">{{ __('profile.emptySaved') }}</p>
|
|
@else
|
|
<p class="lead font-weight-bold">{{ __('profile.emptyTimeline') }}</p>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
</div>
|
|
|
|
@endsection
|
|
|
|
@push('meta')<meta property="og:description" content="{{$user->bio}}">
|
|
<meta property="og:image" content="{{$user->avatarUrl()}}">
|
|
@if(false == $settings->crawlable || $user->remote_url)
|
|
<meta name="robots" content="noindex, nofollow">
|
|
@endif
|
|
@endpush
|
|
|
|
@push('scripts')
|
|
<script type="text/javascript">
|
|
$(document).ready(function() {
|
|
$('.pagination-container').hide();
|
|
$('.pagination').hide();
|
|
let elem = document.querySelector('.profile-timeline');
|
|
let infScroll = new InfiniteScroll( elem, {
|
|
path: '.pagination__next',
|
|
append: '.profile-timeline',
|
|
status: '.page-load-status',
|
|
history: false,
|
|
});
|
|
});
|
|
</script>
|
|
|
|
@endpush
|
|
|