From: Zooko O'Whielacronx Date: Fri, 5 Dec 2008 22:39:39 +0000 (-0700) Subject: web: fix more info links again X-Git-Url: https://git.rkrishnan.org/pf/content/en/footer/statistics?a=commitdiff_plain;h=21d88a0cba84491dab0ba8d470d22e3358d880d0;p=tahoe-lafs%2Ftahoe-lafs.git web: fix more info links again Really, *really* closes #553. --- diff --git a/src/allmydata/web/directory.py b/src/allmydata/web/directory.py index 00329624..fc30c9ac 100644 --- a/src/allmydata/web/directory.py +++ b/src/allmydata/web/directory.py @@ -532,8 +532,7 @@ class DirectoryAsHTML(rend.Page): ctx.fillSlots("size", "?") - text_plain_url = "%s/file/%s/@@named=/foo.txt" % (root, quoted_uri) - info_link = "%s?t=info" % nameurl + info_link = "%s/uri/%s?t=info" % (root, quoted_uri) elif IFileNode.providedBy(target): dlurl = "%s/file/%s/@@named=/%s" % (root, quoted_uri, nameurl) @@ -544,8 +543,7 @@ class DirectoryAsHTML(rend.Page): ctx.fillSlots("size", target.get_size()) - text_plain_url = "%s/file/%s/@@named=/foo.txt" % (root, quoted_uri) - info_link = "%s?t=info" % nameurl + info_link = "%s/uri/%s?t=info" % (root, quoted_uri) elif IDirectoryNode.providedBy(target): # directory @@ -558,7 +556,7 @@ class DirectoryAsHTML(rend.Page): dirtype = "DIR" ctx.fillSlots("type", dirtype) ctx.fillSlots("size", "-") - info_link = "%s/?t=info" % nameurl + info_link = "%s/uri/%s/?t=info" % (root, quoted_uri) moreinfourl = "%s/uri/%s?t=info" % (root, quoted_uri) ctx.fillSlots("info", T.a(href=moreinfourl)["More Info"])