galerie | upraven seznam soustredeni, aby mel odkaz na galerie
V seznamu soustredeni je verejny! odkaz na galerie
This commit is contained in:
		
							parent
							
								
									cadc71b1a4
								
							
						
					
					
						commit
						e62590ee53
					
				
					 1 changed files with 11 additions and 4 deletions
				
			
		|  | @ -17,8 +17,6 @@ | |||
| <em> | ||||
|   Na galeriích ze soustředění a dalších informacích ještě pracujeme. | ||||
| </em><br><br> | ||||
| {#% if user.is_authenticated %#}{# PRACUJE SE STRANKA #} | ||||
| 
 | ||||
| 
 | ||||
|   {# Projdi vsechna soustredeni #} | ||||
|   {% for soustredeni in object_list %} | ||||
|  | @ -40,7 +38,18 @@ | |||
| 	<li> | ||||
| 		{{soustredeni.datum_zacatku}} – {{soustredeni.datum_konce}} | ||||
| 	</li> | ||||
|   {# Zobrazeni odkazu na galerie #} | ||||
|   {% if soustredeni.galerie_set.all %} | ||||
|   {% for galerie in soustredeni.galerie_set.all %} | ||||
|   <li> | ||||
|     <a href="./{{soustredeni.pk}}/fotogalerie/{{galerie.pk}}">FOTOGALERIE: {{galerie}}</a> | ||||
|     {# TODO kdyz je titulni obrazek, tak asi i titulni obrazek #} | ||||
|   </li> | ||||
|   {% endfor %} | ||||
|   {% endif %} | ||||
| 
 | ||||
| 	</ul> | ||||
| 
 | ||||
|       {% if user.is_authenticated %} | ||||
|         {# popis soustredeni #} | ||||
|         {% if soustredeni.text %} | ||||
|  | @ -61,7 +70,5 @@ | |||
|     Žádná soustředění zatím neproběhla! | ||||
|   {% endfor %} | ||||
| 
 | ||||
| {#% else %}{% include 'seminar/pracuje_se.html' %}{% endif %#} | ||||
| 
 | ||||
| {% endblock %} | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue
	
	 Bc. Petr Pecha
						Bc. Petr Pecha