Sfoglia il codice sorgente

Enhancing tool pages

joel
Simon Bowie 3 anni fa
parent
commit
90f9d4b0f3
2 ha cambiato i file con 10 aggiunte e 0 eliminazioni
  1. +7
    -0
      web/app/templates/tool.html
  2. +3
    -0
      web/app/templates/tools.html

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

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

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

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

Loading…
Annulla
Salva