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.

38 satır
1.5KB

  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. <span class="badge bg-secondary">{{ tool['created'].strftime("%Y-%m-%d %H:%M") }} UTC</span>
  26. {% if current_user.is_authenticated %}
  27. <a href="{{ url_for('tool.edit_tool', tool_id=tool['id']) }}">
  28. <span class="badge bg-warning">Edit</span>
  29. </a>
  30. {% endif %}
  31. </div>
  32. </div>
  33. </div>
  34. {% endfor %}
  35. </div>
  36. {% endblock %}