update templates

consistent indentation, fix aria attirbutes, smaller stuff
このコミットが含まれているのは:
kaikubasta 2016-02-16 22:20:57 +01:00
コミット 91905829bf
10個のファイルの変更31行の追加35行の削除

ファイルの表示

@ -2,10 +2,10 @@
<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>
<li><a href="/accountsetpw">Change password</a></li>
<li><a href="/accountsetmail">Set mail address</a></li>
<li><a href="/accountsetquestion">sSet security question</a></li>
<li><a href="/passwordreset">Request password reset</a></li>
</ul>
</section>
{{ template "footer" }}

ファイルの表示

@ -3,16 +3,16 @@
<fieldset>
<legend>Set account security question</legend>
<div>
<label for="secquestion">New security question</label>
<input type="text" id="secquestion" name="secquestion" required />
<p id="sequestion-desc">To pose on password reset request.</p>
</div>
<div>
<label for="secquestion">New security question</label>
<input type="text" id="secquestion" name="secquestion" aria-describedby="secquestion-desc-desc" required />
<p id="secquestion-desc">To pose on password reset request.</p>
</div>
<div>
<label for="secanswer">New security question answer</label>
<input type="text" id="secanswer" name="secanswer" required />
</div>
</div>
<hr />

ファイルの表示

@ -1,8 +1,8 @@
{{ 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>
<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>
{{ template "footer" }}

ファイルの表示

@ -1,7 +1,7 @@
{{ template "header" }}
<section>
<h2>Password reset inactive</h2>
<p>The site operator has currently not activated automatic password resetting.</p>
<p>The site operator has currently not activated automatic password resetting.</p>
</section>
{{ template "footer" }}

ファイルの表示

@ -1,6 +1,6 @@
{{ 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>
<p>The site operator has not decided to currently open up account creation on this site to the public.</p>
</section>
{{ template "footer" }}

ファイルの表示

@ -29,7 +29,7 @@
{{ end }}
{{ define "footer" }}
<footer>
<p><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>
<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>

ファイルの表示

@ -6,7 +6,7 @@
<div>
<label for="name">Name</label>
<input type="text" id="name" name="name" required />
<p id="name-desc">(please repeat for verification)</p>
<p id="name-desc">Please repeat for verification.</p>
</div>
<div>

ファイルの表示

@ -6,13 +6,12 @@
<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>
<div>
<label for="secanswer">Security question: {{ .Question }}</label>
<input type="text" id="secanswer" name="secanswer" required />
</div>
</div>
<div>
<label for="password">New password</label>

ファイルの表示

@ -3,21 +3,18 @@
<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">Account whose login to reset</label>
<label for="name">Name</label>
<input type="text" id="name" name="name" />
<hr />
<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>
<hr />
<button type="submit">Request</button>
<button type="submit">Request reset</button>
</fieldset>
</form>
{{ template "footer" }}

ファイルの表示

@ -5,7 +5,7 @@
<div>
<label for="name">Name</label>
<input type="text" id="name" name="name" maxlength="140" aria-describedby="name-rules" pattern="[a-zA-Z0-9_]{1,140}" required />
<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>
@ -15,11 +15,11 @@
<p id="mail-desc">Used for password reset and feed owner authentication.</p>
</div>
<div>
<label for="secquestion">Security question <span>(optional)</span></label>
<input type="text" id="secquestion" name="secquestion" />
<p id="sequestion-desc">To pose on password reset request.</p>
</div>
<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>
<div>
<label for="secanswer">Security question answer <span>(optional)</span></label>