Altered all templates

Signed-off-by: Izuru Yakumo <yakumo.izuru@chaotic.ninja>
このコミットが含まれているのは:
Izuru Yakumo 2023-04-15 08:52:47 -03:00
コミット 86816b9705
12個のファイルの変更142行の追加148行の削除

ファイルの表示

@ -1,11 +1,18 @@
{{ template "header" }}
<section>
<h2>Account settings</h2>
<ul>
<li><a href="/accountsetpw">Change password</a></li>
<li><a href="/accountsetmail">Set mail address</a></li>
<li><a href="/accountsetquestion">Set security question</a></li>
<li><a href="/passwordreset">Request password reset</a></li>
</ul>
</section>
<table border="2" cellpadding="12" cellspacing="0" bgcolor="#CCCCCC" align="center">
<tr>
<td align="center">
<h2>Account settings</h2>
</td>
<td align="center">
<ul>
<li><a href="/accountsetpw">Change password</a></li>
<li><a href="/accountsetmail">Set mail address</a></li>
<li><a href="/accountsetquestion">Set security question</a></li>
<li><a href="/passwordreset">Request password reset</a></li>
</ul>
</td>
</tr>
</table>
{{ template "footer" }}

ファイルの表示

@ -1,6 +1,10 @@
{{ template "header" }}
<section class="error">
<h2>Error</h2>
<p>Something went wrong: {{ .Msg }}</p>
</section>
<TABLE BORDER="2" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#CCCCCC" ALIGN="CENTER">
<TR>
<TD ALIGN="CENTER">
<h2>Error</h2>
<p>Something went wrong: {{ .Msg }}</p>
</TD>
</TR>
</TABLE>
{{ template "footer" }}

ファイルの表示

@ -1,7 +1,11 @@
{{ template "header" }}
<section class="error">
<h2>Error</h2>
<p>Something went wrong: Bad login. (Have you forgotten your password? If you added a mail address to your login data, you might be able to <a href="/passwordreset">reset</a> it.)</p>
</section>
<TABLE BORDER="2" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#CCCCCC" ALIGN="CENTER">
<TR>
<TD ALIGN="CENTER">
<h2>Error</h2>
<p>Something went wrong: Bad login. (Have you forgotten your password? If you added a mail address to your login data, you might be able to <a href="/passwordreset">reset</a> it.)</p>
</TD>
</TR>
</TABLE>
{{ template "footer" }}

ファイルの表示

@ -1,6 +1,10 @@
{{ template "header" }}
<section class="success">
<h2>Success</h2>
<p>Your account has been set up.</p>
</section>
<TABLE BORDER="2" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#CCCCCC" ALIGN="CENTER">
<TR>
<TD ALIGN="CENTER">
<h2>Success</h2>
<p>Your account has been set up.</p>
</TD>
</TR>
</TABLE>
{{ template "footer" }}

ファイルの表示

@ -1,8 +1,12 @@
{{ template "header" }}
<section>
<h2>About this site</h2>
<p>This site is a web server to host and grow <a href="https://github.com/buckket/twtxt">twtxt</a> feeds for users without trivial access to their own web space.</p>
<p>Its operator gives no guarantees regarding long-term availability of feeds, stability of their paths, or quality and integrity of their contents. If that does not satisfy your needs, consider hosting your own instance: The underlying server software <a href="https://github.com/plomlompom/htwtxt">htwtxt</a> is freely available, and should not be too difficult to set up.</p>
<p>Site operator's contact info: {{ .Msg }}</p>
</section>
<TABLE BORDER="2" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#CCCCCC" ALIGN="CENTER">
<TR>
<TD ALIGN="CENTER">
<h2>About this site</h2>
<p>This site is a web server to host and grow <a href="https://github.com/buckket/twtxt">twtxt</a> feeds for users without trivial access to their own web space.</p>
<p>Its operator gives no guarantees regarding long-term availability of feeds, stability of their paths, or quality and integrity of their contents. If that does not satisfy your needs, consider hosting your own instance: The underlying server software <a href="https://github.com/plomlompom/htwtxt">htwtxt</a> is freely available, and should not be too difficult to set up.</p>
<p>Site operator's contact info: {{ .Msg }}</p>
</TD>
</TR>
</TABLE>
{{ template "footer" }}

ファイルの表示

@ -1,10 +1,14 @@
{{ template "header" }}
<section>
<h2>Feeds</h2>
<ul>
<TABLE BORDER="2" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#CCCCCC" ALIGN="CENTER">
<TR>
<TD ALIGN="CENTER">
<h2>Feeds</h2>
<ul>
{{ range .Dir }}
<li><a href="/feeds/{{ . }}">{{ . }}</a></li>
<li><a href="/feeds/{{ . }}">{{ . }}</a></li>
{{ end }}
</ul>
</section>
</ul>
</TD>
</TR>
</TABLE>
{{ template "footer" }}

ファイルの表示

@ -1,7 +1,11 @@
{{ template "header" }}
<section>
<h2>Password reset inactive</h2>
<p>The site operator has currently not activated automatic password resetting.</p>
</section>
<TABLE BORDER="2" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#CCCCCC" ALIGN="CENTER">
<TR>
<TD ALIGN="CENTER">
<h2>Password reset inactive</h2>
<p>The site operator has currently not activated automatic password resetting.</p>
</TD>
</TR>
</table>
{{ template "footer" }}

ファイルの表示

@ -1,6 +1,10 @@
{{ template "header" }}
<section>
<h2>Account creation closed</h2>
<p>The site operator has not decided to currently open up account creation on this site to the public.</p>
</section>
<TABLE BORDER="2" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#CCCCCC" ALIGN="CENTER">
<TR>
<TD ALIGN="CENTER">
<h2>Account creation closed</h2>
<p>The site operator has not decided to currently open up account creation on this site to the public.</p>
</TD>
</TR>
</TABLE>
{{ template "footer" }}

ファイルの表示

@ -1,38 +1,30 @@
{{ define "header" }}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>hosted twtxt server</title>
<link rel="stylesheet" type="text/css" href="/style.css" media="all" />
</head>
<body>
<header>
<h1><a href="/">hosted twtxt server</a></h1>
</header>
<nav>
<ul>
<li><a href="/feeds">Feeds</a></li>
<li><a href="/signup">Create account</a></li>
<li><a href="/account">Edit account</a></li>
</ul>
</nav>
{{ end }}
{{ define "footer" }}
<footer>
<p>Read more <a href="/info">about this site</a>.<br /> Licensed under <a href="http://www.gnu.org/licenses/agpl-3.0.html" rel="license">AGPLv3</a>. Source code <a href="https://github.com/plomlompom/htwtxt">on GitHub</a>.</p>
</footer>
</body>
<!DOCTYPE HTML PUBLIC "//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>akyuu</title>
<link rel="stylesheet" type="text/css" href="/style.css" media="all" />
</head>
<body>
<center>
<h1><a href="/">akyuu</a></h1>
</center>
<table border="2" cellpadding="12" cellspacing="0" align="center">
<tr>
<td align="center">
<ul>
<li><a href="/feeds">Feeds</a></li>
<li><a href="/signup">Create account</a></li>
<li><a href="/account">Edit account</a></li>
</ul>
</td>
</table>
{{ end }}
{{ define "footer" }}
<center>
<p>Read more <a href="/info">about this site</a>.<br /> Licensed under <a href="http://www.gnu.org/licenses/agpl-3.0.html" rel="license">AGPLv3</a>. Source code <a href="https://git.chaotic.ninja/yakumo.izuru/akyuu"></a>.</p>
</center>
</body>
</html>
{{ end }}

ファイルの表示

@ -1,27 +1,14 @@
{{ template "header" }}
<form method="post" action="/passwordreset/{{ .Msg }}">
<fieldset>
<legend>Reset account data</legend>
<div>
<label for="name">Name</label>
<input type="text" id="name" name="name" required />
<p id="name-desc">Please repeat for verification.</p>
</div>
<div>
<label for="password">New password</label>
<input type="password" id="password" name="new_password" required />
</div>
<div>
<label for="password2">New password <span>(repeat)</span></label>
<input type="password" id="password2" name="new_password2" required />
</div>
<hr />
<button type="submit">Reset</button>
</fieldset>
<h1>Reset account data</h1>
<label for="name">Name</label>
<input type="text" id="name" name="name" required />
<p id="name-desc">Please repeat for verification.</p>
<label for="password">New password</label>
<input type="password" id="password" name="new_password" required />
<label for="password2">New password <span>(repeat)</span></label>
<input type="password" id="password2" name="new_password2" required />
<hr />
<button type="submit">Reset</button>
</form>
{{ template "footer" }}

ファイルの表示

@ -1,21 +1,13 @@
{{ template "header" }}
<form method="post" action="passwordreset">
<fieldset>
<legend>Request password reset</legend>
<p>To reset the password for an account, an e-mail address <a href="/accountsetmail">must have been set</a> for it. The request here will (if not hindered by the wait time described below) then be answered with an e-mail to the address which contains nothing but a randomized URL pointing back to a page on this server.</p>
<p>Said page will only be available for about 30 minutes. It will ask for the account name, a new password (must be entered twice), and, if a security question <a href="/accountsetquestion">has been set</a> for the account in question, an answer to that. The new password will only be set when the account name given there is the same given here, and, if a security question was set for that account, the answer is the one previously defined for it. Wrong answers will remove the temporary account reset page at once. A new one can be requested here only once every 24 hours.</p>
<p>Note that clicking the button below will always redirect you to this site's start page no matter whether the server actually sends out a password reset link for any account or not.</p>
<div>
<label for="name">Name</label>
<input type="text" id="name" name="name" />
</div>
<hr />
<button type="submit">Request reset</button>
</fieldset>
<h1>Request password reset</h1>
<p>To reset the password for an account, an e-mail address <a href="/accountsetmail">must have been set</a> for it. The request here will (if not hindered by the wait time described below) then be answered with an e-mail to the address which contains nothing but a randomized URL pointing back to a page on this server.</p>
<p>Said page will only be available for about 30 minutes. It will ask for the account name, a new password (must be entered twice), and, if a security question <a href="/accountsetquestion">has been set</a> for the account in question, an answer to that. The new password will only be set when the account name given there is the same given here, and, if a security question was set for that account, the answer is the one previously defined for it. Wrong answers will remove the temporary account reset page at once. A new one can be requested here only once every 24 hours.</p>
<p>Note that clicking the button below will always redirect you to this site's start page no matter whether the server actually sends out a password reset link for any account or not.</p>
<label for="name">Name</label>
<input type="text" id="name" name="name" />
<hr />
<button type="submit">Request reset</button>
</form>
{{ template "footer" }}

ファイルの表示

@ -1,44 +1,32 @@
{{ template "header" }}
<form method="post" action="signup">
<fieldset>
<legend>Create account</legend>
<h1>Create account</h1>
<label for="name">Name</label>
<input type="text" id="name" name="name" maxlength="140" aria-describedby="name-desc" pattern="[a-zA-Z0-9_]{1,140}" required />
<p id="name-desc">Legal characters: A-Z, a-z, 0-9, _ (<abbr title="maximum">max.</abbr> 140)</p>
<div>
<label for="name">Name</label>
<input type="text" id="name" name="name" maxlength="140" aria-describedby="name-desc" pattern="[a-zA-Z0-9_]{1,140}" required />
<p id="name-desc">Legal characters: A-Z, a-z, 0-9, _ (<abbr title="maximum">max.</abbr> 140)</p>
</div>
<div>
<label for="mail">E-mail address <span>(optional)</span></label>
<input type="email" id="mail" name="mail" aria-describedby="mail-desc"/>
<p id="mail-desc">Used for password reset and feed owner authentication.</p>
</div>
<label for="mail">E-mail address <span>(optional)</span></label>
<input type="email" id="mail" name="mail" aria-describedby="mail-desc"/>
<p id="mail-desc">Used for password reset and feed owner authentication.</p>
<div>
<label for="secquestion">Security question <span>(optional)</span></label>
<input type="text" id="secquestion" name="secquestion" aria-describedby="secquestion-desc" />
<p id="secquestion-desc">To pose on password reset request.</p>
</div>
<label for="secquestion">Security question <span>(optional)</span></label>
<input type="text" id="secquestion" name="secquestion" aria-describedby="secquestion-desc" />
<p id="secquestion-desc">To pose on password reset request.</p>
<div>
<label for="secanswer">Security question answer <span>(optional)</span></label>
<input type="text" id="secanswer" name="secanswer" />
</div>
<div>
<label for="password">Password</label>
<input type="password" id="password" name="new_password" required />
</div>
<label for="secanswer">Security question answer <span>(optional)</span></label>
<input type="text" id="secanswer" name="secanswer" />
<div>
<label for="password2">Password <span>(repeat)</span></label>
<input type="password" id="password2" name="new_password2" required />
</div>
<hr />
<button type="submit">Sign up</button>
</fieldset>
<label for="password">Password</label>
<input type="password" id="password" name="new_password" required />
<label for="password2">Password <span>(repeat)</span></label>
<input type="password" id="password2" name="new_password2" required />
<hr />
<button type="submit">Sign up</button>
</form>
{{ template "footer" }}