ctdo-trac/TracRendezVous/tracrendezvous/event/templates/event_details.html

40 lines
1.7 KiB
HTML

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="layout.html" />
<xi:include href="event_display.html" />
<head>
<title>${title}</title>
</head>
<body>
<div id="content" class="event">
<py:choose test="">
<py:when test="table">
<h1>${title}</h1>
<table class="upcoming">
<thead><tr><th py:for="h in headers">${h}</th></tr></thead>
<tfoot><tr><th py:for="h in headers">&nbsp;</th></tr></tfoot>
<tbody>
<tr py:for="ix,row in enumerate(table)" class="upcoming">
<td class="daytext">${selected_tz.localize(row[0]).strftime(format)}</td>
<py:for each="eventlist in row[1:]">
<td py:if="eventlist != False" class="${isinstance(eventlist, list) and 'upcoming-event' or 'upcoming'}" rowspan="${eventlist.rowspan and eventlist.rowspan or None}">
<py:if test="eventlist != True">
<py:for each="event in eventlist">
${render_event(event, True)}
</py:for></py:if></td></py:for>
</tr>
</tbody>
</table>
</py:when>
<py:otherwise>
<h2>${_("No events in this time frame. Create here")} <a href="${href.event('new', now.strftime('%Y-%m-%d'))}">${_(" a new event")}</a>&nbsp;!</h2>
</py:otherwise>
</py:choose>
</div>
</body>
</html>