mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-31 08:25:35 +00:00
webish: mark read-only directories as such when listing their parent
This commit is contained in:
parent
bc2603c818
commit
b6162681d5
@ -186,7 +186,11 @@ class Directory(rend.Page):
|
||||
subdir_url = urllib.quote(name)
|
||||
ctx.fillSlots("filename",
|
||||
T.a(href=subdir_url)[html.escape(name)])
|
||||
ctx.fillSlots("type", "DIR")
|
||||
if target.is_mutable():
|
||||
dirtype = "DIR"
|
||||
else:
|
||||
dirtype = "DIR-RO"
|
||||
ctx.fillSlots("type", dirtype)
|
||||
ctx.fillSlots("size", "-")
|
||||
ctx.fillSlots("uri", "-")
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user