Tweaking of code, along with deleting cached view files have got tests working locally again
This commit is contained in:
parent
721cbc541b
commit
c50d8a7b51
10 changed files with 56 additions and 50 deletions
36
resources/views/articles.blade.php
Normal file
36
resources/views/articles.blade.php
Normal file
|
@ -0,0 +1,36 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
Articles «
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
|
||||
@if (count($articles) == 0)
|
||||
<p>No articles exist for this time.</p>
|
||||
@endif
|
||||
|
||||
@foreach ($articles as $article)
|
||||
@if ($article->url != '')<article class="link h-entry">@else<article class="h-entry">@endif
|
||||
<header>
|
||||
<h1 class="p-name">
|
||||
@if($article->url == '')
|
||||
<a href="{{ $article->link }}">{{ $article->title }}</a>
|
||||
@else
|
||||
<a href="{{ $article->url }}">{{ $article->title }}</a>
|
||||
@endif
|
||||
</h1>
|
||||
<span class="post-info">Posted <time class="dt-published" title="{{ $article->tooltip_time }}" datetime="{{ $article->w3c_time }}">{{ $article->human_time }}</time> - <a title="Permalink" href="{{ $article->link }}">⚓</a></span>
|
||||
</header>
|
||||
<div class="e-content">
|
||||
{!! $article['main'] !!}
|
||||
</div>
|
||||
</article>
|
||||
@endforeach
|
||||
{{ $articles->links() }}
|
||||
@stop
|
||||
|
||||
@section('scripts')
|
||||
<script src="/assets/prism/prism.js"></script>
|
||||
<link rel="stylesheet" href="/assets/prism/prism.css">
|
||||
@stop
|
|
@ -1,11 +1,11 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
Contacts «
|
||||
Contacts «
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@foreach($contacts as $contact)
|
||||
@include('templates.contact', array('contact' => $contact))
|
||||
@include('templates.contact', ['contact' => $contact])
|
||||
@endforeach
|
||||
@stop
|
||||
|
|
|
@ -1,30 +0,0 @@
|
|||
@extends('master')
|
||||
|
||||
@section('title')
|
||||
Articles «
|
||||
@stop
|
||||
|
||||
@section('content')
|
||||
@if (count($data) == 0)
|
||||
<p>No articles exist for this time.</p>
|
||||
@endif
|
||||
@foreach ($data as $article)
|
||||
@if ($article['url'] != '')<article class="link h-entry">@else<article class="h-entry">@endif
|
||||
<header>
|
||||
<h1 class="p-name">
|
||||
<a href="@if($article['url'] == ''){{ $article['link'] }}@else{{ $article['url'] }}@endif">{{ $article['title'] }}</a>
|
||||
</h1>
|
||||
<span class="post-info">Posted <time class="dt-published" title="{{ $article['tooltip_time'] }}" datetime="{{ $article['w3c_time'] }}">{{ $article['human_time'] }}</time> - <a title="Permalink" href="{{ $article['link'] }}">⚓</a></span>
|
||||
</header>
|
||||
<div class="e-content">
|
||||
{!! $article['main'] !!}
|
||||
</div>
|
||||
</article>
|
||||
@endforeach
|
||||
{!! $data->render() !!}
|
||||
@stop
|
||||
|
||||
@section('scripts')
|
||||
<script src="/assets/prism/prism.js"></script>
|
||||
<link rel="stylesheet" href="/assets/prism/prism.css">
|
||||
@stop
|
|
@ -11,7 +11,12 @@
|
|||
@foreach($articles as $article)
|
||||
<item>
|
||||
<title>{{ strip_tags($article->title) }}</title>
|
||||
<description><![CDATA[{{ $article->main }}@if($article->url)<p><a href="{{ config('app.url') }}{{ $article->link }}">Permalink</a></p>@endif]]></description>
|
||||
<description>
|
||||
<![CDATA[
|
||||
{{ $article->main }}
|
||||
@if($article->url)<p><a href="{{ config('app.url') }}{{ $article->link }}">Permalink</a></p>@endif
|
||||
]]>
|
||||
</description>
|
||||
<link>@if($article->url != ''){{ $article->url }}@else{{ config('app.url') }}{{ $article->link }}@endif</link>
|
||||
<guid>{{ config('app.url') }}{{ $article->link }}</guid>
|
||||
<pubDate>{{ $article->pubdate }}</pubDate>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue