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.

148 lines
6.2 KiB

6 years ago
6 years ago
  1. {% extends "base.html" %}
  2. {% load static %}
  3. {% block content %}
  4. <section class="hero project-image">
  5. <div class="container">
  6. <div class="columns">
  7. <div class="column is-12">
  8. <h1 class="title is-1 has-text-white">
  9. Hello, {{ user.get_username | title }}.
  10. </h1>
  11. <h2 class="subtitle is-4 has-text-white">
  12. I hope you are having a great day!
  13. </h2>
  14. <p>
  15. <a class="button is-medium is-primary">
  16. Create Project
  17. </a>
  18. </p>
  19. </div>
  20. </div>
  21. </div>
  22. </section>
  23. <div class="container">
  24. <div class="columns" style="margin-top:0">
  25. <div class="column is-3">
  26. <aside class="menu">
  27. <p class="menu-label">
  28. Categories
  29. </p>
  30. <ul class="menu-list">
  31. <li>
  32. <a class="is-active">All</a>
  33. </li>
  34. <li>
  35. <a>Document Classification</a>
  36. </li>
  37. <li>
  38. <a>Sequence Labeling</a>
  39. </li>
  40. <li>
  41. <a>Sequence to sequence</a>
  42. </li>
  43. </ul>
  44. </aside>
  45. </div>
  46. <div class="column is-9">
  47. {% for project in object_list %}
  48. {% if forloop.counter0|divisibleby:3 %}
  49. <div class="columns features">
  50. {% endif %}
  51. <div class="column is-4">
  52. <div class="card is-shady">
  53. <div class="card-image">
  54. <figure class="image is-4by3">
  55. <img src="{{ project.image }}" alt="Placeholder image" class="modal-button" data-target="modal-image2">
  56. </figure>
  57. </div>
  58. <div class="card-content">
  59. <div class="content">
  60. <h4>
  61. <a href="{% url 'annotation' project.id %}">{{ project.name }}</a>
  62. </h4>
  63. <p>
  64. {{ project.description|truncatechars:50 }}
  65. </p>
  66. <a class="button is-link is-small" href="{% url 'project-admin' project.id %}">
  67. <i class="fas fa-cog"></i>&nbsp;Settings
  68. </a>
  69. </div>
  70. </div>
  71. </div>
  72. {% if forloop.counter|divisibleby:3 or forloop.counter|length == object_list|length %}
  73. </div>
  74. {% endif %}
  75. </div>
  76. {% endfor %}
  77. </div>
  78. </div>
  79. </div>
  80. <!--
  81. <section class="container" id="root">
  82. <div class="columns">
  83. <div class="column is-10 is-offset-1">
  84. <div class="hero project-image">
  85. <div class="hero-body">
  86. <div class="container">
  87. <h1 class="title has-text-white">
  88. Hello, {{ user.get_username | title }}.
  89. </h1>
  90. <h2 class="subtitle has-text-white">
  91. I hope you are having a great day!
  92. </h2>
  93. <a class="button is-primary">Create Project</a>
  94. </div>
  95. </div>
  96. </div>
  97. <div class="box content">
  98. <article class="post">
  99. <h4>My Projects</h4>
  100. <div class="media">
  101. <div class="media-content">
  102. <div class="content">
  103. <table class="table is-hoverable">
  104. <thead>
  105. <tr>
  106. <th>Id</th>
  107. <th>Project name</th>
  108. <th>Priority</th>
  109. <th>Progress</th>
  110. <th>Action</th>
  111. </tr>
  112. </thead>
  113. <tbody>
  114. {% for project in object_list %}
  115. <tr>
  116. <th style="vertical-align:middle;">{{ forloop.counter }}</th>
  117. <td>
  118. <a href="{% url 'annotation' project.id %}">{{ project.name }}</a>
  119. <p>{{ project.description|truncatechars:50 }}</p>
  120. </td>
  121. <td style="vertical-align:middle;">
  122. <span class="tag is-danger">High</span>
  123. </td>
  124. <td style="vertical-align:middle;">
  125. <progress class="progress is-primary" value="70" max="100">30%</progress>
  126. </td>
  127. <td style="vertical-align:middle;">
  128. <a class="button is-link is-small" href="{% url 'project-admin' project.id %}">
  129. <i class="fas fa-cog"></i>&nbsp;Settings
  130. </a>
  131. </td>
  132. </tr>
  133. {% endfor %}
  134. </tbody>
  135. </table>
  136. </div>
  137. </div>
  138. </div>
  139. </article>
  140. </div>
  141. </div>
  142. </div>
  143. </section>
  144. -->
  145. {% endblock %}