pastebin/templates/view.html
Tai Groot 5ade7a0642
Fix pb utility (#16)
* Update dependencies and go compile target version

* Adds deletion support to the server

* Add form around delete button

* Add support for returning the url in curl

* remove -config option for now

* Upload as form value instead of file

* remove dependencies from go mod

* update to README re: new curl usage
2021-04-20 23:20:39 +10:00

35 lines
961 B
HTML

{{define "content"}}
<pre class="code">
<code>{{.Blob}}</code>
</pre>
<section class="container">
<div class="columns">
<div class="column col-3">
<div class="dropdown">
<div class="btn-group">
<a class="btn btn-sm btn-primary" href="/download/{{.UUID}}">
<i class="icon icon-download"></i>
Download
</a>
<a class="btn btn-sm btn-primary dropdown-toggle" tabindex="0">
<i class="icon icon-caret"></i>
</a>
<ul class="menu">
<li class="menu-item">
<form action="/p/{{.UUID}}/delete" method="POST">
<button type="submit">
<span href="#dropdowns">
<i class="icon icon-delete"></i>
Delete
</span>
</button>
</form>
</li>
</ul>
</div>
</div>
</div>
</div>
</section>
{{end}}