mirror of
https://github.com/taigrr/pastebin
synced 2026-04-07 20:01:29 -07:00
- Update module path from prologic/pastebin to taigrr/pastebin - Replace go.rice with stdlib embed for templates and static assets - Replace httprouter with stdlib net/http ServeMux (Go 1.22+) - Replace namsral/flag with cobra + fang for CLI argument parsing - Fix inverted TLS insecure logic in client (was negating the flag) - Close HTTP response body in client - Use base64 URLEncoding instead of StdEncoding for paste IDs - Add comprehensive handler tests for all endpoints - Add client package tests - Add utils tests for RandomString - Remove templates.go (replaced by embed) - Remove unused dependencies (go-metrics, stats, logger, httprouter, go.rice)
23 lines
669 B
HTML
23 lines
669 B
HTML
{{define "base"}}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<link rel="stylesheet" href="/css/spectre-icons.min.css">
|
|
<link rel="stylesheet" href="/css/spectre.min.css">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Pastebin</title>
|
|
</head>
|
|
<body>
|
|
<section class="container grid-960 mt-10">
|
|
<header class="navbar">
|
|
<section class="navbar-section">
|
|
<a href="/" class="navbar-brand mr-10">Paste</a>
|
|
</section>
|
|
<section class="navbar-section"></section>
|
|
</header>
|
|
{{if .}}{{template "view_content" .}}{{else}}{{template "index_content"}}{{end}}
|
|
</section>
|
|
</body>
|
|
</html>
|
|
{{end}}
|