Modify ↓
Opened 5 years ago
Closed 5 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: |
|
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 , 5 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:2 by , 5 years ago
comment:3 by , 5 years ago
Internal Changes: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | assigned → closed |
comment:4 by , 5 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 209 209 # set change_date = change['comment_history'][latest]['date'] 210 210 <div class="${classes('change', 211 211 '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}> 216 215 # include 'ticket_change.html' 217 216 </div> 218 217 # endfor
comment:5 by , 5 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 13 13 Arguments: 14 14 - groups: a list of group data dicts 15 15 - grouped_by: ticket field by which tickets are grouped 16 - summary: table summary text17 16 #} 18 <table ${{'summary': summary if summary is defined}|htmlattr}>17 <table> 19 18 # for group in groups: 20 19 # set obfuscated = is_obfuscated(format_author(group.name)) 21 20 <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 82 82 }); 83 83 </script> 84 84 </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 90 88 </fieldset> 91 89 </form> 92 90 # endif
comment:6 by , 5 years ago
Internal Changes: | modified (diff) |
---|---|
Resolution: | fixed |
Status: | closed → reopened |
comment:7 by , 5 years ago
comment:8 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
Note:
See TracTickets
for help on using tickets.
The
h1
doesn't haveid="repoindex"
on 1.2-stable. It's since r15461.Proposed change:
trac/htdocs/css/browser.css
#repoindex { margin-top: 1em; }trac/versioncontrol/templates/browser.html
id="repoindex">${_("Repository Index")}</h1>