您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

123456789101112131415161718192021222324252627282930313233
  1. {% extends "base.html" %}
  2. {% block content %}
  3. {{ text|safe }}
  4. <hr>
  5. <p>
  6. Browse from this selection of random tools, search or explore tools, practices, and experimental books.
  7. </p>
  8. <div class="row">
  9. {% for tool in tools %}
  10. <div class="col-md-4 col-sm-6 py-3">
  11. <div class="card text-dark bg-info mb-3">
  12. <div class="card-body">
  13. <a href="{{ url_for('tool.show_tool', tool_id=tool['id']) }}">
  14. <h3 class="card-title text-center text-dark">{{ tool['name'] }}</h3>
  15. </a>
  16. <p class="card-text">
  17. {{ tool['description']|truncate(100) }}
  18. </p>
  19. {% if current_user.is_authenticated %}
  20. <a href="{{ url_for('tool.edit_tool', tool_id=tool['id']) }}">
  21. <span class="badge bg-dark">Edit</span>
  22. </a>
  23. {% endif %}
  24. </div>
  25. </div>
  26. </div>
  27. {% endfor %}
  28. </div>
  29. {% endblock %}