Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

66 Zeilen
2.0KB

  1. {% extends 'base.html' %}
  2. {% block content %}
  3. <div class="row">
  4. <div class="col">
  5. <h1 class="text-center">{% block title %} {{ practice['name'] }} {% endblock %}</h1>
  6. </div>
  7. </div>
  8. {% if current_user.is_authenticated %}
  9. <div class="row text-center py-3">
  10. <a href="{{ url_for('practice.edit_practice', practice_id=practice['id']) }}">
  11. <span class="badge bg-dark">Edit</span>
  12. </a>
  13. </div>
  14. {% endif %}
  15. <div class="row">
  16. <div class="col">
  17. <table class="table table-hover">
  18. <tbody>
  19. <tr>
  20. <th>
  21. Created:
  22. </th>
  23. <td>
  24. {{ practice['created'].strftime("%Y-%m-%d %H:%M") }} UTC
  25. </td>
  26. </tr>
  27. <tr>
  28. <th>
  29. Description:
  30. </th>
  31. <td>
  32. {{ practice['description'] }}
  33. </td>
  34. </tr>
  35. </tbody>
  36. </table>
  37. </div>
  38. </div>
  39. {% if resources %}
  40. <div class="row">
  41. <div class="col">
  42. <h2 class="text-center">Linked resources:</h2>
  43. </div>
  44. </div>
  45. <div class="row">
  46. {% for resource in resources %}
  47. <div class="col-md-4 col-sm-6 py-3">
  48. {% if resource['type'] == 'tool' %}
  49. <div class="card text-dark bg-info mb-3">
  50. <div class="card-body">
  51. <a href="{{ url_for('tool.show_tool', tool_id=resource['id']) }}">
  52. <h3 class="card-title text-center text-dark">{{ resource['name'] }}</h3>
  53. </a>
  54. <p class="card-text">
  55. {{ resource['description']|truncate(100) }}
  56. </p>
  57. </div>
  58. </div>
  59. {% endif %}
  60. </div>
  61. {% endfor %}
  62. </div>
  63. {% endif %}
  64. {% endblock %}