many fixes in design and add shirt story type for creation book
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user