Skip to content

Commit 8e8719d

Browse files
committed
minor #437 Tweaked the admin blog index (javiereguiluz)
This PR was merged into the master branch. Discussion ---------- Tweaked the admin blog index | Before | After | --- | --- | ![before-list](https://cloud.githubusercontent.com/assets/73419/22016048/0fa7bd12-dca5-11e6-9cbd-bb944300fb6e.png) | ![after-list](https://cloud.githubusercontent.com/assets/73419/22016057/1add71a4-dca5-11e6-8e5c-88bdbe187b07.png) Commits ------- f40052e Tweaked the admin blog index
2 parents e702851 + f40052e commit 8e8719d

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

app/Resources/views/admin/blog/index.html.twig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
{% block main %}
66
<h1>{{ 'title.post_list'|trans }}</h1>
77

8-
<table class="table table-striped">
8+
<table class="table table-striped table-middle-aligned">
99
<thead>
1010
<tr>
1111
<th scope="col">{{ 'label.title'|trans }}</th>
1212
<th scope="col"><i class="fa fa-calendar" aria-hidden="true"></i> {{ 'label.published_at'|trans }}</th>
13-
<th scope="col" class="col-xs-1"><i class="fa fa-cogs" aria-hidden="true"></i> {{ 'label.actions'|trans }}</th>
13+
<th scope="col" class="text-center"><i class="fa fa-cogs" aria-hidden="true"></i> {{ 'label.actions'|trans }}</th>
1414
</tr>
1515
</thead>
1616
<tbody>
@@ -20,8 +20,8 @@
2020
{# it's not mandatory to set the timezone in localizeddate(). This is done to
2121
avoid errors when the 'intl' PHP extension is not available and the application
2222
is forced to use the limited "intl polyfill", which only supports UTC and GMT #}
23-
<td>{% if post.publishedAt %}{{ post.publishedAt|localizeddate('short', 'short', null, 'UTC') }}{% endif %}</td>
24-
<td>
23+
<td>{{ post.publishedAt|localizeddate('medium', 'short', null, 'UTC') }}</td>
24+
<td class="text-right">
2525
<div class="item-actions">
2626
<a href="{{ path('admin_post_show', { id: post.id }) }}" class="btn btn-sm btn-default">
2727
{{ 'action.show'|trans }}

web/css/main.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ i {
2727
margin-right: 0.25em
2828
}
2929

30+
.table.table-middle-aligned th,
31+
.table.table-middle-aligned td {
32+
vertical-align: middle;
33+
}
34+
3035
/* Page elements
3136
------------------------------------------------------------------------- */
3237
body {

0 commit comments

Comments
 (0)