Rearrange mimetype-icon dict for clarity
This commit is contained in:
		
							parent
							
								
									fd914051aa
								
							
						
					
					
						commit
						92880ba3eb
					
				
					 2 changed files with 8 additions and 3 deletions
				
			
		|  | @ -120,6 +120,7 @@ ADDITIONAL_MIMETYPES = { | ||||||
| 
 | 
 | ||||||
|     'mkv': 'video/x-matroska', |     'mkv': 'video/x-matroska', | ||||||
| 
 | 
 | ||||||
|  |     'ass': 'text/plain', | ||||||
|     'srt': 'text/plain', |     'srt': 'text/plain', | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -1,12 +1,16 @@ | ||||||
|  | {# Specific extensions, then specific mimetypes, then general mimtypes #} | ||||||
| {% set thumbnails = | {% set thumbnails = | ||||||
|     { |     { | ||||||
|         "audio": "audio", |         "svg": "svg", | ||||||
|  | 
 | ||||||
|         "application/zip": "archive", |         "application/zip": "archive", | ||||||
|         "application/x-tar": "archive", |         "application/x-tar": "archive", | ||||||
|  | 
 | ||||||
|         "archive": "archive", |         "archive": "archive", | ||||||
|         "txt": "txt", |         "audio": "audio", | ||||||
|         "svg": "svg", |  | ||||||
|         "video": "video", |         "video": "video", | ||||||
|  |         "text": "txt", | ||||||
|  | 
 | ||||||
|     } |     } | ||||||
| %} | %} | ||||||
| {% macro create_photo_card(photo, view="grid") %} | {% macro create_photo_card(photo, view="grid") %} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue