1. Fabio Michelini
  2. django-swingcms

Source

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

{% load i18n %}



<div id='agenda_calendar_plugin'>
	{% for dt_month, month in agenda.items %}
		<br />
		<br />
		<h3>{{ dt_month|date:'F Y' }}</h3>
		<br />
		<br />
		<table>
		{% 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 }}'>
                                <img src='{{ STATIC_URL }}cms/icons/asterix.png' alt="e">
                            </a><br />					    
						{% empty %}
						   
						{% endfor %}

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