Browse files

Adding formats for repository path.

  • Loading branch information...
1 parent f66b6a2 commit 30446c24a952acdab3c069e561eb91ee958bd391 @mrjbq7 mrjbq7 committed May 27, 2010
Showing with 3 additions and 0 deletions.
  1. +3 −0 tracsql/web_ui.py
View
3 tracsql/web_ui.py
@@ -101,13 +101,16 @@ def process_request(self, req):
sql = query
format = {
+ 'path' : lambda x: html.A(x, href=req.href.browser(x)),
'rev' : lambda x: html.A(x, href=req.href.changeset(x)),
'time' : lambda x: fmt_timestamp(x),
}
if trac.__version__.startswith('0.12'):
format['time'] = lambda x: fmt_timestamp(x/1000000.)
+ format['base_path'] = format['path']
+ format['base_rev'] = format['rev']
format['changetime'] = format['time']
if action == 'tables':

0 comments on commit 30446c2

Please sign in to comment.