mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-12-12 05:20:26 +00:00
commit
81c75a4926
@ -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" &&
|
||||||
|
@ -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.
|
||||||
|
@ -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"
|
||||||
}
|
}
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user