$def with (page) $var title: $page.displayname $ username = page.key.split('/')[-1] $ 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" $ is_subscribed = ctx.user and ctx.user.is_subscribed_user(username) $if days_since(page.created) < 30: $ putctx('robots', 'noindex') $if "lists" in ctx.features: $ lists = page.get_lists(limit=3) $else: $ lists = []

$settings.get('username')

$if is_public and not owners_page:
$:macros.Follow(username, following=is_subscribed)
$: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:

$(_('My Lists') if owners_page else _('Lists')) $(_('Edit') if owners_page else _('See All'))

    $for list in lists:
  • $:render_template("lists/snippet", list)
$ is_admin = ctx.user and ctx.user.is_admin() $ is_librarian = ctx.user and (ctx.user.is_librarian() or ctx.user.is_super_librarian()) $if owners_page or is_admin or is_librarian: $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)