diff options
author | Sean Finney <seanius@debian.org> | 2008-07-01 23:10:01 +0200 |
---|---|---|
committer | Sean Finney <seanius@debian.org> | 2008-07-01 23:10:01 +0200 |
commit | 0f7336a198cb8838e3923600eb19023f02d25a7e (patch) | |
tree | 7e73776c7307353ebd1e1b30a65f96c543bc0eef /patchtracker | |
parent | d4baeb0f9b5ce0ee3bdb15bcfe7c4e1b2e7faa74 (diff) | |
download | patch-tracker-0f7336a198cb8838e3923600eb19023f02d25a7e.tar.gz |
slightly better breadcrumbs in header
Diffstat (limited to 'patchtracker')
-rwxr-xr-x | patchtracker/Templates.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/patchtracker/Templates.py b/patchtracker/Templates.py index 7f73e9a..b940670 100755 --- a/patchtracker/Templates.py +++ b/patchtracker/Templates.py @@ -33,10 +33,9 @@ class PackageVersTemplate(OurTemplate): sl['diffhandler'] = DiffGzHandler(dfile) else: sl['diffhandler'] = None - sl['crumbs'] = [("","Debian patch-tracker"), - ("package/"+srcpkg.name,srcpkg.name), - ("package/"+srcpkg.name+"/"+srcpkg.version, - srcpkg.name+"/"+srcpkg.version)] + sl['crumbs'] = [("package/"+srcpkg.name,srcpkg.name), + ("package/"+srcpkg.name+"/"+srcpkg.version, + srcpkg.name+"/"+srcpkg.version)] OurTemplate.__init__(self, file=tpl, searchList=sl) class FrontPageTemplate(OurTemplate): @@ -54,8 +53,7 @@ class LetterTocTemplate(OurTemplate): for d in packagelist.iterkeys(): self.dists[d] = True sl = {} - sl['crumbs'] = [("","Debian patch-tracker"), - ("index/"+letter,"index for "+letter)] + sl['crumbs'] = [("index/"+letter,"index for "+letter)] tpl = os.sep.join([Conf.template_dir, "letter_toc.tmpl"]) OurTemplate.__init__(self, file=tpl, searchList=sl) @@ -83,9 +81,8 @@ class PatchTemplate(OurTemplate): tpl = os.sep.join([Conf.template_dir, "patch_view.tmpl"]) sl = {'package':pkg, 'version':vers, 'name':name, 'patch':patch, 'patchtype':patchtype} - sl['crumbs'] = [("","Debian patch-tracker"), - ("package/"+pkg,pkg), - ("package/"+pkg+"/"+vers, pkg+"/"+vers)] + sl['crumbs'] = [("package/"+pkg,pkg), + ("package/"+pkg+"/"+vers, pkg+"/"+vers)] if patchtype == "debianonly": sl['crumbs'].append( ("patch/%s/view/%s/%s"%(patchtype,pkg,vers), "./debian-dir only patch") ) |