You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

download.tmpl 2.3 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {{template "base/head" .}}
  2. <div class="repository dataset dir-list view">
  3. {{template "repo/header" .}}
  4. <form class="ui container">
  5. <div class="ui stackable grid {{if .Error}}hide{{end}}" id="dir-content">
  6. <div class="row">
  7. <div class="column sixteen wide">
  8. <p>
  9. {{ 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 }}
  10. </p>
  11. </div>
  12. </div>
  13. </div>
  14. <div class="ui grid">
  15. <div class="row">
  16. <div class="ui sixteen wide column">
  17. <div class="dir list">
  18. <a class="title" href="{{$.RepoLink}}/modelmanage/downloadall?id={{.ID}}">
  19. 下载所有
  20. </a>
  21. {{if .Dirs}}
  22. <table id="repo-files-table" class="ui single line table">
  23. <tbody>
  24. {{range .Dirs}}
  25. <tr>
  26. <td class="name four wide">
  27. <span class="truncate">
  28. <span class="octicon octicon-file-directory"></span>
  29. <a class="title" href="{{if .IsDir}}{{$.RepoLink}}/modelmanage/downloadsingle?id={{$.ID}}&parentDir={{.ParenDir}}{{else}}{{$.RepoLink}}/modelmanage/downloadsingle?id={{$.ID}}&parentDir={{.ParenDir}}&fileName={{.FileName}}{{end}}">
  30. <span class="fitted">{{if .IsDir}} {{svg "octicon-file-directory" 16}}{{else}}{{svg "octicon-file" 16}}{{end}}</span> {{.FileName}}
  31. </a>
  32. </span>
  33. </td>
  34. <td class="message nine wide">
  35. <span class="truncate has-emoji">
  36. {{.Size | FileSize}}
  37. </span>
  38. </td>
  39. <td class="text right age three wide">
  40. <span class="time-since poping up">{{.ModTime}}</span>
  41. </td>
  42. </tr>
  43. {{end}}
  44. </tbody>
  45. </table>
  46. {{end}}
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </form>
  52. </div>
  53. {{template "base/footer" .}}