Add gaps page
This commit is contained in:
		
							parent
							
								
									69478e1543
								
							
						
					
					
						commit
						5805c49fe3
					
				| 
						 | 
				
			
			@ -61,6 +61,14 @@ async def index() -> str:
 | 
			
		|||
    return flask.render_template("index.html", today=now.date(), **data)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@app.route("/gaps")
 | 
			
		||||
async def gaps_page() -> str:
 | 
			
		||||
    """List of available gaps."""
 | 
			
		||||
    now = datetime.now()
 | 
			
		||||
    data = await agenda.data.get_data(now, app.config)
 | 
			
		||||
    return flask.render_template("gaps.html", today=now.date(), gaps=data["gaps"])
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@app.route("/travel")
 | 
			
		||||
def travel_list() -> str:
 | 
			
		||||
    """Page showing a list of upcoming travel."""
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in a new issue