partsdb

electronic parts inventory
git clone https://git.e1e0.net/partsdb.git
Log | Files | Refs

commit e47dcc88ce7aa8646e4784d6b558dcc4b1bcb1d3
parent 4cb1bc6860ab058b2a2e0e8b1cb4d14ab7b6d884
Author: Paco Esteban <paco@e1e0.net>
Date:   Sun,  4 Apr 2021 20:47:58 +0200

cosmetic changes to the html export

Diffstat:
Mexports/templates/cat.html | 2+-
Mexports/templates/part.html | 4+++-
Mexports/templates/style.css | 5++++-
3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/exports/templates/cat.html b/exports/templates/cat.html @@ -30,7 +30,7 @@ <td><a href="part_{{ p.id }}.html">{{ p.pn }}</a></td> <td><a href="part_{{ p.id }}.html">{{ p.mpn }}</a></td> <td>{{ p.manufacturer }}</td> - <td>{{ p.description[:40] }}</td> + <td>{{ p.description }}</td> <td>{{ p.footprint }}</td> <td>{{ p.part_type }}</td> <td>{{ p.quantity }}</td> diff --git a/exports/templates/part.html b/exports/templates/part.html @@ -39,7 +39,9 @@ <tr> <td colspan="3"> <span class="field">Specs:</span> <br /> - {{ part.specs }} + {% autoescape false %} + {{ part.specs|replace("\n", "<br />") }} + {% endautoescape %} </td> </tr> <tr> diff --git a/exports/templates/style.css b/exports/templates/style.css @@ -1,9 +1,12 @@ -table, th, td { +table { border: 1px solid black; border-collapse: collapse; + width: 100%; } th, td { + border: 1px solid black; + border-collapse: collapse; padding: 15px; /* text-align: left; */ }