Commits

Nikolaj Sjujskij committed ae89175

Move date cell class concatenation out of template

  • Participants
  • Parent commits 338cb2b

Comments (0)

Files changed (2)

     if today_day:
         day_classes.setdefault(today_day, []).append('today')
 
+    for day, class_list in day_classes.items():
+        day_classes[day] = ' '.join(class_list)
+
     context = {
                'devs': DEVLIST,
                'devlist': DEVS,

File templates/index.html

         <tr>
             {% for day in week %}
             {% set daystr = daytmpl % day %}
-            <td class="{{ day_classes[day] | join(' ') }}">
+            <td class="{{ day_classes[day] }}">
                 <span class="day">{{ day or '' }}</span>
                 {% for trac, tickets in usertckts.pop(daystr, {}).items() %}
                     <span class="project_name">{{ trac }}</span>