Changes between Version 1 and Version 2 of CalendarRunThough


Ignore:
Timestamp:
09/30/2007 01:16:24 PM (8 years ago)
Author:
Carl Karsten <carl@…>
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CalendarRunThough

    v1 v2  
    8282
    8383{{{
    84 #!django
    8584{# month_index.html #}
    8685{% extends "main.html" %}
     
    10099<h4 class="calendar_heading">
    101100<a href="/eventcal/{{ prev_month|date:"Y/m" }}/"> &lt; </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 }}
    103105<a href="/eventcal/{{ next_month|date:"Y/m" }}/"> &gt; </a>
    104106</h4>
    105107
    106 {# Make the grid of days #}
     108{# headers: Monday, Tuesday.... #}
    107109<table class="cal_month_calendar">
    108 {# headers: Monday, Tuesday.... #}
    109110<tr>
    110111{% for dayname in daynames %}
    111 <th>{{ dayname }}</th>
     112  <th>{{ dayname }}</th>
    112113{% endfor %}
    113114</tr>
    114115
    115116{# What we came here for: the days and events. #}
     117{# Make the grid of days #}
    116118{% for week in dates %}
    117 <tr>
     119<tr class="pc_row_odd" align="left" valign="top">
    118120{% for day in week %}
    119121<td
    120122{% 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"
    122125  {% else %} class="cal_not_in_month"
    123126 {% endifequal %}
    124127{% endifequal %}>
    125128
     129<div class="pc_calendar_date">
     130<a href="/eventcal/{{ day|date:"Y/m/j" }}/#daysevents">
    126131{{ day|date:"j" }}
    127 
    128 <p class="event_desc">
     132</a> </div>
     133{# spin thought the list of evetns, find ones for current day #}
    129134{% for event in events %}
    130135  {% 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>
    132142  {% endifequal %}
    133143{% endfor %}
    134 
    135 </p>
    136 
    137144</td>
    138145
     
    143150<br/>
    144151
    145 {# List the events in a list. #}
    146 {% if events %}
     152{# List the days events in a list. #}
     153<A name=daysevents></A>
    147154<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>
     155Events 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>
    156163  </li>
     164  <hr>
    157165{% endfor %}
    158166</ul>
    159 {% else %}
    160 <p>No activities this month.</p>
    161 {% endif %}
    162167
    163168</div>
     169
    164170{% endblock %}
    165171}}}
     
    216222
    217223
    218 <table>
    219 <tr>
    220 <td valign="left"></td>
    221 <td valign="top" class="subtle">
    222 <hr size="1">
    223 &#8226; phone number here
    224 </td>
    225 <td valign="left"></td>
    226 </tr>
    227 </table>
    228 
    229224  </div> <!-- /container -->
    230225 </body>
Back to Top