Skip to content

Commit

Permalink
Style links from other tables
Browse files Browse the repository at this point in the history
  • Loading branch information
wragge committed Jan 29, 2024
1 parent 3400211 commit 8bf25ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Binary file modified templates.zip
Binary file not shown.
6 changes: 4 additions & 2 deletions templates/row.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@ <h1 class="title" style="padding-left: 10px; border-left: 10px solid #{{ databas
{% include "_vertical_table.html" %}

{% if foreign_key_tables %}
<h2>Links from other tables</h2>
<h2 class="title">Links from other tables</h2>
<div class="content">
<ul>
{% for other in foreign_key_tables %}
<li>
<a href="{{ other.link }}">
{{ "{:,}".format(other.count) }} row{% if other.count == 1 %}{% else %}s{% endif %}</a>
from {{ other.other_column }} in {{ other.other_table }}
from <code>{{ other.other_column }}</code> in <code>{{ other.other_table }}</code>
</li>
{% endfor %}
</ul>
</div>
{% endif %}

{% endblock %}

0 comments on commit 8bf25ea

Please sign in to comment.