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

ファイルの表示

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

ファイルの表示

@ -1,7 +1,11 @@
{{ template "header" }} {{ template "header" }}
<section class="error"> <TABLE BORDER="2" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#CCCCCC" ALIGN="CENTER">
<h2>Error</h2> <TR>
<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 ALIGN="CENTER">
</section> <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" }} {{ template "footer" }}

ファイルの表示

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

ファイルの表示

@ -1,8 +1,12 @@
{{ template "header" }} {{ template "header" }}
<section> <TABLE BORDER="2" CELLPADDING="0" CELLSPACING="0" BGCOLOR="#CCCCCC" ALIGN="CENTER">
<h2>About this site</h2> <TR>
<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> <TD ALIGN="CENTER">
<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> <h2>About this site</h2>
<p>Site operator's contact info: {{ .Msg }}</p> <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>
</section> <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" }} {{ template "footer" }}

ファイルの表示

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

ファイルの表示

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

ファイルの表示

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

ファイルの表示

@ -1,38 +1,30 @@
{{ define "header" }} {{ define "header" }}
<!DOCTYPE html> <!DOCTYPE HTML PUBLIC "//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="en"> <html>
<head>
<head> <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>akyuu</title>
<meta charset="utf-8" /> <link rel="stylesheet" type="text/css" href="/style.css" media="all" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> </head>
<body>
<title>hosted twtxt server</title> <center>
<h1><a href="/">akyuu</a></h1>
<link rel="stylesheet" type="text/css" href="/style.css" media="all" /> </center>
<table border="2" cellpadding="12" cellspacing="0" align="center">
</head> <tr>
<td align="center">
<body> <ul>
<li><a href="/feeds">Feeds</a></li>
<header> <li><a href="/signup">Create account</a></li>
<h1><a href="/">hosted twtxt server</a></h1> <li><a href="/account">Edit account</a></li>
</header> </ul>
</td>
<nav> </table>
<ul> {{ end }}
<li><a href="/feeds">Feeds</a></li> {{ define "footer" }}
<li><a href="/signup">Create account</a></li> <center>
<li><a href="/account">Edit account</a></li> <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>
</ul> </center>
</nav> </body>
{{ 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>
</html> </html>
{{ end }} {{ end }}

ファイルの表示

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

ファイルの表示

@ -1,21 +1,13 @@
{{ template "header" }} {{ template "header" }}
<form method="post" action="passwordreset"> <form method="post" action="passwordreset">
<fieldset> <h1>Request password reset</h1>
<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>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>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>
<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> <label for="name">Name</label>
<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> <input type="text" id="name" name="name" />
<hr />
<div> <button type="submit">Request reset</button>
<label for="name">Name</label>
<input type="text" id="name" name="name" />
</div>
<hr />
<button type="submit">Request reset</button>
</fieldset>
</form> </form>
{{ template "footer" }} {{ template "footer" }}

ファイルの表示

@ -1,44 +1,32 @@
{{ template "header" }} {{ template "header" }}
<form method="post" action="signup"> <form method="post" action="signup">
<fieldset> <h1>Create account</h1>
<legend>Create account</legend> <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>
<label for="mail">E-mail address <span>(optional)</span></label> <input type="email" id="mail" name="mail" aria-describedby="mail-desc"/>
<input type="email" id="mail" name="mail" aria-describedby="mail-desc"/> <p id="mail-desc">Used for password reset and feed owner authentication.</p>
<p id="mail-desc">Used for password reset and feed owner authentication.</p>
</div>
<div>
<label for="secquestion">Security question <span>(optional)</span></label> <label for="secquestion">Security question <span>(optional)</span></label>
<input type="text" id="secquestion" name="secquestion" aria-describedby="secquestion-desc" /> <input type="text" id="secquestion" name="secquestion" aria-describedby="secquestion-desc" />
<p id="secquestion-desc">To pose on password reset request.</p> <p id="secquestion-desc">To pose on password reset request.</p>
</div>
<div>
<label for="secanswer">Security question answer <span>(optional)</span></label>
<input type="text" id="secanswer" name="secanswer" />
</div>
<div> <label for="secanswer">Security question answer <span>(optional)</span></label>
<label for="password">Password</label> <input type="text" id="secanswer" name="secanswer" />
<input type="password" id="password" name="new_password" required />
</div>
<div>
<label for="password2">Password <span>(repeat)</span></label>
<input type="password" id="password2" name="new_password2" required />
</div>
<hr /> <label for="password">Password</label>
<input type="password" id="password" name="new_password" required />
<button type="submit">Sign up</button>
</fieldset>
<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> </form>
{{ template "footer" }} {{ template "footer" }}