tahoe-lafs/src/allmydata/web/directory.xhtml
Sajith Sasidharan dce73f7c2f Make "Refresh" link work
This seems to be a subtle difference from nevow: with `href="."`,
rendered link target will be `/uri/`, so clicking "Refresh" will
result in an error message like so: "GET /uri requires uri=".

With `href=""`, the rendered link target will be `/uri/URI:...`, which
is what we need.
2020-05-29 21:44:10 -04:00

86 lines
2.8 KiB
HTML

<!DOCTYPE html>
<html lang="en" xmlns:t="http://twistedmatrix.com/ns/twisted.web.template/0.1">
<head>
<meta charset="utf-8"/>
<title t:render="title"></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="Tahoe-LAFS is a free and open cloud storage engine"/>
<meta name="author" content="Tahoe-LAFS"/>
<!-- Le styles -->
<link href="/css/bootstrap.css" rel="stylesheet"/>
<link href="/css/bootstrap-responsive.css" rel="stylesheet"/>
<link href="/css/new-tahoe.css" rel="stylesheet"/>
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="/icon.png" />
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="brand" href="/"><img src="/img/logo.png" alt="Tahoe-LAFS"/></a>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span3">
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="toolbar-item" t:render="welcome" />
<li class="toolbar-item"><a href="">Refresh</a></li>
<li class="toolbar-item"><a href="?t=info">More info on this directory</a></li>
<li class="toolbar-item" t:render="show_readonly" />
</ul>
</div>
</div>
<div class="span9">
<h1 t:render="header"></h1>
<div t:render="try_children">
<table class="table table-striped tahoe-directory" t:render="children">
<tr t:render="header">
<th>Type</th>
<th>Filename</th>
<th>Size</th>
<th>Times</th>
<th></th>
<th></th>
<th></th>
</tr>
<tr t:render="item">
<td><t:slot name="type"/></td>
<td><t:slot name="filename"/></td>
<td align="right"><t:slot name="size"/></td>
<td><t:slot name="times"/></td>
<td><t:slot name="unlink"/></td>
<td><t:slot name="rename"/></td>
<td><t:slot name="info"/></td>
</tr>
<tr t:render="empty"><td colspan="9" class="empty-marker">This directory is empty.</td></tr>
</table>
</div>
<div class="tahoe-directory-footer">
<div t:render="forms"/>
<div class="results" t:render="results"/>
</div>
</div><!--/span-->
</div><!--/row-->
<hr/>
<footer>
<p>&#169; <a href="http://tahoe-lafs.org/">Tahoe-LAFS 2013</a></p>
</footer>
</div><!--/.fluid-container-->
</body>
</html>