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> | <em> | ||||||
|   Na galeriích ze soustředění a dalších informacích ještě pracujeme. |   Na galeriích ze soustředění a dalších informacích ještě pracujeme. | ||||||
| </em><br><br> | </em><br><br> | ||||||
| {#% if user.is_authenticated %#}{# PRACUJE SE STRANKA #} |  | ||||||
| 
 |  | ||||||
| 
 | 
 | ||||||
|   {# Projdi vsechna soustredeni #} |   {# Projdi vsechna soustredeni #} | ||||||
|   {% for soustredeni in object_list %} |   {% for soustredeni in object_list %} | ||||||
|  | @ -40,7 +38,18 @@ | ||||||
| 	<li> | 	<li> | ||||||
| 		{{soustredeni.datum_zacatku}} – {{soustredeni.datum_konce}} | 		{{soustredeni.datum_zacatku}} – {{soustredeni.datum_konce}} | ||||||
| 	</li> | 	</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> | 	</ul> | ||||||
|  | 
 | ||||||
|       {% if user.is_authenticated %} |       {% if user.is_authenticated %} | ||||||
|         {# popis soustredeni #} |         {# popis soustredeni #} | ||||||
|         {% if soustredeni.text %} |         {% if soustredeni.text %} | ||||||
|  | @ -61,7 +70,5 @@ | ||||||
|     Žádná soustředění zatím neproběhla! |     Žádná soustředění zatím neproběhla! | ||||||
|   {% endfor %} |   {% endfor %} | ||||||
| 
 | 
 | ||||||
| {#% else %}{% include 'seminar/pracuje_se.html' %}{% endif %#} |  | ||||||
| 
 |  | ||||||
| {% endblock %} | {% endblock %} | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Bc. Petr Pecha
						Bc. Petr Pecha