add user config page and admin menu
This commit is contained in:
37
res/template/account/email_confirm.html
Normal file
37
res/template/account/email_confirm.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{{define "email_confirm"}}<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
{{template "meta_tags" "E-mail verification"}}
|
||||
{{template "user_style" .}}
|
||||
</head>
|
||||
<body>
|
||||
{{template "page_top" .}}
|
||||
|
||||
<div class="page_content">
|
||||
<div class="limit_width">
|
||||
{{if eq .Other "success"}}
|
||||
<h1>Success!</h1>
|
||||
<p>
|
||||
Your account's e-mail address has been updated.
|
||||
</p>
|
||||
{{else if eq .Other "not_found"}}
|
||||
<h1>E-mail change failed</h1>
|
||||
<p>
|
||||
This e-mail change request does not exist or has expired.
|
||||
Please try again if you still want to change your e-mail
|
||||
address.
|
||||
</p>
|
||||
{{else}}
|
||||
<h1>Error</h1>
|
||||
<p>
|
||||
Something went wrong while processing this request. Please
|
||||
try again later.
|
||||
</p>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{template "page_bottom" .}}
|
||||
{{template "analytics"}}
|
||||
</body>
|
||||
</html>
|
||||
{{end}}
|
@@ -12,11 +12,12 @@
|
||||
<h1>Welcome home, {{.Username}}!</h1>
|
||||
|
||||
<div class="page_content"><div class="limit_width">
|
||||
<h2>Actions</h2>
|
||||
<h2>Account information</h2>
|
||||
<ul>
|
||||
<li><a href="/user/change_password" class="button">Change my password</a></li>
|
||||
<li><a href="/logout" class="button">Log out</a></li>
|
||||
<li>Username: {{.Username}}</li>
|
||||
<li>E-mail address: {{.Email}}</li>
|
||||
</ul>
|
||||
<a href="/user/settings" class="button">Update account settings</a>
|
||||
|
||||
<h2>Your most recently uploaded files:</h2>
|
||||
<div class="highlight_dark">
|
||||
|
@@ -8,14 +8,11 @@
|
||||
|
||||
<body>
|
||||
{{template "page_top" .}}
|
||||
<h1>User configuration</h1>
|
||||
<h1>{{.Title}}</h1>
|
||||
<div class="page_content"><div class="limit_width">
|
||||
|
||||
<p>What would you like to do?</p>
|
||||
<ul>
|
||||
<li><a href="/user/change_password">Change my password</a></li>
|
||||
</ul>
|
||||
|
||||
{{template "form" .Other.PasswordForm}}
|
||||
{{template "form" .Other.EmailForm}}
|
||||
{{template "form" .Other.UsernameForm}}
|
||||
</div></div>
|
||||
{{template "page_bottom" .}}
|
||||
{{template "analytics"}}
|
||||
|
Reference in New Issue
Block a user