% if ($user_wiki_count) {

<% loc('Wikis You Are a Member of') %>

<& /lib/wiki-list.mas, wikis => $user_wikis &> % } elsif ( $c->user()->is_authenticated() ) {

<% loc( 'You are not a member of any wikis.' ) %>

% } % if ($public_wiki_count) { % if ( $c->user()->is_authenticated() ) {

<% loc('Public Wikis') %>

% } <& /lib/wiki-list.mas, wikis => $public_wikis &> % } % if ( ! $c->user()->is_authenticated ) { % if ($public_wiki_count) {

<% loc( 'You are not logged in, and can only see public wikis. Please log in to see wikis of which you are a member.', $c->domain()->application_uri( path => '/user/login_form' ) ) | n %>

% } else {

<% loc( 'This site has no public wikis available. Please log in if you have an account.', $c->domain()->application_uri( path => '/user/login_form' ) ) | n %>

% } % } % if ( $c->user()->is_admin() ) { <& /admin.mas &> % } <%args> $user_wiki_count => 0 $user_wikis => undef $public_wikis $public_wiki_count <%attr> sidebar => [] <%method title> % if ( $c->user()->is_authenticated() ) { <% loc( 'Wikis readable by %1', $c->user()->best_name() ) %> % } else { Public wikis % }