Didn't have the chance to migrate //all// templates just yet. We'll get there.
* Implement yet another template system
* Move orphans to the new system and fix a bug in it
* Link orphans in the admin panel
* Move the backlink handlers to the web package
* Move auth routing to web
* Move /user-list to the new system
* Move change password and translate it
* Move stuff
* Move admin-related stuff to the web
* Move a lot of files into internal dir
Outside of it are web and stuff that needs further refactoring
* Fix static not loading and de-qtpl tree
* Move tree to internal
* Keep the globe on the same line #230
* Revert "Keep the globe on the same line #230"
This reverts commit ae78e5e459.
* Migrate templates from hypview: delete, edit, start empty and existing WIP
The delete media view was removed, I didn't even know it still existed as a GET. A rudiment.
* Make views multi-file and break compilation
* Megarefactoring of hypha views
* Auth-related stuffs
* Fix some of those weird imports
* Migrate cat views
* Fix cat js
* Lower standards
* Internalize trauma
57 lines
1.8 KiB
HTML
57 lines
1.8 KiB
HTML
{{define "confirm"}}Confirm{{end}}
|
|
{{define "cancel"}}Cancel{{end}}
|
|
{{define "save"}}Save{{end}}
|
|
{{define "error"}}Error{{end}}
|
|
{{define "delete"}}Delete{{end}}
|
|
{{define "page"}}
|
|
<!doctype html>
|
|
<html lang="{{.Meta.Locale}}">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>{{block "title" .}}{{end}}</title>
|
|
<link rel="icon" href="/static/favicon.ico">
|
|
<link rel="stylesheet" href="/static/style.css">
|
|
{{range .HeadElements}}{{.}}{{end}}
|
|
</head>
|
|
<body data-rrh-addr="{{if .Addr}}{{.Addr}}{{else}}{{.Meta.Addr}}{{end}}"{{range $key, $value := .BodyAttributes}} data-rrh-{{$key}}="{{$value}}"{{end}}>
|
|
<header>
|
|
<nav class="main-width top-bar">
|
|
<ul class="top-bar__wrapper">
|
|
<li class="top-bar__section top-bar__section_home">
|
|
<div class="top-bar__home-link-wrapper">
|
|
<a class="top-bar__home-link" href="/">{{block "wiki name" .}}{{end}}</a>
|
|
</div>
|
|
</li>
|
|
<li class="top-bar__section top-bar__section_search">
|
|
<form class="top-bar__search" method="GET" action="/title-search">
|
|
<input type="text" name="q" class="top-bar__search-bar"
|
|
placeholder="{{block `search by title` .}}Search by title{{end}}">
|
|
</form>
|
|
</li>
|
|
<li class="top-bar__section top-bar__section_auth">
|
|
{{block "auth" .}}{{end}}
|
|
</li>
|
|
<li class="top-bar__section top-bar__section_highlights">
|
|
<ul class="top-bar__highlights">
|
|
{{range .HeaderLinks}}
|
|
<li class="top-bar__highlight">
|
|
<a class="top-bar__highlight-link" href="{{.Href}}">{{.Display}}</a>
|
|
</li>
|
|
{{end}}
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
</header>
|
|
{{block "body" .}}{{end}}
|
|
<script src="/static/common.js"></script>
|
|
<script src="/static/shortcuts.js"></script>
|
|
<script src="/static/view.js"></script>
|
|
{{range .CommonScripts}}
|
|
<script src="{{.}}"></script>
|
|
{{end}}
|
|
</body>
|
|
</html>
|
|
{{end}}
|