mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-22 04:18:23 +00:00
webish: more verifierid-to-uri transition
This commit is contained in:
parent
43f32e8c9b
commit
3fb37ae246
@ -17,13 +17,13 @@
|
||||
<tr n:pattern="header">
|
||||
<td>Filename</td>
|
||||
<td>Type</td>
|
||||
<td>fileid</td>
|
||||
<td>URI</td>
|
||||
<td></td>
|
||||
</tr>
|
||||
<tr n:pattern="item" n:render="row">
|
||||
<td><n:slot name="filename"/></td>
|
||||
<td><n:slot name="type"/></td>
|
||||
<td><n:slot name="fileid"/></td>
|
||||
<td><n:slot name="uri"/></td>
|
||||
<td><n:slot name="delete"/></td>
|
||||
</tr>
|
||||
|
||||
|
@ -121,7 +121,7 @@ class Directory(rend.Page):
|
||||
dl_uri_url = url.root.child("download_uri").child(uri)
|
||||
# add a filename= query argument to give it a Content-Type
|
||||
dl_uri_url = dl_uri_url.add("filename", name)
|
||||
ctx.fillSlots("fileid", T.a(href=dl_uri_url)[html.escape(uri)])
|
||||
ctx.fillSlots("uri", T.a(href=dl_uri_url)[html.escape(uri)])
|
||||
|
||||
# this creates a button which will cause our child__delete method
|
||||
# to be invoked, which deletes the file and then redirects the
|
||||
@ -139,7 +139,7 @@ class Directory(rend.Page):
|
||||
ctx.fillSlots("filename",
|
||||
T.a(href=subdir_url)[html.escape(name)])
|
||||
ctx.fillSlots("type", "DIR")
|
||||
ctx.fillSlots("fileid", "-")
|
||||
ctx.fillSlots("uri", "-")
|
||||
ctx.fillSlots("delete", "-")
|
||||
return ctx.tag
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user