Commit b95be09c authored by Enrico Zini's avatar Enrico Zini
Browse files

Fixed templates. refs: #9

parent 0ba7ac2a
...@@ -6,35 +6,13 @@ ...@@ -6,35 +6,13 @@
<h1>{{target_desc}}</h1> <h1>{{target_desc}}</h1>
{% if not request.sso_username %} {% if not visitor %}
<p>{% blocktrans %}You are not currently logged in. See the <p class="lead">{% trans "This wizard only works when you are logged into the site" %}</p>
<a href="https://wiki.debian.org/DebianSingleSignOn">Single Sign-On page</a>
for details.{% endblocktrans %}</p>
{% elif not visitor %}
<p>{% blocktrans with request_user_username=request.user.username %}You are
currently logged in with <a href="https://wiki.debian.org/DebianSingleSignOn">
SSO username</a> <b>{{request_user_username}}</b>, but you cannot be matched
to any person in the site.{% endblocktrans %}</p>
<p>
{% url 'dm_claim' as dm_claim_url %}
{% blocktrans %}If you are already in the site, for example as a Debian
Maintainer, you can try to correct the situation using the
<a href="{{dm_claim_url}}">claim interface</a>.{% endblocktrans %}</p>
<p>
{% url 'dm_claim' as dm_claim_url %}
{% blocktrans %}If you are already in the site, for example as a Debian
Maintainer, you can try to correct the situation using the
<a href="{{dm_claim_url}}">claim interface</a>.{% endblocktrans %}</p>
<p>
{% url 'public_newnm' as public_newnm_url %}
{% blocktrans %}If you are not yet in the site,
<a href="{{public_newnm_url}}">visit the 'Join the NM process' page</a>
to can create an entry for yourself.{% endblocktrans %}</p>
{% else %} {% else %}
{% for c in comments %}<p>{{c}}</p>{% endfor %} {% for c in comments %}<p class="lead">{{c}}</p>{% endfor %}
{% if allowed %} {% if allowed %}
<p> <p class="lead">
{% url 'process_create' key=visitor.lookup_key as process_create_url %} {% url 'process_create' key=visitor.lookup_key as process_create_url %}
{% blocktrans %}Just <a href="{{process_create_url}}">visit this page</a> {% blocktrans %}Just <a href="{{process_create_url}}">visit this page</a>
and follow the instructions.{% endblocktrans %} and follow the instructions.{% endblocktrans %}
......
...@@ -17,6 +17,11 @@ are currently logged in, but not mapped to any person in the site. ...@@ -17,6 +17,11 @@ are currently logged in, but not mapped to any person in the site.
If you are a Debian Maintainer, you can try to correct the situation using the If you are a Debian Maintainer, you can try to correct the situation using the
<a href="{{dm_claim}}">claim interface</a>.{% endblocktrans %} <a href="{{dm_claim}}">claim interface</a>.{% endblocktrans %}
{% url 'public_newnm' as public_newnm_url %}
{% blocktrans %}If you are not yet in the site,
<a href="{{public_newnm_url}}">visit the 'Join the NM process' page</a>
to create an entry for yourself.{% endblocktrans %}</p>
<p>{% trans "You are logged in as:" %}</p> <p>{% trans "You are logged in as:" %}</p>
<ul> <ul>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment