Skip to content

Commit

Permalink
Show a series' parties as table with details
Browse files Browse the repository at this point in the history
  • Loading branch information
homeworkprod committed Apr 22, 2024
1 parent cc786dc commit 8c71eb4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,9 @@ <h1>{{ series.name }}</h1>
{%- endif %}

{%- if parties %}
<div class="data-label">{{ _('Parties') }} ({{ parties|length }})</div>
<div class="data-value">
<ul class="noindent">
{%- for party in parties %}
<li><a href="{{ url_for('party.view', slug=party.slug) }}">{{ party.title }}</a></li>
{%- endfor %}
</ul>
</div>
<h2>{{ _('Parties') }}</h2>
{% include 'party/_list.html' %}
<div class="block block--centered">{{ parties|length }} items</div>
{%- endif %}

{%- endblock %}
2 changes: 2 additions & 0 deletions src/lanpartydb_website/blueprints/series/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"""

from flask import abort, current_app
from pycountry import countries

from ...util.blueprint import create_blueprint
from ...util.templating import templated
Expand Down Expand Up @@ -37,4 +38,5 @@ def view(slug: str):
return {
'series': series,
'parties': parties,
'countries': countries,
}
4 changes: 0 additions & 4 deletions src/lanpartydb_website/static/style/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,3 @@ table.table--wide {
.contributors img {
display: block;
}

:is(ol, ul).noindent {
padding-left: 1rem;
}

0 comments on commit 8c71eb4

Please sign in to comment.