Browse Source

Enhancing tool pages

joel
Simon Bowie 3 years ago
parent
commit
90f9d4b0f3
2 changed files with 10 additions and 0 deletions
  1. +7
    -0
      web/app/templates/tool.html
  2. +3
    -0
      web/app/templates/tools.html

+ 7
- 0
web/app/templates/tool.html View File

<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">

+ 3
- 0
web/app/templates/tools.html View File

</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']) }}">

Loading…
Cancel
Save