Browse Source

Add a link to the Pinboard import page in the settings

Getty Ritter 1 year ago
parent
commit
b651770201
2 changed files with 8 additions and 6 deletions
  1. 7 2
      templates/config.mustache
  2. 1 4
      templates/import.mustache

+ 7 - 2
templates/config.mustache

@@ -22,8 +22,13 @@
 </div>
 <div class="config-pane">
   <div class="config">
-  <p>Drag the following link to your bookmark bar to create a bookmarklet:</p>
-  <p><a href="{{bookmarklet_link}}">Add Lament</a></p>
+    <p>Drag the following link to your bookmark bar to create a bookmarklet:</p>
+    <p><a href="{{bookmarklet_link}}">Add Lament</a></p>
+  </div>
+</div>
+<div class="config-pane">
+  <div class="config">
+    <p><a href="/u/{{username}}/import">Import my bookmarks from Pinboard</a></p>
   </div>
 </div>
 {{#admin_pane}}

+ 1 - 4
templates/import.mustache

@@ -17,11 +17,8 @@
   <div class="config">
     <form name="import" method="POST" enctype="multipart/form-data">
       <div>
-        <label for="file">JSON file:</label>
         <input name="file" type="file" />
-      </div>
-      <div>
-        <input type="submit" value="Upload Bookmarks" />
+        <input type="submit" value="Import" />
       </div>
     </form>
   </div>