3
3
py:extends="'master.kid'">
5
5
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
6
<title> ${branch_name} : files for revision ${change.revno} </title>
6
<title> ${branch.friendly_name} : files for revision ${change.revno} </title>
13
<h1> <span class="branch-name">${branch_name}</span> : files for revision ${change.revno}
13
<h1> <span class="branch-name">${branch.friendly_name}</span> : files for revision ${change.revno}
14
14
<div class="links">
15
<div> <b>→</b> <a href="${tg.url('/revision', start_revid=revid)}"> view revision </a> </div>
16
<div> <b>→</b> <a href="${tg.url('/changes', start_revid=revid)}"> view branch changes </a> </div>
15
<div> <b>→</b> <a href="${branch.url('/revision', **util.get_context(clear=1, start_revid=revid))}">
16
view revision </a> </div>
17
<div> <b>→</b> <a href="${branch.url('/changes', **util.get_context(clear=1, start_revid=revid))}">
18
view branch changes </a> </div>
60
62
<table class="inventory" width="100%">
61
63
<tr class="header">
62
64
<th class="permissions"> Permissions </th>
63
<th> <a href="${tg.url([ '/files', revid ], file_id=file_id, sort='filename')}">Filename</a> </th>
64
<th> <a href="${tg.url([ '/files', revid ], file_id=file_id, sort='size')}">Size</a> </th>
65
<th> Last change </th>
66
<th> <a href="${tg.url([ '/files', revid ], file_id=file_id, sort='date')}">When</a> </th>
65
<th> <a href="${branch.url([ '/files', revid ], **util.get_context(sort='filename'))}">Filename</a> </th>
67
<th> <a href="${branch.url([ '/files', revid ], **util.get_context(sort='date'))}">Last Changed</a> </th>
68
<th> <a href="${branch.url([ '/files', revid ], **util.get_context(sort='size'))}">Size</a> </th>
71
73
<tr class="parity1" py:if="updir">
72
74
<td class="permissions">drwxr-xr-x</td>
73
<td class="filename directory"><a href="${tg.url([ '/files', revid ], file_id=updir_file_id)}"> (up) </a></td>
75
<td class="filename directory"><a href="${branch.url([ '/files', revid ],
76
**util.get_context(file_id=updir_file_id))}"> (up) </a></td>
74
77
<td> </td> <td> </td> <td> </td> <td> </td>
77
80
<tr py:for="file in filelist" class="parity${file.parity}">
78
81
<td class="permissions"> ${util.fake_permissions(file.kind, file.executable)} </td>
79
82
<td class="filename ${file.kind}">
80
<a py:if="file.kind=='directory'" href="${tg.url([ '/files', revid ], file_id=file.file_id)}">${file.filename}/</a>
83
<a py:if="file.kind=='directory'" href="${branch.url([ '/files', revid ],
84
**util.get_context(file_id=file.file_id))}">${file.filename}/</a>
81
85
<span py:if="file.kind=='symlink'">${file.filename}@</span>
82
<a py:if="file.kind=='file'" href="${tg.url([ '/annotate', revid ], file_id=file.file_id)}">${file.filename}</a>
86
<a py:if="file.kind=='file'" href="${branch.url([ '/annotate', revid ],
87
**util.get_context(file_id=file.file_id))}" title="Annotate ${file.filename}">${file.filename}</a>
89
<td class="revision"> ${revision_link(file.revid, util.trunc(file.change.revno, 15), **util.get_context(start_revid=file.revid, file_id=file.file_id))} </td>
90
<td class="date"> ${file.change.date.strftime('%Y-%m-%d, %H:%M')} </td>
84
91
<td class="size"> <span py:if="file.kind=='file'"> ${util.human_size(file.size)} </span></td>
85
<td class="revision"> ${revlink(file.revid, file.revid, file.file_id, util.trunc(file.change.revno, 15))} </td>
86
<td class="date"> ${file.change.date.strftime('%d %b %Y %H:%M')} </td>
87
<td class="changes-link"> <a href="${tg.url('/changes', start_revid=file.revid, file_id=file.file_id)}"> → changes </a></td>
88
<td class="download-link"> <a href="${tg.url([ '/download', file.revid, file.file_id, file.filename ])}"> → download </a></td>
92
<td class="changes-link">
93
<a href="${branch.url('/changes', **util.get_context(start_revid=file.revid, file_id=file.file_id))}"
94
title="Changes affecting ${file.filename} up to revision ${file.change.revno}"> changes </a>
96
<td class="download-link">
97
<a href="${branch.url([ '/download', file.revid, file.file_id, file.filename ])}"
98
title="Download ${file.filename} at revision ${file.change.revno}"> download </a></td>