galerie | pokud neni nahled --> nezobrazuj
This commit is contained in:
		
							parent
							
								
									464984b740
								
							
						
					
					
						commit
						801195178a
					
				
					 1 changed files with 7 additions and 5 deletions
				
			
		|  | @ -48,11 +48,13 @@ Galerie {{galerie.nazev}} | |||
|       {% for galerie in podgalerie %} | ||||
|         <div class="podgalerie_nahled"> | ||||
|           {% if galerie.zobrazit < 1 or user.is_staff %} | ||||
|             {% with galerie.titulni_obrazek.obrazek_maly as obrazek %} | ||||
|             <a href="../{{galerie.pk}}"><img src="{{ obrazek.url }}" | ||||
|               width={% widthratio obrazek.width 200 167 %} | ||||
|               height={% widthratio obrazek.height 200 167 %} /></a> | ||||
|             {% endwith %} | ||||
|             {% if galerie.titulni_obrazek %} | ||||
|               {% with galerie.titulni_obrazek.obrazek_maly as obrazek %} | ||||
|               <a href="../{{galerie.pk}}"><img src="{{ obrazek.url }}" | ||||
|                  width={% widthratio obrazek.width 200 167 %} | ||||
|                  height={% widthratio obrazek.height 200 167 %} /></a> | ||||
|               {% endwith %} | ||||
|             {% endif %} | ||||
|            <div> | ||||
|               <a href="../{{ galerie.pk }}">{{ galerie }}</a> | ||||
|            </div> | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Bc. Petr Pecha
						Bc. Petr Pecha