fix: skrýt teamovou část při jednom řešiteli v řešení
This commit is contained in:
		
							parent
							
								
									c5494fb13b
								
							
						
					
					
						commit
						089018d90e
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		|  | @ -3,9 +3,11 @@ | |||
| {% load deadliny %} | ||||
| 
 | ||||
| {# Přišlo mi to hezčí, než psát všude if. #} | ||||
| {% if object.resitele.count == 1 %} | ||||
|   {% block custom_css %} <style>.teamovaCast {display: none}</style> {% endblock %} | ||||
| {% endif %} | ||||
| {% block custom_css %} | ||||
|   {% if object.resitele | length == 1 %} | ||||
|     <style>.teamovaCast {display: none}</style> | ||||
|   {% endif %} | ||||
| {% endblock %} | ||||
| 
 | ||||
| {% block content %} | ||||
| 
 | ||||
|  | @ -112,6 +114,7 @@ | |||
| </table> | ||||
|   {% endif %} | ||||
| 
 | ||||
| <h3>Vysvětlivky:</h3> | ||||
| <dl> | ||||
|   <dt>{# 📖 #}🧍</dt> | ||||
|   <dd>Body, které dostává jeden řešitel za toto řešení.</dd> | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue