Číslo: odkazy na úlohy i pro neorgy ...
... a vynech nadpis, pokud nejsou žádné zadané/řešené
This commit is contained in:
		
							parent
							
								
									59b3ea6ed1
								
							
						
					
					
						commit
						e1fc2ec00a
					
				
					 1 changed files with 20 additions and 16 deletions
				
			
		|  | @ -13,23 +13,27 @@ | ||||||
|   {% endif %} |   {% endif %} | ||||||
|   <p><a href='{{ cislo.rocnik.verejne_url }}'>Ročník {{ cislo.rocnik }}</a> |   <p><a href='{{ cislo.rocnik.verejne_url }}'>Ročník {{ cislo.rocnik }}</a> | ||||||
| 
 | 
 | ||||||
|   <h2>Zadané problémy</h2> |   {% if v_cisle_zadane %} | ||||||
|   <ul> |     <h2>Zadané problémy</h2> | ||||||
|   {% for p in v_cisle_zadane %} |     <ul> | ||||||
|     <li>{# TODO zprovoznit odkazy i pro účastníky, až bude na co #} |     {% for p in v_cisle_zadane %} | ||||||
|       {% if user.is_staff %} |       <li{% if user.is_staff and not cislo.verejne %} class='mam-org-only'{% endif %}> | ||||||
|         <a href='{{ p.verejne_url }}'>{% endif %}{{ p.kod_v_rocniku }} {{ p.nazev }} {{ p.body_v_zavorce }}{% if user.is_staff %}</a>{% endif %} |         {% if user.is_staff or cislo.verejne %} | ||||||
|   {% endfor %} |           <a href='{{ p.verejne_url }}'>{% endif %}{{ p.kod_v_rocniku }} {{ p.nazev }} {{ p.body_v_zavorce }}{% if user.is_staff or cislo.verejne %}</a>{% endif %} | ||||||
|   </ul> |     {% endfor %} | ||||||
|  |     </ul> | ||||||
|  |   {% endif %} | ||||||
| 
 | 
 | ||||||
|   <h2>Řešené problémy</h2> |   {% if resene_problemy %} | ||||||
|   <ul> |     <h2>Řešené problémy</h2> | ||||||
|   {% for p in resene_problemy %} |     <ul> | ||||||
|     <li>{# TODO zprovoznit odkazy i pro účastníky, až bude na co #} |     {% for p in resene_problemy %} | ||||||
|       {% if user.is_staff %} |       <li{% if user.is_staff and not cislo.verejne %} class='mam-org-only'{% endif %}> | ||||||
|         <a href='{{ p.verejne_url }}'>{% endif %}{{ p.kod_v_rocniku }} {{ p.nazev }} {{ p.body_v_zavorce }}{% if user.is_staff %}</a>{% endif %} |         {% if user.is_staff or cislo.verejne %} | ||||||
|   {% endfor %} |           <a href='{{ p.verejne_url }}'>{% endif %}{{ p.kod_v_rocniku }} {{ p.nazev }} {{ p.body_v_zavorce }}{% if user.is_staff or cislo.verejne %}</a>{% endif %} | ||||||
|   </ul> |     {% endfor %} | ||||||
|  |     </ul> | ||||||
|  |   {% endif %} | ||||||
| 
 | 
 | ||||||
|   {% if user.is_staff %} |   {% if user.is_staff %} | ||||||
|       <div class="mam-org-only"> |       <div class="mam-org-only"> | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue
	
	 Matěj Kocián
						Matěj Kocián