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.

examples.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 %} Examples {% 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 example in examples %}
  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('example.show_example', example_id=example['id']) }}">
  21. <h2 class="card-title">{{ example['name'] }}</h2>
  22. </a>
  23. </div>
  24. <div class="card-body">
  25. <p class="card-text">
  26. {{ example['description']|truncate(100) }}
  27. </p>
  28. <span class="badge bg-secondary">{{ example['created'].strftime("%Y-%m-%d %H:%M") }} UTC</span>
  29. {% if current_user.is_authenticated %}
  30. <a href="{{ url_for('example.edit_example', example_id=example['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 %}