mirror of
				https://github.com/tiyn/container-critique.git
				synced 2025-10-31 03:01:21 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			747 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			747 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% extends "template.html" %}
 | |
| 
 | |
| {% block content %}
 | |
| <div class="container">
 | |
|     <div class="archive">
 | |
|         <h1>Archive</h1><br>
 | |
|         {% set ns = namespace(last_year="") %}
 | |
|         {% for entry in entries %}
 | |
|         {% if entry.item.date != ns.last_year %}
 | |
|         {% if ns.last_year != "" %}
 | |
|         </ul>
 | |
|         {% endif %}
 | |
|         <h2> {{ entry.item.date }} </h2>
 | |
|         <ul>
 | |
|         {% endif %}
 | |
|         {% set ns.last_year = entry.item.date %}
 | |
|             <li>
 | |
|                 {{ entry.item.name }}
 | |
|                 <a href="{{ url_for('entry', ident=entry.id) }}">
 | |
|                     {{ r_to_star(entry.rating) }} by {{ entry.user.name }}
 | |
|                 </a>
 | |
|             </li><br>
 | |
|         {% endfor %}
 | |
|     </div>
 | |
| </div>
 | |
| {% endblock %}
 |