pixelfed/resources/views/profile/show.blade.php

67 lines
2.1 KiB
PHP
Raw Normal View History

@extends('layouts.app',['title' => $user->username . " on " . config('app.name')])
2018-05-30 02:38:21 +00:00
@section('content')
2018-06-03 16:19:13 +00:00
@include('profile.partial.user-info')
2018-05-30 02:38:21 +00:00
2018-06-03 16:19:13 +00:00
@if($owner == true)
<div>
2018-06-06 14:51:24 +00:00
<ul class="nav nav-topbar d-flex justify-content-center border-0">
2018-06-03 16:19:13 +00:00
<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">
2018-05-30 02:38:21 +00:00
<div class="profile-timeline mt-5 row">
2018-05-31 22:08:04 +00:00
@if($owner && request()->is('*/saved'))
<div class="col-12">
<p class="text-muted font-weight-bold small">{{__('profile.savedWarning')}}</p>
</div>
@endif
2018-05-30 02:38:21 +00:00
@if($timeline->count() > 0)
2018-06-03 16:19:13 +00:00
@foreach($timeline as $status)
<div class="col-12 col-md-4 mb-4">
<a class="card info-overlay" href="{{$status->url()}}">
2018-06-14 02:57:16 +00:00
<div class="square {{$status->firstMedia()->filter_class}}">
2018-06-03 16:19:13 +00:00
<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}}
2018-06-03 16:19:13 +00:00
</span>
<span>
<span class="far fa-comment fa-lg pr-1"></span> {{$status->comments_count}}
2018-06-03 16:19:13 +00:00
</span>
</h5>
2018-06-02 04:25:12 +00:00
</div>
2018-06-03 16:19:13 +00:00
</div>
</a>
</div>
@endforeach
2018-05-30 02:38:21 +00:00
@else
2018-06-03 16:19:13 +00:00
<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">
<p class="lead font-weight-bold">{{ __('profile.emptyTimeline') }}</p>
2018-05-30 02:38:21 +00:00
</div>
</div>
</div>
2018-06-03 16:19:13 +00:00
</div>
2018-05-30 02:38:21 +00:00
@endif
</div>
</div>
@endsection
@push('meta')
<meta property="og:description" content="{{$user->bio}}">
<meta property="og:image" content="{{$user->avatarUrl()}}">
@endpush
2018-06-04 22:10:37 +00:00