we've got a website, sorta!
This commit is contained in:
		
							parent
							
								
									7680a174fc
								
							
						
					
					
						commit
						6c94a346c4
					
				
					 10 changed files with 314 additions and 3 deletions
				
			
		
							
								
								
									
										20
									
								
								templates/list.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								templates/list.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| {% extends 'base.html' %} | ||||
| {% block body %} | ||||
| {% from 'utils.html' import root with context %} | ||||
| <h1 id="list-title"><a href={{ root() }}>DLibrary</a> {% block list_title %}{% endblock %}</h1> | ||||
| <div class="card-listing"> | ||||
|   {% for work in works %} | ||||
|   <div class="card"> | ||||
|     <a href="{{ root() }}works/{{ work['id'] }}/"> | ||||
|       <img src="{{ root() }}thumbnails/{{ work['id'] }}.jpg"> | ||||
|       <div class="card-authors"> | ||||
|         [{% if work['circle'] %}{{ work['circle'] }}{% endif %}{% if work['circle'] and work['authors'] %} ({% endif %}{{ ', '.join(work['authors']) }}{% if work['circle'] and work['authors'] %}){% endif %}] | ||||
|       </div> | ||||
|       <div class="card-title"> | ||||
|         {{ work['title'] }} | ||||
|       </div> | ||||
|     </a> | ||||
|   </div> | ||||
|   {% endfor %} | ||||
| </div> | ||||
| {% endblock %} | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue