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.

41 line
1.6KB

  1. {% extends 'base.html' %}
  2. {% block content %}
  3. <div class="row">
  4. <div class="col-12 text-center">
  5. <h1>{% block title %} Tools {% 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 tool in tools %}
  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('tool.show_tool', tool_id=tool['id']) }}">
  21. <h2 class="card-title">{{ tool['name'] }}</h2>
  22. </a>
  23. </div>
  24. <div class="card-body">
  25. <p class="card-text">
  26. {{ tool['description']|truncate(100) }}
  27. </p>
  28. <span class="badge bg-secondary">{{ tool['created'].strftime("%Y-%m-%d %H:%M") }} UTC</span>
  29. {% if current_user.is_authenticated %}
  30. <a href="{{ url_for('tool.edit_tool', tool_id=tool['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 %}