filename goes in the dict

This commit is contained in:
meejah 2019-09-23 22:53:13 -06:00
parent 19baba226a
commit effaa6500c

View File

@ -842,7 +842,6 @@ class DirectoryAsHTML(Element):
info_link = "%s/uri/%s/?t=info" % (root, quoted_uri)
elif isinstance(target, ProhibitedNode):
tag.fillSlots(filename=tags.strike(name))
if IDirectoryNode.providedBy(target.wrapped_node):
blacklisted_type = "DIR-BLACKLISTED"
else:
@ -850,6 +849,7 @@ class DirectoryAsHTML(Element):
slots["type"] = blacklisted_type
slots["size"] = "-"
slots["info"] = ["Access Prohibited:", tags.br, target.reason]
slots["filename"] = tags.strike(name)
info_link = None
else: