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.

61 lines
3.1 KiB

6 years ago
  1. {% extends "base.html" %} {% load static %} {% block content %}
  2. <section class="container" id="root">
  3. <div class="columns">
  4. <div class="column is-10 is-offset-1">
  5. <div class="hero project-image">
  6. <div class="hero-body">
  7. <div class="container">
  8. <h1 class="title has-text-white">
  9. Hello, {{ user.get_username | title }}.
  10. </h1>
  11. <h2 class="subtitle has-text-white">
  12. I hope you are having a great day!
  13. </h2>
  14. <a class="button is-primary">Create Project</a>
  15. </div>
  16. </div>
  17. </div>
  18. <div class="box content">
  19. <article class="post">
  20. <h4>My Projects</h4>
  21. <div class="media">
  22. <div class="media-content">
  23. <div class="content">
  24. <table class="table is-hoverable">
  25. <thead>
  26. <tr>
  27. <th>Id</th>
  28. <th>Project name</th>
  29. <th>Priority</th>
  30. <th>Progress</th>
  31. <th>Action</th>
  32. </tr>
  33. </thead>
  34. <tbody>
  35. {% for project in object_list %}
  36. <tr>
  37. <th style="vertical-align:middle;">{{ forloop.counter }}</th>
  38. <td>
  39. <a href="{% url 'annotation' project.id %}">{{ project.name }}</a>
  40. <p>{{ project.description|truncatechars:50 }}</p>
  41. </td>
  42. <td style="vertical-align:middle;"><span class="tag is-danger">High</span></td>
  43. <td style="vertical-align:middle;"><progress class="progress is-primary" value="70" max="100">30%</progress></td>
  44. <td style="vertical-align:middle;">
  45. <a class="button is-link is-small" href="{% url 'project-admin' project.id %}">
  46. <i class="fas fa-cog"></i>&nbsp;Settings
  47. </a>
  48. </td>
  49. </tr>
  50. {% endfor %}
  51. </tbody>
  52. </table>
  53. </div>
  54. </div>
  55. </div>
  56. </article>
  57. </div>
  58. </div>
  59. </div>
  60. </section>
  61. {% endblock %}