$def with (page) $var title: $page.displayname $ settings = page.get_users_settings() $ owners_page = ctx.user and ctx.user.key == page.key $ is_public = settings and settings.get('public_readlog', 'no') == "yes" $if days_since(page.created) < 30: $ putctx('robots', 'noindex') $if "lists" in ctx.features: $ lists = page.get_lists(limit=3) $else: $ lists = []
$:macros.databarView(page)

$page.displayname

$if page.created: $_('Joined %(date)s', date=datestr(page.created)) $if owners_page: • $_("Settings") | $_("Loans") $elif ctx.user and ctx.user.is_admin(): • $_('admin page') $if "lists" in ctx.features and lists: • $_("Lists")
$if page.website:

$for url in page.website: $url

$:sanitize(format(page.description))

$_('Reading Log')

$if owners_page: $if is_public:

$:_('You are publicly sharing the books you are currently reading, have already read, and want to read.', username=page.key)

$else: $_('You have chosen to make your') $_('Reading Log') $_('private'). $_('Manage your privacy settings') $else: $if is_public:

$:_('Here are the books %(user)s is currently reading, have already read, and want to read!', username=page.key, user=page.displayname)

$else:

$_('This reader has chosen to make their Reading Log private.')

$if "lists" in ctx.features and lists:

$_('Lists') $_('See all')

    $for list in lists:
  • $:render_template("lists/snippet", list)
$if "recentchanges_v2" in ctx.features: $ changes = render_template("recentchanges/render", author=page.key, limit=25) $if changes.length > 1:

$_('Recent Activity')

$:changes $else:

$_("No edits. Yet.")

$else: $:macros.RecentChangesUsers(author=page, limit=25)