happenings/utils/calendars.py
def formatday(self, day, weekday):
        """Return a day as a table cell."""
        super(MiniEventCalendar, self).formatday(day, weekday)
        now = get_now()
        self.day = day

        if day == 0:
            return '<td class="noday">&nbsp;</td>'  # day outside month
        elif now.month == self.mo and now.year == self.yr and day == now.day:
            if day in self.count:
                self.popover_helper()
                return self.wkday_today + self.anch + self.cal_event + self.end
            else:
                return self.wkday_today + self.anch + self.end
        elif day in self.count:
            self.popover_helper()
            return self.wkday_not_today + self.anch + self.cal_event + self.end
        else:
            return self.wkday_not_today + self.anch + self.end
def formatday(self, day, weekday):
        """Return a day as a table cell."""
        super(MiniEventCalendar, self).formatday(day, weekday)
        now = get_now()
        self.day = day

        if day == 0:
            return '<td class="noday">&nbsp;</td>'  # day outside month
        elif now.month == self.mo and now.year == self.yr and day == now.day:
            if day in self.count:
                self.popover_helper()
                return self.wkday_today + self.anch + self.cal_event + self.end
            else:
                return self.wkday_today + self.anch + self.end
        elif day in self.count:
            self.popover_helper()
            return self.wkday_not_today + self.anch + self.cal_event + self.end
        else:
            return self.wkday_not_today + self.anch + self.end
def formatday ( self , day , weekday ) : super ( MiniEventCalendar , self ) . formatday ( day , weekday ) now = get_now ( ) self . day = day if day == 0 : return '<td class="noday">&nbsp;</td>' # day outside month elif now . month == self . mo and now . year == self . yr and day == now . day : if day in self . count : self . popover_helper ( ) return self . wkday_today + self . anch + self . cal_event + self . end else : return self . wkday_today + self . anch + self . end elif day in self . count : self . popover_helper ( ) return self . wkday_not_today + self . anch + self . cal_event + self . end else : return self . wkday_not_today + self . anch + self . end
Return a day as a table cell.
Return a day as a table cell .