1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2024-12-13 05:50:27 +00:00

Fix more typos

This commit is contained in:
DanInSpace 2021-03-06 14:44:20 +05:00
parent dd5d78322f
commit b5838c946f
6 changed files with 9 additions and 9 deletions

View File

@ -61,7 +61,7 @@ header { width: 100%; margin-bottom: 1rem; }
@media screen and (max-width: 800px) { @media screen and (max-width: 800px) {
.amnt-grid { grid-template-columns: 1fr; } .amnt-grid { grid-template-columns: 1fr; }
.layout { grid-template-column: auto; grid-template-row: auto auto auto; } .layout { grid-template-columns: auto; grid-template-rows: auto auto auto; }
.main-width { width: 100%; } .main-width { width: 100%; }
main { padding: 1rem; margin: 0; } main { padding: 1rem; margin: 0; }
} }
@ -178,7 +178,7 @@ figcaption { padding-bottom: .5rem; }
.rc-entry__links, .rc-entry__msg { grid-column: 1 / span 2; } .rc-entry__links, .rc-entry__msg { grid-column: 1 / span 2; }
.rc-entry__author { font-style: italic; } .rc-entry__author { font-style: italic; }
.prevnext__el { display: block-inline; min-width: 40%; padding: .5rem; margin-bottom: .25rem; text-decoration: none; border-radius: .25rem; } .prevnext__el { display: inline-block; min-width: 40%; padding: .5rem; margin-bottom: .25rem; text-decoration: none; border-radius: .25rem; }
.prevnext__prev { float: left; } .prevnext__prev { float: left; }
.prevnext__next { float: right; text-align: right; } .prevnext__next { float: right; text-align: right; }

View File

@ -40,7 +40,7 @@ func indexHelper(path string, nestLevel uint, ch chan *Hypha) {
} }
for _, node := range nodes { for _, node := range nodes {
// If this hypha looks like it can be a hypha path, go deeper. Do not touch the .git and static folders for they have an admnistrative importance! // If this hypha looks like it can be a hypha path, go deeper. Do not touch the .git and static folders for they have an administrative importance!
if node.IsDir() && if node.IsDir() &&
util.IsCanonicalName(node.Name()) && util.IsCanonicalName(node.Name()) &&
node.Name() != ".git" && node.Name() != ".git" &&

View File

@ -12,7 +12,7 @@ import (
type LinkType int type LinkType int
const ( const (
LinkInavild LinkType = iota LinkInvalid LinkType = iota
// LinkLocalRoot is a link like "/list", "/user-list", etc. // LinkLocalRoot is a link like "/list", "/user-list", etc.
LinkLocalRoot LinkLocalRoot
// LinkLocalHypha is a link like "test", "../test", etc. // LinkLocalHypha is a link like "test", "../test", etc.

View File

@ -13,7 +13,7 @@ func canFactory(
dispatcher func(*hyphae.Hypha, *user.User) (string, string), dispatcher func(*hyphae.Hypha, *user.User) (string, string),
noRightsMsg string, noRightsMsg string,
notExistsMsg string, notExistsMsg string,
careAboutExistince bool, careAboutExistence bool,
) func(*user.User, *hyphae.Hypha) (error, string) { ) func(*user.User, *hyphae.Hypha) (error, string) {
return func(u *user.User, h *hyphae.Hypha) (error, string) { return func(u *user.User, h *hyphae.Hypha) (error, string) {
if !u.CanProceed(action) { if !u.CanProceed(action) {
@ -21,7 +21,7 @@ func canFactory(
return errors.New(noRightsMsg), "Not enough rights" return errors.New(noRightsMsg), "Not enough rights"
} }
if careAboutExistince && !h.Exists { if careAboutExistence && !h.Exists {
rejectLogger(h, u, "does not exist") rejectLogger(h, u, "does not exist")
return errors.New(notExistsMsg), "Does not exist" return errors.New(notExistsMsg), "Does not exist"
} }

View File

@ -27,7 +27,7 @@
<p><img class="icon" width="20" height="20" src="https://upload.wikimedia.org/wikipedia/commons/4/46/Generic_Feed-icon.svg">Subscribe via <a href="/recent-changes-rss">RSS</a>, <a href="/recent-changes-atom">Atom</a> or <a href="/recent-changes-json">JSON feed</a>.</p> <p><img class="icon" width="20" height="20" src="https://upload.wikimedia.org/wikipedia/commons/4/46/Generic_Feed-icon.svg">Subscribe via <a href="/recent-changes-rss">RSS</a>, <a href="/recent-changes-atom">Atom</a> or <a href="/recent-changes-json">JSON feed</a>.</p>
{% comment %} {% comment %}
Here I am, willing to add some accesibility using ARIA. Turns out, Here I am, willing to add some accessibility using ARIA. Turns out,
role="feed" is not supported in any screen reader as of September role="feed" is not supported in any screen reader as of September
2020. At least web search says so. Even JAWS doesn't support it! 2020. At least web search says so. Even JAWS doesn't support it!
How come? I'll add the role anyway. -- bouncepaw How come? I'll add the role anyway. -- bouncepaw

View File

@ -352,7 +352,7 @@ func StreamAboutHTML(qw422016 *qt422016.Writer) {
//line views/stuff.qtpl:98 //line views/stuff.qtpl:98
qw422016.N().S(`</h1> qw422016.N().S(`</h1>
<ul> <ul>
<li><b><a href="https://mycorrhiza.lesarbr.es">MycorrhizaWiki</a> version:</b> β 0.13 indev</li> <li><b><a href="https://mycorrhiza.lesarbr.es">MycorrhizaWiki</a> version:</b> β 0.13</li>
`) `)
//line views/stuff.qtpl:101 //line views/stuff.qtpl:101
if user.AuthUsed { if user.AuthUsed {
@ -445,7 +445,7 @@ func StreamAdminPanelHTML(qw422016 *qt422016.Writer) {
qw422016.N().S(` qw422016.N().S(`
<div class="layout"> <div class="layout">
<main class="main-width"> <main class="main-width">
<h1>Admininstrative functions</h1> <h1>Administrative functions</h1>
<section> <section>
<h2>Safe things</h2> <h2>Safe things</h2>
<ul> <ul>