mirror of
https://github.com/writeas/writefreely
synced 2024-12-12 08:36:14 +01:00
0e722de82c
This enables admins on multi-user instances to see all users registered, and view the details of each, including: - Username - Join date - Total posts - Last post date - All blogs - Public info - Views - Total posts - Last post date - Fediverse followers count This is the foundation for future user moderation features. Ref T553
67 lines
2.3 KiB
Cheetah
67 lines
2.3 KiB
Cheetah
{{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{{if .SingleUser}} class="singleuser"{{end}}>
|
|
{{if .SingleUser}}
|
|
<nav id="user-nav">
|
|
<nav class="dropdown-nav">
|
|
<ul><li><a href="/" title="View blog" class="title">{{.SiteName}}</a> <img class="ic-18dp" src="/img/ic_down_arrow_dark@2x.png" />
|
|
<ul>
|
|
<li><a href="/me/c/{{.Username}}">Customize</a></li>
|
|
<li><a href="/me/c/{{.Username}}/stats">Stats</a></li>
|
|
<li class="separator"><hr /></li>
|
|
<li><a href="/me/settings">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/posts/"{{if eq .Path "/me/posts/"}} class="selected"{{end}}>Drafts</a>
|
|
<a href="/me/new">New Post</a>
|
|
</nav>
|
|
</nav>
|
|
{{else}}
|
|
<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>
|
|
{{end}}
|
|
</header>
|
|
<div id="official-writing">
|
|
{{end}}
|
|
|
|
{{define "admin-header"}}
|
|
<header class="admin">
|
|
<h1>Admin</h1>
|
|
<a href="/admin">back to dashboard</a>
|
|
</header>
|
|
{{end}}
|