Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
42 lines (39 sloc) 1.51 KB
#{extends 'main.html' /}
#{set title:'Browse repo' /}
<div class="alert">
Note that this is a test Ceylon repo, which will be dropped after Ceylon hits 1.0.
</div>
#{if file.isRoot() && file.listFiles().length == 0}
<div class="alert alert-info">
No file yet.
</div>
#{/if}
#{else}
#{if moduleVersion}
<div class="alert alert-info">
<a href="@{Repo.view(moduleVersion.module.name, moduleVersion.version)}"><i class="icon-info-sign"></i> View module version page</a>.
</div>
#{/if}
#{if module}
<div class="alert alert-info">
<a href="@{Repo.versions(module.name)}"><i class="icon-info-sign"></i> View module page</a>.
</div>
#{/if}
<table class="table">
<caption>Browse ${file.relative() ?: 'root'}</caption>
#{if !file.isRoot()}
<tr>
<td colspan="3"><a href="@{Repo.viewFile(file.parentFile.relative())}" title="Browse parent folder"><i class="icon-folder-open"></i> Parent</a></td>
</tr>
#{/if}
#{list items:file.listFiles(), as:'child'}
<tr>
<td><a href="@{Repo.viewFile(child.relative())}" title="${child.directory ? 'Browse folder' : 'View file'}"><i class="icon-${child.directory ? 'folder-open' : 'file'}"></i> ${child.name}</a></td>
<td>
#{if child.directory}${child.folderSize().formatSize()}#{/if}
#{else}${child.length().formatSize()}#{/else}
</td>
</tr>
#{/list}
</table>
#{/else}
Something went wrong with that request. Please try again.