diff --git a/hyphae/files.go b/hyphae/files.go index 56ccda5..05b856d 100644 --- a/hyphae/files.go +++ b/hyphae/files.go @@ -40,7 +40,7 @@ func indexHelper(path string, nestLevel uint, ch chan *Hypha) { } 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() && util.IsCanonicalName(node.Name()) && node.Name() != ".git" && diff --git a/link/link.go b/link/link.go index 6fe3323..cde5c4b 100644 --- a/link/link.go +++ b/link/link.go @@ -12,7 +12,7 @@ import ( type LinkType int const ( - LinkInavild LinkType = iota + LinkInvalid LinkType = iota // LinkLocalRoot is a link like "/list", "/user-list", etc. LinkLocalRoot // LinkLocalHypha is a link like "test", "../test", etc. diff --git a/shroom/can.go b/shroom/can.go index 152d896..3e0c67f 100644 --- a/shroom/can.go +++ b/shroom/can.go @@ -13,7 +13,7 @@ func canFactory( dispatcher func(*hyphae.Hypha, *user.User) (string, string), noRightsMsg string, notExistsMsg string, - careAboutExistince bool, + careAboutExistence bool, ) func(*user.User, *hyphae.Hypha) (error, string) { return func(u *user.User, h *hyphae.Hypha) (error, string) { if !u.CanProceed(action) { @@ -21,7 +21,7 @@ func canFactory( return errors.New(noRightsMsg), "Not enough rights" } - if careAboutExistince && !h.Exists { + if careAboutExistence && !h.Exists { rejectLogger(h, u, "does not exist") return errors.New(notExistsMsg), "Does not exist" } diff --git a/views/history.qtpl b/views/history.qtpl index 7b5b0ef..e76565f 100644 --- a/views/history.qtpl +++ b/views/history.qtpl @@ -27,7 +27,7 @@
{% 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 2020. At least web search says so. Even JAWS doesn't support it! How come? I'll add the role anyway. -- bouncepaw