<%namespace name="model" module="adhocracy.model" /><%namespace name="components" file="/components.html" /><%namespace name="navigation" file="/navigation.html" /><%namespace name="debug" file="/debug/tiles.html" /><%def name="breadcrumbs()"> <%def name="title()"> <%block name="head"> ${components.head(self.title)} %if h.config.get('adhocracy.debug.sql'): ${debug.styles()} %endif %if h.overlay_link(): %endif %if h.config.get_bool(u'adhocracy.readonly'): <% msg = h.config.get(u'adhocracy.readonly.message') if msg == u'__default__': # translation happens twice in this case, but there should be no problem msg = _(u'This installation of adhocracy has been frozen. You can look at all content but editing is disabled.') %> %if msg: ${_(msg)} %endif %endif
%if c.user and c.user.welcome_code:
${h.field_token()|n}
%endif %if c.user is None:
%if config.get('adhocracy.login_style', 'default') == 'alternate': <%include file="/user/login_form_alternate.html"/> %else: <%include file="/user/login_form.html"/> %endif
%elif c.instance and can.instance.join(c.instance):

${_('Join this instance to start contributing.')}

${_("join")}
%elif c.instance and c.instance.require_valid_email and c.user and not c.user.is_email_activated():

${_('Validate email to start contributing.')}

${_('Send activation link')} ${_("or")} ${_("Edit profile")}
%endif %if c.instance and c.instance.frozen:
${_('This instance has been frozen - you can not edit or post anything.')}
%endif <%block name="attention_getter"> %if not h.config.get_bool(u'adhocracy.readonly') and c.instance is not None and (c.user is None or can.instance.join(c.instance) or (c.instance.requires_valid_email() and c.user and not c.user.is_email_activated()) or (h.config.get('adhocracy.propose_optional_attributes') and c.user.optional_attributes is None)): <%doc>add an attention getter on instances
%if c.user is None:
%if h.allow_user_registration(): ${_('Register')} ${_("or")} %endif ${_('Login')}

%if h.allow_user_registration(): ${_('Get an account to participate in the discussion.')} %else: ${_('Log in to participate in the discussion.')} %endif

%elif can.instance.join(c.instance):

${_('Join this instance to start contributing.')}

%elif c.instance.require_valid_email and c.user and not c.user.is_email_activated(): %if c.user.email is None:

${_('You need to set an email in your profile in order to contribute to this instance.')}

%else:

${_('Please validate your email address in order to contribute to this instance.')}
${_('Your registered email address is:')} ${c.user.email}

%endif %else: # h.config.get('adhocracy.propose_optional_attributes') and c.user.optional_attributes is None)):

${_(u'Please provide statistical information to help scientific evaluation!')}

%endif
%endif %if c.instance: ${navigation.subheader_instance_navigation(c.active_subheader_nav)} %endif <%block name="welcome">
<%block name="flashmessages"> <%block name="infoboxes"> %if c.tutorial and h.tutorial.show(c.tutorial, c.user):
<%components:build_infobox>
${c.tutorial_intro|n}
%if not c.tutorial_hide_start_button: ${_('start_this_tutorial')} %endif ${_('disable_this_tutorial')} ${_('disable_all_tutorials')}
%endif
<%block name="main" />
${self.body()} <%include file="piwik.html"/> <%include file="footer.html"/>
%if h.config.get('adhocracy.debug.sql'): ${debug.queries()} %endif %if h.feedback.is_configured(): %if can.proposal.create(instance=h.feedback.get_feedback_instance()): ${components.feedback()} %endif %endif