<h2 n:render="header"></h2>
<div><a href=".">Refresh this view</a></div>
-<div><a href="..">Parent Directory</a></div>
+<div n:render="welcome" />
+
<div>Other representations of this directory:
<a href="?t=manifest">manifest</a>,
<a href="?t=uri">URI</a>,
header.append(":")
return ctx.tag[header]
+ def render_welcome(self, ctx, data):
+ depth = len(self._dirpath) + 2
+ link = "/".join([".."] * depth)
+ return T.div[T.a(href=link)["Return to Welcome page"]]
+
def data_share_uri(self, ctx, data):
return self._dirnode.get_uri()
def data_share_readonly_uri(self, ctx, data):