41 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			41 lines
		
	
	
	
		
			1.2 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| {% for novinka in object_list %}
 | |
| {# pripravene div-y na stylovani#}
 | |
| <div class="novinka">
 | |
|   {% if not novinka.zverejneno and user.je_org %}
 | |
|   <div class="mam-org-only">
 | |
|     <ul>
 | |
|       <li><a href="/admin/seminar/novinky/{{novinka.pk}}">Upravit novinku</a>
 | |
|     </ul>
 | |
|   {% endif %}
 | |
|   {% if novinka.zverejneno or user.je_org %}
 | |
|   {# datum #}
 | |
|   <div class=novinka_datum>{{novinka.datum}}</div>
 | |
|   {# text #}
 | |
|   {{ novinka.text | safe }}
 | |
|   {# obrazek #}
 | |
|   {% if novinka.obrazek %}
 | |
|     <div class='novinka_obrazek'>
 | |
|       {% if novinka.obrazek.height > novinka.obrazek_maly.height %}
 | |
|         <a href='{{ novinka.obrazek.url }}'>
 | |
|           <img src='{{ novinka.obrazek.url }}' height='{{ novinka.obrazek_maly.height }}'>
 | |
|         </a>
 | |
|       {% else %}
 | |
|           <img src='{{ novinka.obrazek.url }}' height='{{ novinka.obrazek_maly.height }}'>
 | |
|       {% endif%}
 | |
|     </div>
 | |
|   {% endif %}
 | |
|   {# autor #}
 | |
|   <div class=novinka_autor>
 | |
|     {{novinka.autor.osoba.jmeno}}
 | |
|     {% if novinka.autor.osoba.prezdivka%}
 | |
|       „{{novinka.autor.osoba.prezdivka}}“
 | |
|     {% endif %}
 | |
|     {{novinka.autor.osoba.prijmeni}}
 | |
|   </div>
 | |
|   {% endif %}
 | |
|   {% if not novinka.zverejneno and user.je_org %}
 | |
|   </div>
 | |
|   {% endif %}
 | |
| </div>
 | |
| {% endfor%}
 | |
| 
 |