aboutsummaryrefslogtreecommitdiff
path: root/views/profile/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'views/profile/index.php')
-rw-r--r--views/profile/index.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/views/profile/index.php b/views/profile/index.php
index c1e067d..4ade4e7 100644
--- a/views/profile/index.php
+++ b/views/profile/index.php
@@ -15,6 +15,18 @@
<div class="user-blank-afterspace"></div>
+ <section id="user-buttons" hidden>
+ <form action="/list/new" method="GET">
+ <input type="submit" value="Create a new list">
+ </form>
+ </section>
+ <script type="text/javascript">
+ function showUserButtons() {
+ document.getElementById('user-buttons').hidden = false;
+ }
+ authenticated(showUserButtons);
+ </script>
+
<nav id="user-nav">
<button id="openArchives" onclick="openArchives()">Archives</button>
<button id="openLists" onclick="openLists()" class="not-selected">Lists</button>