Skip to content
This repository has been archived by the owner on Aug 3, 2022. It is now read-only.

Commit

Permalink
[#854] Prevent login appearing on Index site
Browse files Browse the repository at this point in the history
  • Loading branch information
brew committed Feb 8, 2017
1 parent 0e1a517 commit 6ad311f
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions census/views/base.html
Expand Up @@ -162,12 +162,14 @@
<a href="http://opendatacommons.org/licenses/pddl/1.0">{{ gettext("Data License (Public Domain)") }}</a>. <a href="https://github.com/okfn/opendatasurvey/">{{ gettext("Source code") }}</a>.
</p>
</div>
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
{% if currentUser %}
{{format(gettext("Logged in as %(name)s"), { name: currentUser.firstName })}}
| <a href="{{ logoutUrl }}">{{ gettext("Log out") }}</a>
{% else %}
<a href="{{ loginUrl }}">{{ gettext("Login") }}</a>
{% if not is_index %}
<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
{% if currentUser %}
{{format(gettext("Logged in as %(name)s"), { name: currentUser.firstName })}}
| <a href="{{ logoutUrl }}">{{ gettext("Log out") }}</a>
{% else %}
<a href="{{ loginUrl }}">{{ gettext("Login") }}</a>
{% endif %}
{% endif %}
{% if locales.length > 1 %}
<p class="lang-picker">
Expand Down

0 comments on commit 6ad311f

Please sign in to comment.