| @@ -6,6 +6,13 @@ | |||
| <h1 class="text-center">{% block title %} {{ tool['name'] }} {% endblock %}</h1> | |||
| </div> | |||
| </div> | |||
| {% if current_user.is_authenticated %} | |||
| <div class="row text-center py-3"> | |||
| <a href="{{ url_for('tool.edit_tool', tool_id=tool['id']) }}"> | |||
| <span class="badge bg-warning">Edit</span> | |||
| </a> | |||
| </div> | |||
| {% endif %} | |||
| <div class="row"> | |||
| <div class="col"> | |||
| <table class="table table-hover"> | |||
| @@ -23,6 +23,9 @@ | |||
| </a> | |||
| </div> | |||
| <div class="card-body"> | |||
| <p class="card-text"> | |||
| {{ tool['description']|truncate(100) }} | |||
| </p> | |||
| <span class="badge bg-secondary">{{ tool['created'].strftime("%Y-%m-%d %H:%M") }} UTC</span> | |||
| {% if current_user.is_authenticated %} | |||
| <a href="{{ url_for('tool.edit_tool', tool_id=tool['id']) }}"> | |||