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 4.0 kB

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