Add user management pages
This commit is contained in:
35
templates/user/include/footer.tmpl
Normal file
35
templates/user/include/footer.tmpl
Normal file
@@ -0,0 +1,35 @@
|
||||
{{define "footer"}}
|
||||
{{template "foot" .}}
|
||||
{{template "body-end" .}}
|
||||
{{end}}
|
||||
{{define "foot"}}
|
||||
</div>
|
||||
<footer>
|
||||
<hr />
|
||||
<nav>
|
||||
<a class="home" href="/">{{.SiteName}}</a>
|
||||
<a href="/about">about</a>
|
||||
<a href="https://writefreely.org/guide" target="guides">guide</a>
|
||||
<a href="/privacy">privacy</a>
|
||||
<a>{{.Version}}</a>
|
||||
</nav>
|
||||
</footer>
|
||||
|
||||
<script type="text/javascript">
|
||||
try { // Google Fonts
|
||||
WebFontConfig = {
|
||||
custom: { families: [ 'Lora:400,700:latin' ], urls: [ '/css/fonts.css' ] }
|
||||
};
|
||||
(function() {
|
||||
var wf = document.createElement('script');
|
||||
wf.src = '/js/webfont.js';
|
||||
wf.type = 'text/javascript';
|
||||
wf.async = 'true';
|
||||
var s = document.getElementsByTagName('script')[0];
|
||||
s.parentNode.insertBefore(wf, s);
|
||||
})();
|
||||
} catch (e) { /* ¯\_(ツ)_/¯ */ }
|
||||
</script>
|
||||
{{end}}
|
||||
{{define "body-end"}}</body>
|
||||
</html>{{end}}
|
37
templates/user/include/header.tmpl
Normal file
37
templates/user/include/header.tmpl
Normal file
@@ -0,0 +1,37 @@
|
||||
{{define "header"}}<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
|
||||
<title>{{.PageTitle}} {{if .Separator}}{{.Separator}}{{else}}—{{end}} {{.SiteName}}</title>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/write.css" />
|
||||
<link rel="shortcut icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="theme-color" content="#888888" />
|
||||
<meta name="apple-mobile-web-app-title" content="{{.SiteName}}">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="/img/touch-icon-152.png">
|
||||
<link rel="apple-touch-icon" sizes="167x167" href="/img/touch-icon-167.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/touch-icon-180.png">
|
||||
</head>
|
||||
<body id="me">
|
||||
<header>
|
||||
<h1><a href="/" title="Return to editor">{{.SiteName}}</a></h1>
|
||||
<nav id="user-nav">
|
||||
<nav class="dropdown-nav">
|
||||
<ul><li><a>{{.Username}}</a> <img class="ic-18dp" src="/img/ic_down_arrow_dark@2x.png" /><ul>
|
||||
<li><a href="/me/settings">Account settings</a></li>
|
||||
<li><a href="/me/export">Export</a></li>
|
||||
<li class="separator"><hr /></li>
|
||||
<li><a href="/me/logout">Log out</a></li>
|
||||
</ul></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<nav class="tabs">
|
||||
<a href="/me/c/"{{if eq .Path "/me/c/"}} class="selected"{{end}}>Blogs</a>
|
||||
<a href="/me/posts/"{{if eq .Path "/me/posts/"}} class="selected"{{end}}>Drafts</a>
|
||||
</nav>
|
||||
</nav>
|
||||
</header>
|
||||
<div id="official-writing">
|
||||
{{end}}
|
Reference in New Issue
Block a user