Edgewall Software

Ticket #7445: 7445-xhtml-validation-3-r7388.patch

File 7445-xhtml-validation-3-r7388.patch, 3.1 KB (added by Remy Blank <remy.blank@…>, 6 months ago)

Patch against 0.11-stable fixing XHTML validation errors

  • trac/templates/diff_div.html

    diff --git a/trac/templates/diff_div.html b/trac/templates/diff_div.html
    a b  
    3535      xmlns:xi="http://www.w3.org/2001/XInclude" 
    3636      class="diff"> 
    3737 
    38   <ul class="entries"> 
     38  <ul py:if="any(item.diffs or item.props for item in changes)" class="entries"> 
    3939    <py:for each="idx, item in enumerate(changes)"> 
    4040      <li py:if="item.diffs or item.props" class="entry" py:with="comments = item.get('comments')"> 
    4141        <h2 id="${not no_id and 'file%s' % idx or None}" py:choose=""> 
  • trac/ticket/templates/query_results.html

    diff --git a/trac/ticket/templates/query_results.html b/trac/ticket/templates/query_results.html
    a b  
    4444      </thead> 
    4545 
    4646      <tbody> 
     47        <tr py:if="not results" class="even"> 
     48          <td colspan="${len(headers)}"> 
     49            No tickets found 
     50          </td> 
     51        </tr> 
    4752        <py:for each="idx, result in enumerate(results)"> 
    4853          <py:with vars="ticket_context = context('ticket', result.id)"> 
    4954            <py:if test="'TICKET_VIEW' in perm(ticket_context.resource)"> 
  • trac/ticket/templates/ticket.html

    diff --git a/trac/ticket/templates/ticket.html b/trac/ticket/templates/ticket.html
    a b  
    315315                              selected="${ticket[field.name] == option or None}" 
    316316                              py:content="option"></option> 
    317317                      <optgroup py:for="optgroup in field.optgroups" 
     318                                py:if="optgroup.options" 
    318319                                label="${optgroup.label}"> 
    319320                        <option py:for="option in optgroup.options" 
    320321                                selected="${ticket[field.name] == option or None}" 
  • trac/versioncontrol/templates/browser.html

    diff --git a/trac/versioncontrol/templates/browser.html b/trac/versioncontrol/templates/browser.html
    a b  
    9393              </tr> 
    9494            </py:if> 
    9595            <xi:include href="dir_entries.html" /> 
     96            <tr py:if="'up' not in chrome.links and not dir.entries" class="even"> 
     97              <td class="name" colspan="5"> 
     98                No files found 
     99              </td> 
     100            </tr> 
    96101          </tbody> 
    97102        </table> 
    98103      </py:if> 
  • trac/versioncontrol/templates/revisionlog.html

    diff --git a/trac/versioncontrol/templates/revisionlog.html b/trac/versioncontrol/templates/revisionlog.html
    a b  
    9797            </tr> 
    9898          </thead> 
    9999          <tbody> 
     100            <tr py:if="not items" class="even"> 
     101              <td /> 
     102              <td /> 
     103              <td class="copyfrom_path" colspan="6"> 
     104                No revisions found 
     105              </td> 
     106            </tr> 
     107             
    100108            <py:for each="idx, item in enumerate(items)"> 
    101109              <py:with vars="change = changes[item.rev]; 
    102110                             chgset_context = context('changeset', change.rev);