soustredeni | Neverejna soustredeni viditelna pro prihlasene
This commit is contained in:
		
							parent
							
								
									f2bdb970ab
								
							
						
					
					
						commit
						82cf4c6a64
					
				
					 1 changed files with 9 additions and 5 deletions
				
			
		|  | @ -7,8 +7,15 @@ | ||||||
|   {# Projdi vsechna soustredeni #} |   {# Projdi vsechna soustredeni #} | ||||||
|   {% for soustredeni in object_list %} |   {% for soustredeni in object_list %} | ||||||
|     {# Kdyz je verejne -> zobraz #} |     {# Kdyz je verejne -> zobraz #} | ||||||
|     {% if soustredeni.verejne_db %} |     {% if soustredeni.verejne_db or user.is_authenticated %} | ||||||
|       {# misto a cas soustredeni TODO upravit#} |       {% if user.is_authenticated %} | ||||||
|  |         Groups of user: {{user.groups.all}} <br> | ||||||
|  |         <!-- TODO pri prihlasovani ucastniku dodelat prava | ||||||
|  |         jen na group org ve view --> | ||||||
|  |         Toto soustředění není veřejné, vidíte ho jen proto, | ||||||
|  |         že jste přihlášení. <br> | ||||||
|  |       {% endif %} | ||||||
|  |       {# misto soustredeni TODO upravit#} | ||||||
|       {% if soustredeni.misto %} |       {% if soustredeni.misto %} | ||||||
|         <h2> |         <h2> | ||||||
|           Soustředění v {{soustredeni.misto}} |           Soustředění v {{soustredeni.misto}} | ||||||
|  | @ -29,9 +36,6 @@ | ||||||
|         <li>Nic! |         <li>Nic! | ||||||
|       {% endfor %} |       {% endfor %} | ||||||
|       </ul> |       </ul> | ||||||
|     {# Kdyz neni verejne, tak TODO zobraz jen pro prihlasene orgy #} |  | ||||||
|     {% else %} |  | ||||||
|       {# TODO if org je prihlaseny, predelat na (verejne OR jsem_org)  #} |  | ||||||
|     {% endif %} |     {% endif %} | ||||||
|   {% empty %} |   {% empty %} | ||||||
|     Žádná soustředění zatím neproběhla! |     Žádná soustředění zatím neproběhla! | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Bc. Petr Pecha
						Bc. Petr Pecha