project-progress.html 985 B

123456789101112131415161718192021222324252627282930313233343536
  1. {% assign project-id = include.project-id | default: 0 %}
  2. {% assign project = site.data.projects[project-id] %}
  3. {% assign progress = include.progress | default: 25 %}
  4. {% assign days-ago = include.days-ago | default: 2 %}
  5. <div class="card">
  6. <div class="card-body">
  7. <div class="row align-items-center">
  8. <div class="col-3">
  9. <img src="{{ project.image }}" alt="{{ project.title | escape }}" class="rounded">
  10. </div>
  11. <div class="col">
  12. <h3 class="card-title mb-1">
  13. <a href="#" class="text-reset">{{ project.title }}</a>
  14. </h3>
  15. <div class="text-secondary">
  16. Updated 2 hours ago
  17. </div>
  18. <div class="mt-3">
  19. <div class="row g-2 align-items-center">
  20. <div class="col-auto">
  21. {{ progress }}%
  22. </div>
  23. <div class="col">
  24. {% include ui/progress.html value=progress size="sm" %}
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="col-auto">
  30. {% include ui/card-dropdown.html %}
  31. </div>
  32. </div>
  33. </div>
  34. </div>