Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"-X tailscale.com/version.longStamp=${tsVersion}"
"-X tailscale.com/version.shortStamp=${tsVersion}"
];
vendorHash = "sha256-RqKsIgwkCbIMQdCKtSHqW9eiZuNcZLCYeXFhPbgxjEU="; # SHA based on vendoring go.mod
vendorHash = "sha256-PUobfmZyn5YtiFTpxTtjnPhqijR5tsONk4HNlIs1oNk="; # SHA based on vendoring go.mod
};
});

Expand Down
1 change: 0 additions & 1 deletion tmpl/delete.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ <h2 class="text-xl font-bold pb-2">Link {{go}}/{{.Short}} Deleted</h2>
<p class="py-4">Deleted this by mistake? You can recreate the same link below.</p>

<form method="POST" action="/">
<input type="hidden" name="xsrf" value="{{ .XSRF }}" />
<div class="flex flex-wrap">
<div class="flex">
<label for=short class="flex my-2 px-2 items-center bg-gray-100 border border-r-0 border-gray-300 rounded-l-md text-gray-700">http://{{go}}/</label>
Expand Down
2 changes: 0 additions & 2 deletions tmpl/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ <h2 class="text-xl font-bold pb-2">Link Details</h2>

{{ if .Editable }}
<form method="POST" action="/">
<input type="hidden" name="xsrf" value="{{ .XSRF }}" />
<div class="flex flex-wrap">
<div class="flex">
<label for=short class="flex my-2 px-2 items-center bg-gray-100 border border-r-0 border-gray-300 rounded-l-md text-gray-700">http://{{go}}/</label>
Expand Down Expand Up @@ -33,7 +32,6 @@ <h2 class="text-xl font-bold pb-2">Link Details</h2>
<h3 class="text-lg font-bold pb-2 pt-4 text-red-500">Danger Zone</h3>

<form method="POST" action="/.delete/{{.Link.Short}}">
<input type="hidden" name="xsrf" value="{{ .XSRF }}" />
<button type=submit class="py-2 px-4 my-2 rounded-md bg-red-500 border-red-500 text-white hover:bg-red-600 hover:border-red-600">Delete Link</button>
</form>

Expand Down
1 change: 0 additions & 1 deletion tmpl/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ <h2 class="text-xl font-bold pb-2">Create a new link</h2>
<p class="">Did you mean <a class="text-blue-600 hover:underline" href="{{.}}">{{.}}</a> ? Create a {{go}} link for it now:</p>
{{ end }}
<form method="POST" action="/" class="flex flex-wrap">
<input type="hidden" name="xsrf" value="{{ .XSRF }}" />
<div class="flex">
<label for=short class="flex my-2 px-2 items-center bg-gray-100 border border-r-0 border-gray-300 rounded-l-md text-gray-700">http://{{go}}/</label>
<input id=short name=short required type=text size=15 placeholder="shortname" value="{{.Short}}" pattern="\w[\w\-\.]*" title="Must start with letter or number; may contain letters, numbers, dashes, and periods."
Expand Down
Loading