<h1 class="text-center">{% block title %} {{ tool['name'] }} {% endblock %}</h1> | <h1 class="text-center">{% block title %} {{ tool['name'] }} {% endblock %}</h1> | ||||
</div> | </div> | ||||
</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="row"> | ||||
<div class="col"> | <div class="col"> | ||||
<table class="table table-hover"> | <table class="table table-hover"> |
</a> | </a> | ||||
</div> | </div> | ||||
<div class="card-body"> | <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> | <span class="badge bg-secondary">{{ tool['created'].strftime("%Y-%m-%d %H:%M") }} UTC</span> | ||||
{% if current_user.is_authenticated %} | {% if current_user.is_authenticated %} | ||||
<a href="{{ url_for('tool.edit_tool', tool_id=tool['id']) }}"> | <a href="{{ url_for('tool.edit_tool', tool_id=tool['id']) }}"> |