many fixes in design and add shirt story type for creation book

This commit is contained in:
2026-05-01 20:51:42 +03:00
parent 9294399517
commit ce6fffaa57
24 changed files with 1167 additions and 735 deletions
+18 -3
View File
@@ -81,7 +81,14 @@ include 'views/layouts/header.php';
</div>
<?php endif; ?>
<div class="flex-grow-1">
<h5 class="card-title"><?= e($book['title']) ?></h5>
<h5 class="card-title mb-0">
<?php if (!empty($book['is_short_story'])): ?>
<i class="bi bi-file-text text-success me-1"></i>
<?php else: ?>
<i class="bi bi-book text-primary me-1"></i>
<?php endif; ?>
<?= e($book['title']) ?>
</h5>
<?php if ($book['genre']): ?>
<p class="text-muted small mb-1"><em><?= e($book['genre']) ?></em></p>
<?php endif; ?>
@@ -102,10 +109,18 @@ include 'views/layouts/header.php';
<div class="d-flex justify-content-between align-items-center">
<a href="<?= SITE_URL ?>/book/<?= e($book['share_token']) ?>" class="btn btn-primary btn-sm">
<i class="bi bi-book"></i> Читать книгу
<?php if (!empty($book['is_short_story'])): ?>
<i class="bi bi-file-text"></i> Читать рассказ
<?php else: ?>
<i class="bi bi-book"></i> Читать книгу
<?php endif; ?>
</a>
<small class="text-muted">
Глав: <?= $chapter_count ?> | Слов: <?= $word_count ?>
<?php if (!empty($book['is_short_story'])): ?>
(рассказ) <?= number_format($word_count) ?> слов
<?php else: ?>
Глав: <?= $chapter_count ?> | <?= number_format($word_count) ?> слов
<?php endif; ?>
</small>
</div>
</div>