|
|
@@ -0,0 +1,59 @@ |
|
|
|
{{template "base/head" .}} |
|
|
|
<div class="repository dataset dir-list view"> |
|
|
|
{{template "repo/header" .}} |
|
|
|
<form class="ui container"> |
|
|
|
<div class="ui stackable grid {{if .Error}}hide{{end}}" id="dir-content"> |
|
|
|
<div class="row"> |
|
|
|
<div class="column sixteen wide"> |
|
|
|
<p> |
|
|
|
{{ range $index, $item := .Path }}<a href='{{$.Link}}/?parentDir={{if gt $index 0}}{{DatasetPathJoin $.Path $index "/"}}{{else}}{{end}}'>{{ $item }}</a><span class="directory-seperator">/</span>{{ end }} |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="ui grid"> |
|
|
|
<div class="row"> |
|
|
|
<div class="ui sixteen wide column"> |
|
|
|
<div class="dir list"> |
|
|
|
<a class="title" href="{{$.RepoLink}}/modelmanage/downloadall?id={{.ID}}"> |
|
|
|
下载所有 |
|
|
|
</a> |
|
|
|
{{if .Dirs}} |
|
|
|
<table id="repo-files-table" class="ui single line table"> |
|
|
|
<tbody> |
|
|
|
{{range .Dirs}} |
|
|
|
<tr> |
|
|
|
<td class="name four wide"> |
|
|
|
<span class="truncate"> |
|
|
|
<span class="octicon octicon-file-directory"></span> |
|
|
|
<a class="title" href="{{if .IsDir}}{{$.RepoLink}}/modelmanage/downloadsingle?id={{$.ID}}&parentDir={{.ParenDir}}{{else}}{{$.RepoLink}}/modelmanage/downloadsingle?id={{$.ID}}&parentDir={{.ParenDir}}&fileName={{.FileName}}{{end}}"> |
|
|
|
<span class="fitted">{{if .IsDir}} {{svg "octicon-file-directory" 16}}{{else}}{{svg "octicon-file" 16}}{{end}}</span> {{.FileName}} |
|
|
|
</a> |
|
|
|
</span> |
|
|
|
</td> |
|
|
|
<td class="message nine wide"> |
|
|
|
<span class="truncate has-emoji"> |
|
|
|
{{.Size | FileSize}} |
|
|
|
</span> |
|
|
|
</td> |
|
|
|
<td class="text right age three wide"> |
|
|
|
<span class="time-since poping up">{{.ModTime}}</span> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
{{end}} |
|
|
|
</tbody> |
|
|
|
</table> |
|
|
|
|
|
|
|
{{end}} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</form> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
{{template "base/footer" .}} |