Skip to content

Commit

Permalink
euth, euth_wagtail: fix styling for login
Browse files Browse the repository at this point in the history
  • Loading branch information
m4ra authored and hom3mad3 committed Jan 22, 2024
1 parent c1ec983 commit 53adc5c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
17 changes: 4 additions & 13 deletions euth/users/templates/euth_users/indicator_menu.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{% load i18n thumbnail avatar %}

<ul class="nav navbar-nav navbar-right ms-sm-auto user-indicator order-sm-2" id="user-indicator">
<li class="dropdown">
{% if request.user.is_authenticated %}
<li class="dropdown">
<div class="btngroup btngroup-primary ms-sm-3">
<a href="{% url 'profile' request.user.username %}" class="btn userindicator-profile">
<span class="circled circled-xs" style="background-image: url({% get_avatar request.user 'org_avatar_small' %});"></span>
Expand Down Expand Up @@ -43,17 +43,8 @@
</ul>
</div>
{% else %}
<a href="#" class="dropdown-toggle" data-bs-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="inner">{% trans "Login"%}<i class="fa fa-caret-down ps-1" aria-hidden="true"></i></span>
</a>
<ul class="dropdown-menu">
<li>
<a href="{% url 'account_login' %}?next={{ redirect_field_value|urlencode }}" class="dropdown-item">{% trans "login" %}</a>
</li>
<!-- <li>
<a href="{% url 'account_signup' %}?next={{ redirect_field_value|urlencode }}" class="dropdown-item">{% trans "register" %}</a>
</li>
-->
</ul>
{% endif %}
<li class="nav-item">
<a href="{% url 'account_login' %}?next={{ redirect_field_value|urlencode }}" class="nav-link px-3">{% trans "login" %}</a>
</li>
{% endif %}
</ul>
4 changes: 2 additions & 2 deletions euth_wagtail/templates/account/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
{% block title %}{% trans 'Login' %}{% endblock %}

{% block content %}
<div class="account__container">
<div class="account__container--left">
<div class="container">
<div class="container-narrow">
{% if not request.user.is_authenticated %}
<div class="general-form">
<div class="form-inner pt-3 pt-md-5">
Expand Down
4 changes: 2 additions & 2 deletions euth_wagtail/templates/account/signup_closed.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
{% block head_title %}{% trans "Sign Up Closed" %}{% endblock %}

{% block content %}
<div class="account__container">
<div class="account__container--left">
<div class="container">
<div class="container-narrow">
<div class="general-form">
<header class="form-inner pt-3 pt-md-5">
<h1>{% trans "Sign Up Closed" %}</h1>
Expand Down

0 comments on commit 53adc5c

Please sign in to comment.