summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2022-08-27 11:31:31 +0100
committerGreg Roach <greg@subaqua.co.uk>2022-08-27 11:31:31 +0100
commit6894de640eeb33bbbaaa929da4135878ef88c29d (patch)
treee07d455ba96347283d12d8b4e75c32ffda48e26e /resources
parentbd29d468ac3a5ed7a23d7dd8f300504dda83fc72 (diff)
downloadwebtrees-6894de640eeb33bbbaaa929da4135878ef88c29d.tar.gz
webtrees-6894de640eeb33bbbaaa929da4135878ef88c29d.tar.bz2
webtrees-6894de640eeb33bbbaaa929da4135878ef88c29d.zip
Layout of name blocks on small screens
Diffstat (limited to 'resources')
-rw-r--r--resources/views/individual-page-name.phtml12
-rw-r--r--resources/views/test.phtml9
2 files changed, 16 insertions, 5 deletions
diff --git a/resources/views/individual-page-name.phtml b/resources/views/individual-page-name.phtml
index 4245ddcd74..0d8e9435c8 100644
--- a/resources/views/individual-page-name.phtml
+++ b/resources/views/individual-page-name.phtml
@@ -38,11 +38,13 @@ if ($fact->isPendingDeletion()) {
<?= view('icons/expand') ?>
<?= view('icons/collapse') ?>
<span class="label"><?= I18N::translate('Name') ?></span>
- <?= $fake_individual->fullName() ?>
- <?php if ($fact->attribute('TYPE') !== '') : ?>
- —
- <?= Registry::elementFactory()->make($fact->tag() . ':TYPE')->value($fact->attribute('TYPE'), $tree) ?>
- <?php endif ?>
+ <div>
+ <?= $fake_individual->fullName() ?>
+ <?php if ($fact->attribute('TYPE') !== '') : ?>
+ —
+ <?= Registry::elementFactory()->make($fact->tag() . ':TYPE')->value($fact->attribute('TYPE'), $tree) ?>
+ <?php endif ?>
+ </div>
</button>
</div>
diff --git a/resources/views/test.phtml b/resources/views/test.phtml
new file mode 100644
index 0000000000..944d5c7132
--- /dev/null
+++ b/resources/views/test.phtml
@@ -0,0 +1,9 @@
+<?php if (count($items) === 0) : ?>
+ There are no items
+<?php else : ?>
+ <ol>
+ <?php foreach ($items as $item) : ?>
+ <li><?= $item ?></li>
+ <?php endforeach ?>
+ </ol>
+<?php endif ?>