Edgewall Software
Modify

Opened 4 years ago

Closed 4 years ago

#13258 closed defect (fixed)

Duplicated id="repoindex" in repository browser page

Reported by: Jun Omae Owned by: Ryan J Ollos
Priority: normal Milestone: 1.4.2
Component: version control/browser Version: 1.4
Severity: minor Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:
  • Fixed duplicate repoindex id attribute on repository browser page.
  • Fixed empty id attribute for attachment event in ticket change history.
  • Removed deprecated summary attribute from grouped progress bar table.

Description

$ curl -s 'https://trac.edgewall.org/browser' | grep 'repoindex'
      <h1 id="repoindex">Repository Index</h1>
<table class="listing dirlist"  id="repoindex">

Attachments (0)

Change History (8)

comment:1 by Ryan J Ollos, 4 years ago

Owner: set to Ryan J Ollos
Status: newassigned

comment:2 by Ryan J Ollos, 4 years ago

The h1 doesn't have id="repoindex" on 1.2-stable. It's since r15461.

Proposed change:

  • trac/htdocs/css/browser.css

    diff --git a/trac/htdocs/css/browser.css b/trac/htdocs/css/browser.css
    index a59763392..2250489f7 100644
    a b h1 :link, h1 :visited { color: #b00 }  
    1818h1 .first:link, h1 .first:visited { color: #998 }
    1919h1 .sep { color: #666; padding: 0 .1em }
    2020h1 .pathentry { float: left; padding: 0 .1em }
    21 h1#repoindex { margin-top: 1em; }
     21h1.repoindex { margin-top: 1em; }
    2222
    2323#diffrev, #jumprev, #jumploc {
    2424 float: right;
  • trac/versioncontrol/templates/browser.html

    diff --git a/trac/versioncontrol/templates/browser.html b/trac/versioncontrol/templates/browser.html
    index 9a6445022..303cdf8b8 100644
    a b  
    290290      # endif
    291291
    292292      # if repo and repo.repositories:
    293       <h1 id="repoindex">${_("Repository Index")}</h1>
     293      <h1 class="repoindex">${_("Repository Index")}</h1>
    294294      #   with repoindex = 'repoindex'
    295295      #     include 'repository_index.html'
    296296      #   endwith

comment:3 by Ryan J Ollos, 4 years ago

Internal Changes: modified (diff)
Resolution: fixed
Status: assignedclosed

Committed to 1.4-stable in r17330, merged to trunk in r17331.

comment:4 by Ryan J Ollos, 4 years ago

Also there's empty id elements in ticket change history when attachment added:

<div class="change" id="">
  • trac/ticket/templates/ticket.html

    diff --git a/trac/ticket/templates/ticket.html b/trac/ticket/templates/ticket.html
    index 9695b8420..d56c8e958 100644
    a b  
    209209          #   set change_date = change['comment_history'][latest]['date']
    210210          <div class="${classes('change',
    211211                      'trac-new' if change_date is greaterthan(start_time) and
    212                       'attachment' not in change.fields)}"
    213                id="${'trac-change-%d-%d' % (
    214                    change.cnum,
    215                    to_utimestamp(change.date)) if 'cnum' in change}">
     212                      'attachment' not in change.fields)}"${
     213             {'id': 'trac-change-%d-%d' % (change.cnum, to_utimestamp(change.date))
     214                    if 'cnum' in change}|htmlattr}>
    216215            # include 'ticket_change.html'
    217216          </div>
    218217          # endfor
Last edited 4 years ago by Ryan J Ollos (previous) (diff)

comment:5 by Ryan J Ollos, 4 years ago

Table summary attribute is deprecated in HTML5:

  • trac/templates/progress_bar_grouped.html

    diff --git a/trac/templates/progress_bar_grouped.html b/trac/templates/progress_bar_grouped.html
    index acb8c1027..b89394300 100644
    a b  
    1313Arguments:
    1414 - groups: a list of group data dicts
    1515 - grouped_by: ticket field by which tickets are grouped
    16  - summary: table summary text
    1716#}
    18   <table${{'summary': summary if summary is defined}|htmlattr}>
     17  <table>
    1918    # for group in groups:
    2019    #   set obfuscated = is_obfuscated(format_author(group.name))
    2120    <tr>
  • trac/ticket/templates/milestone_view.html

    diff --git a/trac/ticket/templates/milestone_view.html b/trac/ticket/templates/milestone_view.html
    index 3f1ebd179..3aba2d0a8 100644
    a b  
    8282              });
    8383            </script>
    8484          </legend>
    85           # with summary = _('Shows the milestone completion status grouped by %(grouped_by)s', grouped_by=grouped_by)
    86           #   if groups:
    87           #     include 'progress_bar_grouped.html' ignore missing
    88           #   endif
    89           # endwith
     85          # if groups:
     86          #   include 'progress_bar_grouped.html' ignore missing
     87          # endif
    9088        </fieldset>
    9189      </form>
    9290      # endif

comment:6 by Ryan J Ollos, 4 years ago

Internal Changes: modified (diff)
Resolution: fixed
Status: closedreopened

comment:7 by Ryan J Ollos, 4 years ago

comment:4 change committed to 1.4-stable in r17366, merged to trunk in r17367.

comment:8 by Ryan J Ollos, 4 years ago

Resolution: fixed
Status: reopenedclosed

comment:5 change committed to 1.4-stable in r17368, merged to trunk in r17369.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.