<commit_before><%namespace name="components" file="/components.html"
/><%inherit file="/template.html" />



<%block name="headline">
<h1 id="title">${_("Startpage")}</h1>
</%block>

<%block name="infoboxes">
    %if c.fresh_logged_in or not c.page_user.instances:
    <%components:build_infobox>
    
        <p>
            ${_('Hi %s.<br />') % c.user.name | n}
 
        %if not c.page_user.instances:
            %if c.instance:
            ${_('Start by reading some <b><a href="%s">proposals</a></b> or <b><a href="%s">norms</a></b>. Or take a look at some of the other <b><a href="%s">instances</a></b>.') % (h.base_url("/proposals"), h.base_url("/norms"), h.base_url('/instance', None))|n}
            %else:
            ${_('Start by exploring the <b><a href="%s">instances</a></b> and read some of the proposals and norms in the instances.') % h.base_url('/instance', None) |n}
            %endif
            ${_('If you join an instance, norms and proposals of the instance will be shown on your dashboard.')}
            ${_('You can reach your dashboard anytime by clicking on your user name on the top of the page.')}
        %else:
            ${_('This is your Dashboard. Here you can find the list of instances your a member in, norms and proposals from these instance and a list of the pages you follow.')}
            ${_('You can reach your dashboard anytime by clicking on your user name on the top of the page.')}
        %endif
        </p>
        %if c.came_from:
        <p>
            ${_('You can also return to the <a href="%s">Page you came from</a>.') % c.came_from | n}
        </p>
        %endif
    </%components:build_infobox>
    %endif
</%block>

<%block name="main_content">
<section>
    <h2>${_("Proposals in your instances")}</h2>
    ${c.proposals_pager.here()}
    <p><commit_msg>Transplant another XSS fix from hhu-theme See https://github.com/hhucn/adhocracy.hhu_theme/issues/125 for details<commit_after><%namespace name="components" file="/components.html"
/><%inherit file="/template.html" />



<%block name="headline">
<h1 id="title">${_("Startpage")}</h1>
</%block>

<%block name="infoboxes">
    %if c.fresh_logged_in or not c.page_user.instances:
    <%components:build_infobox>
    
        <p>
            ${_('Hi %s.') % c.user.name}<br />
 
        %if not c.page_user.instances:
            %if c.instance:
            ${_('Start by reading some <b><a href="%s">proposals</a></b> or <b><a href="%s">norms</a></b>. Or take a look at some of the other <b><a href="%s">instances</a></b>.') % (h.base_url("/proposals"), h.base_url("/norms"), h.base_url('/instance', None))|n}
            %else:
            ${_('Start by exploring the <b><a href="%s">instances</a></b> and read some of the proposals and norms in the instances.') % h.base_url('/instance', None) |n}
            %endif
            ${_('If you join an instance, norms and proposals of the instance will be shown on your dashboard.')}
            ${_('You can reach your dashboard anytime by clicking on your user name on the top of the page.')}
        %else:
            ${_('This is your Dashboard. Here you can find the list of instances your a member in, norms and proposals from these instance and a list of the pages you follow.')}
            ${_('You can reach your dashboard anytime by clicking on your user name on the top of the page.')}
        %endif
        </p>
        %if c.came_from:
        <p>
            ${_('You can also return to the <a href="%s">Page you came from</a>.') % c.came_from | n}
        </p>
        %endif
    </%components:build_infobox>
    %endif
</%block>

<%block name="main_content">
<section>
    <h2>${_("Proposals in your instances")}</h2>
    ${c.proposals_pager.here()}
    <p>
{'fraction_non_alphanumeric': 0.1667556029882604, 'fraction_numerical': 0.002934898612593383, 'mean_word_length': 2.7303482587064676, 'pattern_counts': {'":': 0, '<': 79, '<?xml version=': 0, '>': 79, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4924559', 'n_tokens_mistral': 1249, 'n_tokens_neox': 1201, 'n_words': 387}