Modify ↓
Opened 7 years ago
Closed 7 years ago
#12864 closed defect (fixed)
Wrong "None bytes" in title attribute of size column in repository browser
Reported by: | Jun Omae | Owned by: | Jun Omae |
---|---|---|---|
Priority: | normal | Milestone: | 1.2.3 |
Component: | version control/browser | Version: | 1.0.15 |
Severity: | normal | Keywords: | |
Cc: | Branch: | ||
Release Notes: |
Fix incorrect |
||
API Changes: | |||
Internal Changes: |
Description
$ curl -s https://trac.edgewall.org/demo-1.0/browser | grep -F 'title="None' <span title="None bytes"></span> <span title="None bytes"></span> <span title="None bytes"></span> <span title="None bytes"></span> <span title="None bytes"></span>
-
trac/versioncontrol/templates/dir_entries.html
25 25 order=order if order != 'name' else None, desc=desc)}">$entry.name</a> 26 26 </td> 27 27 <td class="size"> 28 <span title="${_('%(size)s bytes', size=entry.content_length)}">${pretty_size(entry.content_length)}</span> 28 <span py:if="entry.content_length is not None" 29 title="${_('%(size)s bytes', size=entry.content_length)}">${ 30 pretty_size(entry.content_length)}</span> 29 31 <a py:if="entry.raw_href" href="$entry.raw_href" class="${'trac-ziplink' if isdir else 'trac-rawlink'}" 30 32 title="${_('Download as Zip archive') if isdir else _('Download')}">​</a> 31 33 </td>
Attachments (0)
Change History (4)
comment:1 by , 7 years ago
comment:2 by , 7 years ago
Release Notes: | modified (diff) |
---|
Proposed changes with unit tests in [3a4b957f3/jomae.git].
comment:4 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Thanks. Committed in [16206].
Note:
See TracTickets
for help on using tickets.
The same issue existed in trunk with Jinja2 template. It has been fixed in [16135/trunk/trac/versioncontrol/templates/dir_entries.html].