Let tag_object also link to mays, forbids.
This commit is contained in:
		
							parent
							
								
									c425d55331
								
							
						
					
					
						commit
						270dcadf4e
					
				
					 1 changed files with 6 additions and 0 deletions
				
			
		|  | @ -8,6 +8,9 @@ | ||||||
|     link: |     link: | ||||||
|         None = no link, just a <span> |         None = no link, just a <span> | ||||||
|         'search' = link to /search?tag_musts=tagname |         'search' = link to /search?tag_musts=tagname | ||||||
|  |         'search_musts' = link to /search?tag_musts=tagname | ||||||
|  |         'search_mays' = link to /search?tag_mays=tagname | ||||||
|  |         'search_forbids' = link to /search?tag_forbids=tagname | ||||||
|         'info' = link to /tags/tagname |         'info' = link to /tags/tagname | ||||||
|     with_alt_description: |     with_alt_description: | ||||||
|         True: Include the description in the alt text |         True: Include the description in the alt text | ||||||
|  | @ -23,6 +26,9 @@ | ||||||
| 
 | 
 | ||||||
| {% set href = { | {% set href = { | ||||||
|         "search": "/search?tag_musts=" + tag.name, |         "search": "/search?tag_musts=" + tag.name, | ||||||
|  |         "search_musts": "/search?tag_musts=" + tag.name, | ||||||
|  |         "search_mays": "/search?tag_mays=" + tag.name, | ||||||
|  |         "search_forbids": "/search?tag_forbids=" + tag.name, | ||||||
|         "info": "/tag/" + tag.name, |         "info": "/tag/" + tag.name, | ||||||
|         None: None, |         None: None, | ||||||
|     }.get(link, link) |     }.get(link, link) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue