allow for documents w/out files
This commit is contained in:
parent
d5fbe1c341
commit
e37749abfa
2 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,7 @@ CREATE TABLE Documents (
|
||||||
Description TEXT,
|
Description TEXT,
|
||||||
Author TEXT,
|
Author TEXT,
|
||||||
Published TEXT,
|
Published TEXT,
|
||||||
URL TEXT NOT NULL
|
URL TEXT
|
||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE DocumentsToTags (
|
CREATE TABLE DocumentsToTags (
|
||||||
|
|
|
@ -23,5 +23,7 @@
|
||||||
<p class="doc-description"><span class="doc-description-intro">Description: </span><?= $doc["Description"] ?></p>
|
<p class="doc-description"><span class="doc-description-intro">Description: </span><?= $doc["Description"] ?></p>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<?php if (!empty($doc["URL"])): ?>
|
||||||
<div class="doc-link"><span class="doc-link-intro">Access file at: </span><a href="<?= $doc["URL"] ?>"><?= urldecode($doc["URL"]) ?></a></div>
|
<div class="doc-link"><span class="doc-link-intro">Access file at: </span><a href="<?= $doc["URL"] ?>"><?= urldecode($doc["URL"]) ?></a></div>
|
||||||
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue