Ticket #6556: report-6556.diff
| File report-6556.diff, 3.5 KB (added by eblot, 4 years ago) |
|---|
-
Users/eblot/Sources/Svn/edgewall.org/trac/trunk/trac/ticket/report.py
268 268 self._send_sql(req, id, title, description, sql) 269 269 270 270 if id > 0: 271 title = '{%i} %s' % (id, title) 271 decorated_title = '{%i} %s' % (id, title) 272 else: 273 decorated_title = title 272 274 273 275 report_resource = Resource('report', id) 274 276 context = Context.from_request(req, report_resource) 275 data = {'action': 'view', 'title': title, 276 'report': {'id': id, 'resource': report_resource}, 277 'context': context, 278 'title': title, 'description': description, 277 data = {'action': 'view', 278 'report': {'id': id, 'resource': report_resource, 279 'title' : title}, 280 'context': context, 'title': decorated_title, 281 'description': description, 279 282 'args': args, 'message': None} 280 283 try: 281 284 cols, results = self.execute_report(req, db, id, sql, args) -
Users/eblot/Sources/Svn/edgewall.org/trac/trunk/trac/ticket/templates/report.rss
5 5 <xi:include href="macros.rss" /> 6 6 <channel> 7 7 <title>$project.name: $report.title</title> 8 <link>${abs_href.report(report.id )}</link>8 <link>${abs_href.report(report.id != -1 and report.id or '')}</link> 9 9 <description>Trac Report - $report.description</description> 10 10 <language>en-us</language> 11 11 <image py:if="chrome.logo.src"> 12 <title>$project.name</title> 13 <url>$chrome.logo.src</url> 12 <title>$project.name: $report.title</title> 13 <url>${ 14 chrome.logo.src_abs and chrome.logo.src_abs or abs_href(chrome.logo.src) 15 }</url> 14 16 <link>${abs_href.report(report.id != -1 and report.id or '')}</link> 15 17 </image> 16 18 <generator>Trac v${trac.version}</generator> … … 22 24 <py:when test="col == 'reporter'"> 23 25 ${author_or_creator(cell.author, email_map)} 24 26 </py:when> 25 <py:when test="col in ('time', 'changetime', 'created', 'modified')">26 <!-- FIXME: we end up with multiple pubDate -->27 <pubDate py:if="cell.value != 'None'">${http_date(fromtimestamp(int(cell.value)))}</pubDate>28 </py:when>29 27 <py:when test="col == 'summary'"> 30 28 <title>#$row.id: $cell.value</title> 31 29 </py:when> … … 35 33 </py:choose> 36 34 </py:with> 37 35 </py:for> 36 <py:with vars="lru = max([int(cell.value) for cell in [c for cell_group in row.cell_groups for c in cell_group] 37 if cell.header.col.strip('_') in ('time', 'changetime', 'created', 'modified')])"> 38 <pubDate>${http_date(fromtimestamp(lru))}</pubDate> 39 </py:with> 38 40 <link py:if="row.id">${abs_url_of(row.resource)}</link> 39 41 <guid isPermaLink="false" py:if="row.id">${abs_url_of(row.resource)}</guid> 40 42 <category>Report</category>
