45 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			45 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% extends "base.html" %}
 | 
						|
 | 
						|
{% block content %}
 | 
						|
<div class="p-2">
 | 
						|
 | 
						|
  <h1>Gaps</h1>
 | 
						|
    <p>
 | 
						|
      <a href="{{ url_for("index") }}">← back to agenda</a>
 | 
						|
      |
 | 
						|
      <a href="{{ url_for("travel_list") }}">travel</a>
 | 
						|
      |
 | 
						|
      <a href="{{ url_for("conference_list") }}">conference</a>
 | 
						|
      |
 | 
						|
      <strong>gaps</strong>
 | 
						|
    </p>
 | 
						|
 | 
						|
 | 
						|
 | 
						|
  <table class="table table-hover w-auto">
 | 
						|
    <thead>
 | 
						|
      <tr>
 | 
						|
        <th>before</th>
 | 
						|
        <th class="text-end">start</th>
 | 
						|
        <th class="text-end">end</th>
 | 
						|
        <th class="text-end">days</th>
 | 
						|
        <th>after</th>
 | 
						|
      </tr>
 | 
						|
    </thead>
 | 
						|
    <tbody>
 | 
						|
    {% for gap in gaps %}
 | 
						|
    <tr>
 | 
						|
      <td>{% for event in gap.before %}{% if not loop.first %}, {% endif %}{{ event.title or event.name }}{% endfor %}</td>
 | 
						|
      <td class="text-end">{{ gap.start.strftime("%A, %-d %b %Y") }}</td>
 | 
						|
      <td class="text-end">{{ gap.end.strftime("%A, %-d %b %Y") }}</td>
 | 
						|
      <td class="text-end">{{ (gap.end - gap.start).days }} days</td>
 | 
						|
      <td>{% for event in gap.after %}{% if not loop.first %}, {% endif %}{{ event.title or event.name }}{% endfor %}</td>
 | 
						|
    </tr>
 | 
						|
    {% endfor %}
 | 
						|
    </tbody>
 | 
						|
  </table>
 | 
						|
</div>
 | 
						|
 | 
						|
{% endblock %}
 | 
						|
 |