$def with (mb, template=None, header_title="", page=None) $ mb.component_times['TotalTime'] = time() $ header_title = header_title or mb.key $var title: $header_title
$:mb.render_sidebar() $ css = 'no-padding' if mb.key == 'mybooks' else ''
$if mb.key == 'mybooks' and mb.is_my_page: $:render_template("account/yrg_banner", mb.component_times) $ mb.component_times['Details header'] = time()
$if not mb.is_my_page and mb.is_subscribed != -1: $:macros.Follow(mb.username, following=mb.is_subscribed) $if 'followers' in mb.counts: $if page and mb.is_my_page: $:macros.databarView(page)
$ mb.component_times['Details header'] = time() - mb.component_times['Details header'] $ mb.component_times['Details content'] = time()
$if mb.is_my_page: $:render_template("account/topmenu", mb) $if mb.is_my_page and mb.key in ['notes', 'observations']:

$if mb.key == 'notes': $_('Your book notes are private and cannot be viewed by other patrons.') $elif mb.key == 'observations': $_('Your book reviews will be shared anonymously with other patrons.')

$if template: $:template
$ mb.component_times['Details content'] = time() - mb.component_times['Details content']
$ mb.component_times['TotalTime'] = time() - mb.component_times['TotalTime'] $if query_param('debug'): $:macros.Profile(mb.component_times)