summaryrefslogtreecommitdiff
path: root/src/templates/index.php
diff options
context:
space:
mode:
authorDavid T. Sadler <davidtsadler@googlemail.com>2021-10-13 21:51:07 +0100
committerDavid T. Sadler <davidtsadler@googlemail.com>2021-10-13 21:51:07 +0100
commitcbaedbc5251f3b127bd81242d1344c0cd3e56e0c (patch)
treef76273742992d8f06983fd5d6fef37efc85a2c07 /src/templates/index.php
parent2ab5661583d74b03c86bb4f437616bb634d9c4fc (diff)
Implemente redirects
Diffstat (limited to 'src/templates/index.php')
-rw-r--r--src/templates/index.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/templates/index.php b/src/templates/index.php
index 1298985..ed84fd4 100644
--- a/src/templates/index.php
+++ b/src/templates/index.php
@@ -6,10 +6,11 @@
<title>Bookmarks</title>
</head>
<body>
- <ul>
- <?php foreach ($bookmarks as $bookmark) { ?>
- <li><a href="/edit?id=<?php echo $bookmark->id; ?>"><?php echo $bookmark->title; ?></a> | <a href="/delete?id=<?php echo $bookmark->id; ?>">Delete</a></li>
- <?php } ?>
- </ul>
+ <a href="/create">Add</a>
+ <ul>
+ <?php foreach ($bookmarks as $bookmark) { ?>
+ <li><a href="/edit?id=<?php echo $bookmark->id; ?>"><?php echo $bookmark->title; ?></a> | <a href="/delete/confirm?id=<?php echo $bookmark->id; ?>">Delete</a></li>
+ <?php } ?>
+ </ul>
</body>
</html>