summaryrefslogtreecommitdiff
path: root/src/web/_views/_template/posts.php
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/web/_views/_template/posts.php (renamed from src/web/_views/template/posts.php)11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/web/_views/template/posts.php b/src/web/_views/_template/posts.php
index ed79688..4202e67 100644
--- a/src/web/_views/template/posts.php
+++ b/src/web/_views/_template/posts.php
@@ -7,9 +7,16 @@
$total = $pdata['total'];
$max = $pdata['max'];
$filterUid = $pdata['filter_uid'];
-
+?>
+<?php if ($loaded == 0): ?>
+ <div id="no-posts" class="card">
+ <span class="no-posts-title mb"><?=lang('no_posts_found')?></span>
+ <span><?=random_value(explode("\n", lang('no_posts_found_ext')))?></span>
+ </div>
+<?php endif; ?>
+<?php
if ($loaded >= $page_size && $page_size < $total) {
- ilang('action_load_posts',
+ echo ilang('action_load_posts',
id: 'action-load-posts',
class: 'btn btn-blend grow mb mt',
attrs: array(