Commit 0fedba7d authored by urbec's avatar urbec 🐣
Browse files

Not showing logged out users as logged in, fixing display of whoami.html,...

Not showing logged out users as logged in, fixing display of whoami.html, removing duplicated code in advocate.html Fixes: #48
parent 93f2adfc
Pipeline #307004 passed with stage
in 6 minutes and 1 second
...@@ -70,25 +70,11 @@ ...@@ -70,25 +70,11 @@
</tbody> </tbody>
</table> </table>
{% endif %} {% endif %}
{% elif not request.session.signon_identities %}
{% url 'dm_claim' as dm_claim_url %}
<p>{% blocktrans %}You are currently logged in
with <a href="https://wiki.debian.org/DebianSingleSignOn">SSO username</a>
<b>{{request.user.username}}</b>, but not mapped to any person in the site.
If you are a Debian Maintainer, you can try to correct the situation using the
<a href="{{dm_claim}}">claim interface</a>.{% endblocktrans %}</p>
{% else %} {% else %}
<p class="lead">{% trans "This wizard only works when you are logged into the site" %}</p>
<p>{% blocktrans %}You are not currently logged in. See the
<a href="https://wiki.debian.org/DebianSingleSignOn">Single Sign-On page</a>
for details.{% endblocktrans %}</p>
{% endif %} {% endif %}
{% if request.session.signon_identities %} {% if request.signon_identities %}
{% include "wizard/whoami.html" %} {% include "wizard/whoami.html" %}
{% endif %} {% endif %}
......
...@@ -20,7 +20,7 @@ and follow the instructions.{% endblocktrans %} ...@@ -20,7 +20,7 @@ and follow the instructions.{% endblocktrans %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% if request.session.signon_identities %} {% if request.signon_identities %}
{% include "wizard/whoami.html" %} {% include "wizard/whoami.html" %}
{% endif %} {% endif %}
......
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