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.

index.tmpl 3.7 kB

5 years ago
5 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. {{template "base/head" .}}
  2. <div class="repository release dataset-list view">
  3. {{template "repo/header" .}}
  4. <form class="ui container" action="{{.Link}}" method="post">
  5. <input name="id" value="{{.dataset.ID}}" type="hidden" />
  6. <div id="datasetId" datasetId="{{.dataset.ID}}">
  7. {{.CsrfTokenHtml}}
  8. {{template "base/alert" .}}
  9. <div class="ui stackable grid {{if .Error}}hide{{end}}" id="dataset-content">
  10. <div class="row">
  11. <div class="column sixteen {{if .Permission.CanWrite $.UnitTypeDatasets}}twelve{{end}} wide">
  12. <h2>{{.dataset.Title}}</h2>
  13. <div id="dataset-desc">
  14. <span class="no-description text-italic">{{.dataset.Description}}</span>
  15. </div>
  16. </div>
  17. {{if .Permission.CanWrite $.UnitTypeDatasets}}
  18. <div class="column four wide right aligned">
  19. <a class="ui button primary" href="javascript:void(0)" id="dataset-edit">
  20. {{.i18n.Tr "dataset.edit"}}
  21. </a>
  22. </div>
  23. {{end}}
  24. </div>
  25. </div>
  26. <div class="ui grid form segment success {{if not .Error}}hide{{end}}" id="dataset-content-edit">
  27. <label class="d-block">{{.i18n.Tr "dataset.title"}}</label>
  28. <div class="sixteen wide column">
  29. <input name="title" placeholder='{{.i18n.Tr "dataset.title"}}' value="{{.dataset.Title}}" autofocus required maxlength="255">
  30. </div>
  31. <label class="d-block">{{.i18n.Tr "dataset.description"}}</label>
  32. <div class="sixteen wide column">
  33. <textarea name="description" rows="3">{{.dataset.Description}}</textarea>
  34. </div>
  35. <div class="sixteen wide column">
  36. <a class="ui button" id="cancel">{{.i18n.Tr "cancel"}}</a>
  37. <button class="ui primary button" id="submit">{{.i18n.Tr "dataset.update_dataset"}}</button>
  38. </div>
  39. </div>
  40. <div class="ui divider"></div>
  41. <div class="ui grid">
  42. <div class="row">
  43. <div class="ui twelve wide column">
  44. <div class="ui sixteen wide column">
  45. <div class="ui two column stackable grid">
  46. <div class="column">
  47. <h2>{{.i18n.Tr "datasets"}}</h2>
  48. </div>
  49. <div class="column right aligned">
  50. <div class="ui right dropdown type jump item">
  51. <span class="text">
  52. {{.i18n.Tr "repo.issues.filter_sort"}}<i class="dropdown icon"></i>
  53. </span>
  54. <div class="menu">
  55. <a class="item" href="{{$.Link}}?sort=newest&q={{$.Keyword}}&tab={{$.TabName}}">{{.i18n.Tr "repo.issues.filter_sort.latest"}}</a>
  56. <a class="item" href="{{$.Link}}?sort=oldest&q={{$.Keyword}}&tab={{$.TabName}}">{{.i18n.Tr "repo.issues.filter_sort.oldest"}}</a>
  57. </div>
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. <div class="dataset list">
  63. {{template "repo/datasets/dataset_list" .}}
  64. </div>
  65. <div class="dataset ui middle very relaxed page">
  66. <div class="column">
  67. <div id="minioUploader">
  68. </div>
  69. </div>
  70. </div>
  71. </div>
  72. <div class="ui four wide column">
  73. {{template "repo/datasets/right_side" .}}
  74. </div>
  75. </div>
  76. </div>
  77. </form>
  78. </div>
  79. <div class="ui small basic delete modal" id="data-dataset-delete-modal">
  80. <div class="ui icon header">
  81. <i class="trash icon"></i>
  82. {{.i18n.Tr "dataset.attachment.delete"}}
  83. </div>
  84. <div class="content">
  85. <p>{{.i18n.Tr "dataset.attachment.delete_desc" | Str2html}}</p>
  86. </div>
  87. {{template "base/delete_modal_actions" .}}
  88. </div>
  89. {{template "base/footer" .}}