summaryrefslogtreecommitdiff
path: root/views/new-bookmark.php
diff options
context:
space:
mode:
authorAaron Parecki <aaron@parecki.com>2018-08-01 18:35:13 -0700
committerAaron Parecki <aaron@parecki.com>2018-08-01 18:35:13 -0700
commit57c82d830d04cfc930bcc62bd886b9a96fb57164 (patch)
tree90bbcccec17ada5d90cc817f06548563f86c3ecf /views/new-bookmark.php
parent782780234a4d5eefc692b14b4a620fc24444f2db (diff)
if no syndication targets are found, hide the section
add syndication reload button to the settings screen
Diffstat (limited to 'views/new-bookmark.php')
-rw-r--r--views/new-bookmark.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/views/new-bookmark.php b/views/new-bookmark.php
index 35e1907..0181dae 100644
--- a/views/new-bookmark.php
+++ b/views/new-bookmark.php
@@ -32,11 +32,11 @@
<input type="text" id="note_category" value="<?= $this->bookmark_tags ?>" class="form-control" placeholder="e.g. web, personal">
</div>
+ <?php if($this->syndication_targets): ?>
<div class="form-group">
<label for="note_syndicate-to">Syndicate <a href="javascript:reload_syndications()">refresh</a></label>
<div id="syndication-container">
<?php
- if($this->syndication_targets) {
echo '<ul>';
foreach($this->syndication_targets as $syn) {
echo '<li>'
@@ -47,13 +47,11 @@
. '</li>';
}
echo '</ul>';
- } else {
- ?><div class="bs-callout bs-callout-warning">No syndication targets were found on your site.
- You can provide a <a href="/docs#syndication">list of supported syndication targets</a> that will appear as checkboxes here.</div><?php
- }
?>
</div>
</div>
+ <?php endif ?>
+
</form>