mas mejoras generales al ui, me gusta hacer eso

This commit is contained in:
Daniel Cortés
2019-10-15 18:22:09 -03:00
parent 9f77ef6dd4
commit 2a6fc094fa
11 changed files with 74 additions and 38 deletions

View File

@@ -1,5 +1,4 @@
@extends('admin.base')
@section('content')
<h1>Admin Panel</h1>
@endsection

View File

@@ -1,12 +1,15 @@
@extends('base')
@section('content')
<h1>Archivo</h1>
<ul>
@foreach($posts as $post)
<li>
<a href="{{ route('blog.show', ['post' => $post->id]) }}">{{$post->title}}</a> <span>({{$post->created_at->format('Y-m-d')}})</span>
</li>
@endforeach
</ul>
<article>
<h1>Archivo</h1>
<ul>
@foreach($posts as $post)
<li>
<a href="{{ route('blog.show', ['post' => $post->id]) }}">{{$post->title}}</a>
<time datetime="{{ $post->created_at->toDateString() }}"> {{ $post->created_at->toFormattedDateString() }} </time>
</li>
@endforeach
</ul>
</article>
@endsection

View File

@@ -8,7 +8,8 @@
@foreach($posts as $post)
<article>
<header>
<h1>{{$post->title}}</h1>
<h1><a class="post-title" href="{{ route('blog.show', ['post' => $post->id])}}">{{$post->title}}</a></h1>
<time datetime="{{ $post->created_at->toDateString() }}"> {{ $post->created_at->toFormattedDateString() }} </time>
</header>
{!! $parse->text($post->md) !!}
</article>

View File

@@ -7,7 +7,7 @@
@section('content')
<article>
<header>
<h1>{{$post->title}}</h1>
<h1 class="post-title">{{$post->title}}</h1>
</header>
{!! $parse->text($post->md) !!}
</article>

View File

@@ -1,5 +1,4 @@
@extends('base')
@section('content')
<h1>Home</h1>
@endsection

View File

@@ -7,7 +7,7 @@
@section('content')
<article>
<header>
<h1>Now</h1>
<h1 class="post-title">Now</h1>
</header>
{!! $parse->text($now->md) !!}
</article>

View File

@@ -8,7 +8,7 @@
@foreach($projects as $project)
<article>
<header>
<h1>{{ $project->title }}</h1>
<h1 class="post-title">{{ $project->title }}</h1>
</header>
{!! $parse->text($project->md) !!}

View File

@@ -8,7 +8,7 @@
@foreach($setups as $setup)
<article>
<header>
<h1>{{$setup->title}}</h1>
<h1 class="post-title">{{$setup->title}}</h1>
</header>
{!! $parse->text($setup->md) !!}
</article>

View File

@@ -1,15 +0,0 @@
@extends('base')
@php
$parse = new Parsedown();
@endphp
@section('content')
<article>
<header>
<h1>{{$setup->title}}</h1>
</header>
{!! $parse->text($setup->md) !!}
</article>
<hr/>
@endsection