~loggerhead-team/loggerhead/trunk-rich

« back to all changes in this revision

Viewing changes to loggerhead/templatefunctions.py

use a pretty template for the directory listings

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
 
30
30
templatefunctions['macros'] = _pt('macros').macros
31
 
templatefunctions['breadcrumbs'] = _pt('breadcrumbs').macros
32
31
 
33
32
@templatefunc
34
33
def file_change_summary(url, entry, modified_file_link):
75
74
    return _pt('modified-file-link-log').expand(
76
75
        url=url, entry=entry, item=item,
77
76
        **templatefunctions)
78
 
 
79
 
@templatefunc
80
 
def search_box(branch, navigation):
81
 
    return _pt('search-box').expand(branch=branch, navigation=navigation,
82
 
        **templatefunctions)
83
 
 
84
 
@templatefunc
85
 
def feed_link(branch, url):
86
 
    return _pt('feed-link').expand(branch=branch, url=url, **templatefunctions)
87
 
 
88
 
@templatefunc
89
 
def menu(branch, url, fileview_active=False):
90
 
    return _pt('menu').expand(branch=branch, url=url,
91
 
        fileview_active=fileview_active, **templatefunctions)