~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/controllers/changelog_ui.py

  • Committer: Robey Pointer
  • Date: 2006-12-15 08:42:22 UTC
  • Revision ID: robey@lag.net-20061215084222-x9wqt4yklp59apqz
lots of little changes:
- allow revno to be used in most urls where a revid is desired.
- clean up the upper right navbar; no more "-300 -100" confusion
- the upper left navbar is now always the same, never contextual
- for the 3 pages that had contextual buttons in the upper-left navbar, move
  them to little side-arrows underneath the h1
- add "jump to diff" link next to modified-files in /changes and /revision
- add date to inventory-view
- add copyright credits from bazaar-webserve

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# Copyright (C) 2006  Robey Pointer <robey@lag.net>
 
3
# Copyright (C) 2006  Goffredo Baroncelli <kreijack@inwind.it>
3
4
#
4
5
# This program is free software; you can redistribute it and/or modify
5
6
# it under the terms of the GNU General Public License as published by
54
55
        h = util.get_history()
55
56
        
56
57
        if len(args) > 0:
57
 
            revid = args[0]
 
58
            revid = h.fix_revid(args[0])
58
59
        else:
59
60
            revid = None
60
61
 
61
62
        path = kw.get('path', None)
62
 
        start_revid = kw.get('start_revid', None)
 
63
        start_revid = h.fix_revid(kw.get('start_revid', None))
63
64
        pagesize = int(turbogears.config.get('loggerhead.pagesize', '20'))
64
65
        
65
66
        try:
78
79
 
79
80
        navigation = util.Container(pagesize=pagesize, revid=revid, start_revid=start_revid, revlist=revlist,
80
81
                                    path=path, scan_url='/changes', feed=True)
81
 
        next_page_revid = h.get_revlist_offset(revlist, revid, pagesize)
82
 
        prev_page_revid = h.get_revlist_offset(revlist, revid, -pagesize)
 
82
        util.fill_in_navigation(h, navigation)
83
83
        
84
84
        entries = list(entries)
85
85
        # add parent & merge-point branch-nick info, in case it's useful
97
97
            'revid': revid,
98
98
            'navigation': navigation,
99
99
            'path': path,
100
 
            'next_page_revid': next_page_revid,
101
 
            'prev_page_revid': prev_page_revid,
102
100
            'last_revid': h.last_revid,
103
101
            'start_revid': start_revid,
104
102
        }