選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

practices.html 1.6KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {% extends 'base.html' %}
  2. {% block content %}
  3. <div class="row">
  4. <div class="col-12 text-center">
  5. <h1>{% block title %} Practices {% endblock %}</h1>
  6. </div>
  7. </div>
  8. <div class="row">
  9. <div class="col-12 text-center">
  10. <p>
  11. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque eget viverra magna. Nam in ante ultricies purus feugiat vestibulum et ac erat. Donec in sagittis ante. Maecenas non mauris et eros commodo fringilla. Integer accumsan ullamcorper diam, non rhoncus tellus molestie ut. Maecenas finibus pretium dolor ac sagittis.
  12. </p>
  13. </div>
  14. </div>
  15. <div class="row">
  16. {% for practice in practices %}
  17. <div class="col-md-4 col-sm-6 py-3">
  18. <div class="card">
  19. <div class="card-header">
  20. <a href="{{ url_for('practice.show_practice', practice_id=practice['id']) }}">
  21. <h2 class="card-title">{{ practice['name'] }}</h2>
  22. </a>
  23. </div>
  24. <div class="card-body">
  25. <p class="card-text">
  26. {{ practice['description']|truncate(100) }}
  27. </p>
  28. <span class="badge bg-secondary">{{ practice['created'].strftime("%Y-%m-%d %H:%M") }} UTC</span>
  29. {% if current_user.is_authenticated %}
  30. <a href="{{ url_for('practice.edit_practice', practice_id=practice['id']) }}">
  31. <span class="badge bg-warning">Edit</span>
  32. </a>
  33. {% endif %}
  34. </div>
  35. </div>
  36. </div>
  37. {% endfor %}
  38. </div>
  39. {% endblock %}