Changes between Version 1 and Version 2 of CalendarRunThough
- Timestamp:
- Sep 30, 2007, 1:16:24 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CalendarRunThough
v1 v2 82 82 83 83 {{{ 84 #!django85 84 {# month_index.html #} 86 85 {% extends "main.html" %} … … 100 99 <h4 class="calendar_heading"> 101 100 <a href="/eventcal/{{ prev_month|date:"Y/m" }}/"> < </a> 102 {{ cal_date|date:"F" }} <a href="/eventcal/{{ cal_date.year }}/">{{ cal_date.year }}</a> 101 {{ cal_date|date:"F" }} 102 {# <a href="/eventcal/{{ cal_date.year }}/"> #} 103 {# <a href="/eventcal/databrowse/eventcal/event/calendars/eventdate/"> #} 104 {{ cal_date.year }} 103 105 <a href="/eventcal/{{ next_month|date:"Y/m" }}/"> > </a> 104 106 </h4> 105 107 106 {# Make the grid of days#}108 {# headers: Monday, Tuesday.... #} 107 109 <table class="cal_month_calendar"> 108 {# headers: Monday, Tuesday.... #}109 110 <tr> 110 111 {% for dayname in daynames %} 111 <th>{{ dayname }}</th>112 <th>{{ dayname }}</th> 112 113 {% endfor %} 113 114 </tr> 114 115 115 116 {# What we came here for: the days and events. #} 117 {# Make the grid of days #} 116 118 {% for week in dates %} 117 <tr >119 <tr class="pc_row_odd" align="left" valign="top"> 118 120 {% for day in week %} 119 121 <td 120 122 {% ifequal day now.date %} class="today" 121 {% else %} {% ifequal day.month month %} class="cal_in_month" 123 {% else %} {% ifequal day.month month %} 124 class="cal_in_month" 122 125 {% else %} class="cal_not_in_month" 123 126 {% endifequal %} 124 127 {% endifequal %}> 125 128 129 <div class="pc_calendar_date"> 130 <a href="/eventcal/{{ day|date:"Y/m/j" }}/#daysevents"> 126 131 {{ day|date:"j" }} 127 128 <p class="event_desc"> 132 </a> </div> 133 {# spin thought the list of evetns, find ones for current day #} 129 134 {% for event in events %} 130 135 {% ifequal event.eventdate day %} 131 <li> <a href="/eventcal/detail/{{ event.id }}/">{{ event.title }}</a></span> </li> 136 <p class="event_desc"> 137 {# <a href="/eventcal/databrowse/eventcal/event/objects/{{ event.id }}/"> #} 138 <a href="/eventcal/detail/{{ event.id }}/"> 139 {{ event.title }}</a> 140 141 </p> 132 142 {% endifequal %} 133 143 {% endfor %} 134 135 </p>136 137 144 </td> 138 145 … … 143 150 <br/> 144 151 145 {# List the events in a list. #}146 {% if events %} 152 {# List the days events in a list. #} 153 <A name=daysevents></A> 147 154 <ul class="event_list"> 148 {% for event in events %}149 < li> <span class="cal_event_date">150 {% ifequal event.eventdate.month month %} 151 {{ event.eventdate|date:"l j" }}152 {% else %} 153 {{ event.eventdate|date:"F j" }}154 {% endifequal %}155 <a href="/eventcal/detail/{{ event.id }}/">{{ event.title }}</a></span>155 Events for {{cal_date|date:"l, F j, Y"}} 156 <hr> 157 158 {% for event in days_events %} 159 <li> 160 {# <a href="/eventcal/databrowse/eventcal/event/objects/{{ event.id }}/"> #} 161 <a href="/eventcal/detail/{{ event.id }}/">{{ event.title }}</a> 162 {{ event.detail|linebreaks }}</span> 156 163 </li> 164 <hr> 157 165 {% endfor %} 158 166 </ul> 159 {% else %}160 <p>No activities this month.</p>161 {% endif %}162 167 163 168 </div> 169 164 170 {% endblock %} 165 171 }}} … … 216 222 217 223 218 <table>219 <tr>220 <td valign="left"></td>221 <td valign="top" class="subtle">222 <hr size="1">223 • phone number here224 </td>225 <td valign="left"></td>226 </tr>227 </table>228 229 224 </div> <!-- /container --> 230 225 </body>