Source

django-swingcms / swingcms / agenda / templates / agenda / agenda_as_list_plugin.html

{% load i18n %}



<div id='agenda'>
	{% for dt_month, month in agenda.items %}
		<br />
		<br />
		<h3>{{ dt_month|date:'F Y' }}</h3>
		<br />
		<br />
		<table>
            <tr class='day_title'>
        		{% for d in days %}
                    <td>
                        {% trans d %}
                    </td>
        		{% endfor %}
            </tr>
		{% for week in month %}
			<tr>
			{% for dt_day, events in week %}
				<td>
					<div class='event'>

					    <div class='date'>{{ dt_day.day }}</div><br />

						{% for e in events %}
						    <a href='/view/event/{{ e.id }}' title='{{ e.description }}'>{{ e.name|slice:':25' }}</a><br />					    
						{% empty %}
						   
						{% endfor %}

					</div>
				</td>
			{% endfor %}
			</tr>
		{% endfor %}
		</table>
		<br />
		<br />
	{% endfor %}
</div>