Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Platform
Commits
a75693f1
Commit
a75693f1
authored
Nov 28, 2014
by
Nicolas Widart
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding the blog pages
parent
1811d46a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
index.blade.php
Themes/demo/blog/index.blade.php
+24
-0
show.blade.php
Themes/demo/blog/show.blade.php
+19
-0
No files found.
Themes/demo/blog/index.blade.php
0 → 100644
View file @
a75693f1
@extends('layouts.master')
@section('title')
Blog posts | @parent
@stop
@section('content')
<div
class=
"row"
>
<div
class=
"col-md-12"
>
<h1>
Blog
</h1>
<?php
if
(
isset
(
$posts
))
:
?>
<ul>
<?php
foreach
(
$posts
as
$post
)
:
?>
<li>
<span
class=
"date"
>
{{ $post->created_at->format('d-m-Y') }}
</span>
<h3><a
href=
"{{ URL::route($currentLocale . '.blog.slug', [$post->slug]) }}"
>
{{ $post->title }}
</a></h3>
</li>
<div
class=
"clearfix"
></div>
<?php
endforeach
;
?>
</ul>
<?php
endif
;
?>
</div>
</div>
@stop
Themes/demo/blog/show.blade.php
0 → 100644
View file @
a75693f1
@
extends
(
'layouts.master'
)
@
section
(
'title'
)
{{
$post
->
title
}}
|
@
parent
@
stop
@
section
(
'content'
)
<
div
class
="
row
">
<div class="
col
-
lg
-
12
">
<span class="
linkBack
">
<a href="
{{
URL
::
route
(
$currentLocale
.
'.blog'
)
}}
"><i class="
glyphicon
glyphicon
-
chevron
-
left
"></i> Back to post list</a>
</span>
<h1>{{
$post->title
}}</h1>
<span class="
date
">{{
$post->created_at
->format('d-m-Y') }}</span>
{!!
$post->content
!!}
</div>
</div>
@stop
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment