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.

86 lines
4.0 KiB

  1. {% extends "base.html" %}
  2. {% load static %}
  3. {% block header %}
  4. <link rel="stylesheet" type="text/css" href="{% static 'css/annotation.css' %}">
  5. {% endblock %}
  6. {% block content %}
  7. <div class="columns" id="mail-app">
  8. <aside class="column is-3 aside hero is-fullheight">
  9. <div>
  10. <div class="main" style="padding: 20px 20px">
  11. <div class="field has-addons">
  12. <div class="control is-expanded">
  13. <input class="input" type="text" placeholder="Search document" v-model="searchQuery" @keyup.enter="submit" style="border-right:none;box-shadow: none;-webkit-box-shadow: none;">
  14. </div>
  15. <div class="control">
  16. <div class="dropdown is-hoverable is-right">
  17. <div class="dropdown-trigger">
  18. <button class="button" aria-haspopup="true" aria-controls="dropdown-menu" style="border-left:none">
  19. <span class="icon has-text-grey" style="padding-right:0;">
  20. <i class="fas fa-angle-down" aria-hidden="true"></i>
  21. </span>
  22. </button>
  23. </div>
  24. <div class="dropdown-menu" id="dropdown-menu" role="menu" style="padding-top:0">
  25. <div class="dropdown-content">
  26. <a href="#" class="dropdown-item">
  27. <label class="radio">
  28. <input type="radio" name="state" checked> All
  29. </label>
  30. </a>
  31. <a class="dropdown-item">
  32. <label class="radio">
  33. <input type="radio" name="state"> Active
  34. </label>
  35. </a>
  36. <a href="#" class="dropdown-item">
  37. <label class="radio">
  38. <input type="radio" name="state"> Completed
  39. </label>
  40. </a>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. </div>
  46. </div>
  47. <div class="main">
  48. <a href="#" class="item" v-for="(msg, index) in items" v-bind:class="{ active: index == cur }" v-on:click="showMessage(index)"
  49. v-bind:data-preview-id="index">
  50. <span class="icon">
  51. <i class="fa fa-check" v-if="msg.labels.length"></i>
  52. </span>
  53. <span class="name">[[ msg.text.slice(0, 40) ]]...</span>
  54. </a>
  55. </div>
  56. </div>
  57. </aside>
  58. <div class="column is-7 is-offset-1 message hero is-fullheight" id="message-pane">
  59. <div class="progress-bar">
  60. <progress class="progress" v-bind:class="progressColor" v-bind:value="achievement" max="100">30%</progress>
  61. </div>
  62. {% block annotation-area %} {% endblock %}
  63. <div class="level" style="margin-top:30px;">
  64. <a class="button level-left" v-on:click="prevPage" v-shortkey="['ctrl', 'p']" @shortkey="prevPage">
  65. <span class="icon">
  66. <i class="fas fa-chevron-left"></i>
  67. </span>
  68. <span>Prev</span>
  69. </a>
  70. <a class="button level-right" v-on:click="nextPage" v-shortkey="['ctrl', 'n']" @shortkey="nextPage">
  71. <span>Next</span>
  72. <span class="icon">
  73. <i class="fas fa-chevron-right"></i>
  74. </span>
  75. </a>
  76. </div>
  77. </div>
  78. </div>
  79. {% endblock %}