chiark / gitweb /
mason/pastebin/: Add `New' links to the `show' and `edit' pages.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 10 Apr 2017 14:50:38 +0000 (15:50 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 10 Apr 2017 14:50:38 +0000 (15:50 +0100)
mason/pastebin/%edit
mason/pastebin/%show

index 38cc9c4..1a4d0f5 100644 (file)
@@ -7,6 +7,7 @@
 % $m->print($sep);
   <span class="item"><a href="<% "$Odin::PASTEBIN/$tag" %>">View</a></span>
   <span class="item"><a href="<% "$Odin::PASTEBIN/$tag?edit=$edit;op=del" %>">Delete</a></span>
+  <span class="item"><a href="<% "$Odin::PASTEBIN/" %>">New</a></span>
 % $sep = ""; $end = "</div>\n";
 % }
 % $m->print($end);
index 7668de7..6ec0bb2 100644 (file)
@@ -6,6 +6,7 @@
 % if (defined $edit) {
   <span class="item"><a href="<% "$Odin::PASTEBIN/$tag?edit=$edit" |h %>">Edit</a></span>
 % }
+  <span class="item"><a href="<% "$Odin::PASTEBIN/" |h %>">New</a></span>
 </div>
 % if (defined $honc) {
 <div class="note">