do not show link button on overview if there's no URL
This commit is contained in:
parent
29740e1d78
commit
7276ade3b1
1 changed files with 3 additions and 1 deletions
|
@ -7,7 +7,9 @@
|
||||||
|
|
||||||
<?php foreach($docs as $doc): ?>
|
<?php foreach($docs as $doc): ?>
|
||||||
<div class="text doc-item">
|
<div class="text doc-item">
|
||||||
<a class="doc-item-link" href="<?= $doc["URL"] ?>">🔗</a>
|
<?php if (!empty($doc["URL"])): ?>
|
||||||
|
<a class="doc-item-link" href="<?= $doc["URL"] ?>">🔗</a>
|
||||||
|
<?php endif; ?>
|
||||||
<a href="?item=<?= $doc["ID"]?>">
|
<a href="?item=<?= $doc["ID"]?>">
|
||||||
<div class="doc-item-text">
|
<div class="doc-item-text">
|
||||||
<h2><?= $doc["Title"]?></h2>
|
<h2><?= $doc["Title"]?></h2>
|
||||||
|
|
Loading…
Reference in a new issue