$def with (doc, lists, show_header=True) $ deleteType = '' $if show_header:
$ header = render_template("lists/header", doc, lists) $var title: $_('%(owner)s / Lists', owner=header.title) $:header
$if doc.key.startswith("/subjects/"): $ seed = doc.get_seed() $else: $ seed = {"key": doc.key} $ deleteType = '' $if "type" in doc and doc.type.key == "/type/user": $if ctx.user and ctx.user.key == doc.key: $ deleteType = 'deleteList' $# The link below is a placeholder that gets inserted into the correct place in the DOM on page load via ListViewBody.js $else: $ deleteType = 'deleteSeed' $# The link below is a placeholder that gets inserted into the correct place in the DOM on page load via ListViewBody.js $def seed_attrs(seed): data-list-key="$list.key"
$if lists:
$elif not ctx.user or ctx.user.key != doc.key:

$_("This reader hasn't created any lists yet.")

$else:

$_("You haven't created any lists yet.")

$_('Learn how to create your first list.')

$_('Recent Activity')

$:render_template("lists/activity", doc)