Add Contacts tests

This commit is contained in:
Jonny Barnes 2017-02-18 14:16:22 +00:00
parent b84f8278b6
commit ebb13b905f
5 changed files with 50 additions and 6 deletions

View file

@ -6,6 +6,6 @@ Contacts «
@section('content')
@foreach($contacts as $contact)
@include('templates.contact', ['contact' => $contact])
@include('templates.contact', ['contact' => $contact, 'image' => $contact->image])
@endforeach
@stop

View file

@ -1,9 +1,9 @@
@extends('master')
@section('title')
Contacts «
Contacts «
@stop
@section('content')
@include('templates.contact', array('contact' => $contact))
@include('templates.contact', ['contact' => $contact, 'image' => $image])
@stop

View file

@ -1,6 +1,6 @@
<div class="h-card contact">
<div>
<img src="{{ $contact->image }}" alt="" class="u-photo">
<img src="{{ $image }}" alt="" class="u-photo">
</div>
<div>
<span class="p-name">{{ $contact->name }}</span> <a href="/contacts/{{ $contact->nick }}">{{ '@' . $contact->nick }}</a>