Link from conference list to trip pages
This commit is contained in:
parent
36168843d6
commit
31e8197c79
3 changed files with 19 additions and 5 deletions
|
|
@ -1,9 +1,9 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% from "macros.html" import conference_row with context %}
|
||||
{% from "macros.html" import trip_link, conference_row with context %}
|
||||
|
||||
{% block style %}
|
||||
{% set column_count = 6 %}
|
||||
{% set column_count = 7 %}
|
||||
<style>
|
||||
.grid-container {
|
||||
display: grid;
|
||||
|
|
@ -25,7 +25,10 @@
|
|||
{% macro section(heading, item_list, badge) %}
|
||||
{% if item_list %}
|
||||
<div class="heading"><h2>{{ heading }}</h2></div>
|
||||
{% for item in item_list %}{{ conference_row(item, badge) }}{% endfor %}
|
||||
{% for item in item_list %}
|
||||
{{ conference_row(item, badge) }}
|
||||
<div class="grid-item">{% if item.trip %} trip: {{ trip_link(item.trip) }} {% endif %}</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% from "macros.html" import display_date_no_year, display_date, conference_row, accommodation_row, flight_row, train_row with context %}
|
||||
{% from "macros.html" import trip_link, display_date_no_year, display_date, conference_row, accommodation_row, flight_row, train_row with context %}
|
||||
|
||||
{% set row = { "flight": flight_row, "train": train_row } %}
|
||||
|
||||
|
|
@ -57,7 +57,7 @@
|
|||
{% set end = trip.end %}
|
||||
<div class="border border-2 rounded mb-2 p-2">
|
||||
<h3>
|
||||
<a href="{{ url_for("trip_page", start=trip.start.isoformat()) }}">{{ trip.title }}</a>
|
||||
{{ trip_link(trip) }}
|
||||
<small class="text-muted">({{ display_date(trip.start) }})</small></h3>
|
||||
<div>Countries: {{ trip.countries_str }}</div>
|
||||
{% if end %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue