templates/channel_calendar.tmpl
changeset 85 0521cf830eb9
parent 58 ce028d356e1f
child 112 090192b64d7e
equal deleted inserted replaced
84:3c78c9c080e9 85:0521cf830eb9
    24         ## is it an empty cell?
    24         ## is it an empty cell?
    25         % if not day :
    25         % if not day :
    26         <td>&nbsp;</td>
    26         <td>&nbsp;</td>
    27         % else :
    27         % else :
    28         ## build date
    28         ## build date
    29         <% date = h.build_date(month, day) %>
    29         <% date = h.build_date(month, day) %>\
    30         ## render cell
    30         ## render cell
    31         <td${' id="today"' if h.is_today(date) else ''}${' class="empty"' if date not in dates else ''}>\
    31         <td${' id="today"' if h.is_today(date) else ''}${' class="empty"' if date not in dates else ''}>\
    32         ## link to logs for this day?
    32         ## link to logs for this day?
    33         % if date in dates :
    33         % if date in dates :
    34         <a href="${urls.channel_date.build(req, channel=channel, date=date)}">${day}</a>\
    34 <a href="${urls.channel_date.build(req, channel=channel, date=date)}">${day}</a>\
    35         % else :
    35         % else :
    36         ${day}\
    36 ${day}\
    37         % endif
    37         % endif
    38 </td>
    38 </td>
    39     % endif
    39     % endif
    40     % endfor
    40     % endfor
    41     </tr>
    41     </tr>