pokud org nemá fotku, zobrazí se defaultní
This commit is contained in:
		
							parent
							
								
									b094631414
								
							
						
					
					
						commit
						d647599230
					
				
					 2 changed files with 2 additions and 0 deletions
				
			
		
							
								
								
									
										
											BIN
										
									
								
								seminar/static/images/no-photo.png
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								seminar/static/images/no-photo.png
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 2.9 KiB | 
|  | @ -38,6 +38,8 @@ | |||
|     {% if org.osoba.foto %} | ||||
|       {# <img src="{{org.osoba.foto.url}}" height="{{org.osoba.foto.height}}"> #} | ||||
|       <a href="{{org.osoba.foto.url}}"><img src="{{org.osoba.foto_male.url}}" height="{{org.osoba.foto_male.height}}" alt="{{org.osoba.jmeno}} {{org.osoba.prijmeni}}"></a> | ||||
|     {% else %} {# pokud osoba nemá fotku, zobrazuje se defaultní obrázek#} | ||||
|       {% load static %} <img src="{% static 'images/no-photo.png' %}" height=200px alt="{{org.osoba.jmeno}} {{org.osoba.prijmeni}}"> | ||||
|     {% endif %} | ||||
|     </div> | ||||
|     </td> | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Kateřina Čížková
						Kateřina Čížková