Ticket #106: agiletrac-completion.patch

File agiletrac-completion.patch, 1.7 KB (added by dfraser, 3 years ago)

Patch that fixes this in the wrong place (the template)

  • trac/templates/macros.html

    old new  
    270270          <th rowspan="2" class="id">Id</th> 
    271271          <th rowspan="2">Summary</th> 
    272272          <py:for each="stage in completion_stages"> 
    273               <th colspan="2" class="completion_stage">${stage['short_label']}</th> 
     273              <th colspan="2" class="completion_stage">${stage['short_label']}<br/></th> 
    274274          </py:for> 
    275275          <th rowspan="2" class="size">SIZE</th> 
    276276          <th rowspan="2" class="done">DONE</th> 
     
    309309                  <td py:with="ticket_stage=ticket_stages[stage['stage']]"> 
    310310                    <div class="completion"> 
    311311                    <py:choose> 
    312                       <span py:when="ticket_stage['size_defined'] and ticket_stage['size'] > 0 and ticket_stage['complete']" class="complete"> 
     312                      <span py:when="ticket_stage['size_defined'] and ticket_stage['size'] > 0 and (ticket_stage['date'] or ticket_stage['complete'])" class="complete"> 
    313313                        <span class="empty_cell"></span> 
    314314                      </span> 
    315                       <span py:when="ticket_stage['size_defined'] and ticket_stage['size'] > 0 and not ticket_stage['complete']" class="not_complete"> 
     315                      <span py:when="ticket_stage['size_defined'] and ticket_stage['size'] > 0 and not (ticket_stage['date'] or ticket_stage['complete'])" class="not_complete"> 
    316316                        <span class="empty_cell"></span> 
    317317                      </span> 
    318318                      <span py:when="ticket_stage['size_defined'] and ticket_stage['size'] == 0" class="not_applicable">