Login/logout style tweaks.

- Legacy-Id: 7537
This commit is contained in:
Henrik Levkowetz 2014-03-23 19:18:02 +00:00
parent 475bcbbd30
commit 721b9a5cd7
2 changed files with 16 additions and 12 deletions

View file

@ -60,12 +60,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
{% if user %}
<div id="ietf-login" class="noprint">
{% if request.get_full_path == "/accounts/loggedout/" %}
<a href="https://{{ request.get_host }}/accounts/login/" rel="nofollow">Sign In</a>
<a href="https://{{ request.get_host }}/accounts/login/" class="login" rel="nofollow">Sign in</a>
{% else %}
{% if user.is_authenticated %}
{{ user }} | <a href="/accounts/logout/">Sign Out</a>
{{ user }} | <a href="/accounts/logout/" class="login" rel="nofollow">Sign out</a>
{% else %}
<a href="https://{{ request.get_host }}/accounts/login/?next={{request.get_full_path|urlencode}}" rel="nofollow">Sign In</a>
<a href="https://{{ request.get_host }}/accounts/login/?next={{request.get_full_path|urlencode}}" class="login" rel="nofollow">Sign in</a>
{% endif %}
{% endif %}
</div>

View file

@ -406,17 +406,21 @@ span.fieldRequired {
#login-pane {
width: 100%;
height: 100%;
// background: rgba(196,196,196,.5);
width: 100%;
height: 100%;
// background: rgba(196,196,196,.5);
}
#login-form {
width: 24em;
padding: 2em;
margin-right: auto;
margin-left: auto;
margin-top: 10em;
background: white;
width: 24em;
padding: 2em;
margin-right: auto;
margin-left: auto;
margin-top: 10em;
background: white;
}
.login {
font-style: italic;
}