Extended blog admin with Draft field and Preview link
Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
parent
df911aa13e
commit
e8d0d81e4a
@ -6,18 +6,22 @@
|
|||||||
<table>
|
<table>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td></td>
|
||||||
<td>Title (click to edit)</td>
|
<td>Title (click to edit)</td>
|
||||||
<td>Author</td>
|
<td>Author</td>
|
||||||
<td>Created at</td>
|
<td>Created at</td>
|
||||||
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
{% if posts %}
|
{% if posts %}
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for post in posts %}
|
{% for post in posts %}
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>{% if post.draft %}D{% endif %}</td>
|
||||||
<td><a href="{{ path('GergelyPolonkaiFrontBundle_adminEditBlogPost', {id: post.id}) }}">{{ post.title }}</a></td>
|
<td><a href="{{ path('GergelyPolonkaiFrontBundle_adminEditBlogPost', {id: post.id}) }}">{{ post.title }}</a></td>
|
||||||
<td>{{ post.user.name }}</td>
|
<td>{{ post.user.name }}</td>
|
||||||
<td>{{ post.createdAt|date('m/d/Y') }}</td>
|
<td>{{ post.createdAt|date('m/d/Y') }}</td>
|
||||||
|
<td><a href="{{ path('GergelyPolonkaiFront_blogViewPost', {year: post.createdAt|date('Y'), month: post.createdAt|date('m'), day: post.createdAt|date('d'), slug: post.slug}) }}" target="gergelypolonkai_blogpreview">Preview</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tbody>
|
</tbody>
|
||||||
|
Loading…
Reference in New Issue
Block a user