Projekt

Obecné

Profil

« Předchozí | Další » 

Revize e7d6bdce

Přidáno uživatelem Adam Mištera před více než 4 roky(ů)

Issue #7690 @2h
[+] Napojení detailu poznámek
[+] Refraktoring, stylování, přidání font-awesome
[+] Gitignore na vygenerované fonty

Zobrazit rozdíly:

resources/views/detail/index.blade.php
1 1
@extends('layouts.app')
2 2

  
3
@section('title', 'Detail')
4

  
5
@section('breadcrumb')
6
    <li class="breadcrumb-item" aria-current="page"><a href="{{ url('/') }}">Home</a></li>
7
    <li class="breadcrumb-item" aria-current="page"><a href="{{ url('/artefact') }}">Artefacts</a></li>
8
    <li class="breadcrumb-item" aria-current="page"><a href="{{ url('/artefact/' . $id) }}">Artefact</a></li>
9
    <li class="breadcrumb-item active" aria-current="page">Notes</li>
10
@endsection
11

  
3 12
@section('content')
4
    <h1>{{$arrArtefact->name}}</h1>
5
    <p>The id of the book is {{$id}}</p>
13
    <div class="jumbotron">
14
        <div class="text-center">
15
            @if (isset($arrArtefact))
16
                <h1>Notes list</h1>
17
                <p>
18
                    Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
19
                    Mauris dolor felis, sagittis at, luctus sed, aliquam non, tellus.
20
                    Fusce tellus odio, dapibus id fermentum quis, suscipit id erat.
21
                    Morbi scelerisque luctus velit. Vivamus porttitor turpis ac leo.
22
                    Morbi scelerisque luctus velit.
23
                    Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
24
                </p>
25
            @else
26
                <h2>Given artefact does not exist!</h2>
27
            @endif
28
        </div>
29
    </div>
6 30
    @if(isset($arrArtefact))
7
        <p>{{$arrArtefact->author}}, {{$arrArtefact->year}}, {{$arrArtefact->pages}} pages, {{count($likes)}} likes</p>
8
{{--        <p><?php dd($metadata); ?></p>--}}
9
        @if(count($metadata) >= 1)
31
        <div class="artefact-area text-center mb-4">
32
            <h2>{{$arrArtefact->name}}</h2>
33
            <h4>{{$arrArtefact->author}}, {{$arrArtefact->year}}</h4>
34
            <h5 class="text-muted">{{$arrArtefact->pages}} pages, <i class="fas fa-thumbs-up"></i> {{$likes}}</h5>
35
        </div>
36
        @if(count($metadata) > 0)
10 37
            <ul class="list-group">
11 38
            @foreach($metadata as $meta)
39
                <div class="note-area mb-3">
12 40
                    <li class="list-group-item">
13
                    On {{$meta->page}} page:<br>
14
                    {{$meta->noteCZ}}<br>
15
                    {{$meta->noteEN}}<br>
16
                </li>
17
                <br>
41
                        On {{$meta->page}} page:<br>
42
                        {{$meta->noteCZ}}<br>
43
                        {{$meta->noteEN}}<br>
44
                    </li>
45
                </div>
18 46
            @endforeach
19 47
            </ul>
20 48
        @else
......
24 52
                </li>
25 53
            </ul>
26 54
        @endif
27
    @else
28
        <ul class="list-group">
29
            <li class="list-group-item">
30
                <h3>Not found the Artefact in the database with number id {{$id}}!</h3>
31
            </li>
32
        </ul>
33 55
    @endif
34 56
@endsection

Také k dispozici: Unified diff