jonnybarnes.uk/resources/views/bookmarks/index.blade.php

42 lines
1.1 KiB
PHP
Raw Normal View History

2017-10-10 15:58:07 +01:00
@extends('master')
@section('title')
Bookmarks «
@stop
@section('content')
<div class="h-feed">
@foreach($bookmarks as $bookmark)
<div class="h-entry">
<a class="u-bookmark-of<?php if ($bookmark->name !== null) { echo ' h-cite'; } ?>" href="{{ $bookmark->url }}">
@isset($bookmark->name)
{{ $bookmark->name }}
@endisset
@empty($bookmark->name)
{{ $bookmark->url }}
@endempty
</a> &nbsp; <a href="/bookmarks/{{ $bookmark->id }}">🔗</a>
2017-10-11 16:30:09 +01:00
@isset($bookmark->content)
<p>{{ $bookmark->content }}</p>
@endisset
2017-10-13 12:31:31 +01:00
@isset($bookmark->screenshot)
<img src="/assets/img/bookmarks/{{ $bookmark->screenshot }}.png">
@endisset
2017-10-13 12:55:53 +01:00
@isset($bookmark->archive)
<p><a href="https://web.archive.org{{ $bookmark->archive }}">Internet Archive backup</a></p>
@endisset
2017-10-11 18:04:05 +01:00
@if($bookmark->tags_count > 0)
2017-10-11 16:30:09 +01:00
<ul>
@foreach($bookmark->tags as $tag)
<li><a href="/bookmarks/tagged/{{ $tag->tag }}">{{ $tag->tag }}</a></li>
@endforeach
</ul>
@endif
2017-10-10 15:58:07 +01:00
</div>
@endforeach
</div>
2017-10-11 16:30:09 +01:00
{{ $bookmarks->links() }}
2017-10-10 15:58:07 +01:00
@stop