diff options
Diffstat (limited to 'tpl/blog')
-rw-r--r-- | tpl/blog/index.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tpl/blog/index.php b/tpl/blog/index.php index b70a80a..b2d6f93 100644 --- a/tpl/blog/index.php +++ b/tpl/blog/index.php @@ -14,7 +14,7 @@ echo '<div class="ordering_links">' . filters_html_full() . '</div>'; if(count($posts) == 0) { echo "<div class=\"message\">Aucun article trouvé.</div>"; } else { - echo '<table><tr><th style="width: 70%"></th><th>Tags</th><th>Date</th><th>Auteur</th></tr>'; + echo '<table><tr><th></th><th style="width: 150px">Date</th><th style="width: 100px">Auteur</th></tr>'; foreach ($posts as $post) { echo '<tr><td><a href="view-blog-'.$post['id'].'">' . $post['title'] . '</a> <div class="small_right">'; $k = array(); @@ -24,7 +24,10 @@ if(count($posts) == 0) { $k[] = '<a href="delete-blog-' . $post['id'] . '">supprimer</a>'; echo implode(' | ', $k); echo '</div>'; - echo '<td style="text-align: center"><span class="tool_link">' . $post['tags'] . '</span></td>'; + if ($post['tags'] != ''){ + echo '<br/><span class="tool_link">' . $post['tags'] . '</span>'; + } + echo '</td>'; echo '<td style="text-align: center">' . $post['date'] . '</td>'; echo '<td style="text-align: center">' . $post['owner'] . '</td>'; echo '</tr>'; |