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

157 lines
5.1 KiB

  1. div.columns(v-cloak="")
  2. aside.column.is-3.aside.hero.is-fullheight
  3. div
  4. div.main.pr20.pl20
  5. div.field.has-addons
  6. div.control.is-expanded
  7. input.input(
  8. v-model="searchQuery"
  9. v-on:keyup.enter="submit"
  10. type="text"
  11. placeholder="Search document"
  12. style="border-right: none; box-shadow: none; -webkit-box-shadow: none;"
  13. )
  14. div.control
  15. div.dropdown.is-hoverable.is-right
  16. div.dropdown-trigger
  17. button.button(
  18. aria-haspopup="true"
  19. aria-controls="dropdown-menu"
  20. style="border-left: none"
  21. )
  22. span.icon.has-text-grey.pr0
  23. i.fas.fa-angle-down(aria-hidden="true")
  24. div.dropdown-menu.pt0#dropdown-menu(role="menu")
  25. div.dropdown-content
  26. a.dropdown-item
  27. label.radio
  28. input(
  29. v-model="picked"
  30. type="radio"
  31. value="all"
  32. checked=""
  33. )
  34. | All
  35. a.dropdown-item
  36. label.radio
  37. input(
  38. v-model="picked"
  39. type="radio"
  40. value="active"
  41. )
  42. | Active
  43. a.dropdown-item
  44. label.radio
  45. input(
  46. v-model="picked"
  47. type="radio"
  48. value="completed"
  49. )
  50. | Completed
  51. div.main.pt0.pb0.pr20.pl20
  52. span About {{ count }} results
  53. div.main
  54. a.item(
  55. v-for="(doc, index) in docs"
  56. v-bind:class="{ active: index == pageNumber }"
  57. v-bind:data-preview-id="index"
  58. v-on:click="pageNumber = index"
  59. href="#"
  60. )
  61. span.icon
  62. i.fa.fa-check(v-show="annotations[index] && annotations[index].length")
  63. span.name {{ doc.text.slice(0, 60) }}...
  64. div.column.is-7.is-offset-1.message.hero.is-fullheight#message-pane
  65. div.modal(v-bind:class="{ 'is-active': isAnnotationGuidelineActive }")
  66. div.modal-background
  67. div.modal-card
  68. header.modal-card-head
  69. p.modal-card-title Annotation Guideline
  70. button.delete(
  71. v-on:click="isAnnotationGuidelineActive = !isAnnotationGuidelineActive"
  72. aria-label="close"
  73. )
  74. section.modal-card-body.modal-card-body-footer.content(
  75. v-html="compiledMarkdown"
  76. style="line-height: 150%"
  77. )
  78. div.modal(v-bind:class="{ 'is-active': isMetadataActive }")
  79. div.modal-background
  80. div.modal-card
  81. header.modal-card-head
  82. p.modal-card-title Document Metadata
  83. button.delete(
  84. v-on:click="isMetadataActive = !isMetadataActive"
  85. aria-label="close"
  86. )
  87. section.modal-card-body.modal-card-body-footer
  88. vue-json-pretty(
  89. v-bind:data="documentMetadata"
  90. v-bind:show-double-quotes="false"
  91. v-bind:show-line="false"
  92. )
  93. div.columns.is-multiline.is-gapless.is-mobile.is-vertical-center
  94. div.column.is-3
  95. progress.progress.is-inline-block(
  96. v-bind:class="progressColor"
  97. v-bind:value="achievement"
  98. max="100"
  99. ) 30%
  100. div.column.is-6
  101. span.ml10
  102. strong {{ total - remaining }}
  103. | /
  104. span {{ total }}
  105. div.column.is-1.has-text-right
  106. a.button.tooltip.is-tooltip-bottom(
  107. v-if="isSuperuser"
  108. v-on:click="approveDocumentAnnotations"
  109. v-bind:data-tooltip="documentAnnotationsApprovalTooltip"
  110. )
  111. span.icon
  112. i.far(v-bind:class="[documentAnnotationsAreApproved ? 'fa-check-circle' : 'fa-circle']")
  113. div.column.is-1.has-text-right
  114. a.button(v-on:click="isAnnotationGuidelineActive = !isAnnotationGuidelineActive")
  115. span.icon
  116. i.fas.fa-book
  117. div.column.is-1.has-text-right
  118. a.button(
  119. v-on:click="isMetadataActive = !isMetadataActive && documentMetadata != null"
  120. v-bind:disabled="documentMetadata == null"
  121. v-bind:title="documentMetadata == null ? 'No document metadata available.' : null"
  122. )
  123. span.icon
  124. i.fas.fa-box
  125. block annotation-area
  126. div.level.mt30
  127. a.button.level-left(
  128. v-shortkey="{ prev1: ['ctrl', 'p'], prev2: ['arrowup'], prev3: ['arrowleft'] }"
  129. v-on:click="prevPage"
  130. v-on:shortkey="prevPage"
  131. )
  132. span.icon
  133. i.fas.fa-chevron-left
  134. span Prev
  135. span.button.level-center.is-static {{ offset + pageNumber + 1 }} / {{ count }}
  136. a.button.level-right(
  137. v-shortkey="{ next1: ['ctrl', 'n'], next2: ['arrowdown'], next3: ['arrowright'] }"
  138. v-on:click="nextPage"
  139. v-on:shortkey="nextPage"
  140. )
  141. span Next
  142. span.icon
  143. i.fas.fa-chevron-right