Skip to content
This repository was archived by the owner on Apr 29, 2022. It is now read-only.

Commit 0355177

Browse files
authored
Adjust layout (#1351)
* Adjust layout Background image adjusted. CSS fixes for nav bar. * Adjust login test after UI changes
1 parent 31189dc commit 0355177

File tree

4 files changed

+12
-5
lines changed

4 files changed

+12
-5
lines changed

assets/css/europython-customizations.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ a.navbar-brand:hover{
7979
color: white;
8080
}
8181

82+
.navbar {
83+
background-image: linear-gradient( rgb(9 33 22), rgb(31 80 62 / 30%));
84+
background-color: rgb(27 103 75 / 75%);
85+
}
86+
.navbar-expand-lg>.container, .navbar-expand-lg>.container-fluid {
87+
flex-wrap: wrap;
88+
}
89+
8290
#content_page {
8391
min-height: 500px;
8492
margin: 40px 0;
-10.8 MB
Loading

templates/conference/header/_nav.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
</ul>
2424
<div class="my-2 my-md-0">
2525
{% if user.is_authenticated %}
26-
<span style='font-size: .8em; color: white'>Logged in as
27-
<strong>{{ user.assopy_user.name }}</strong>
28-
</span>
29-
<a class='nav-link btn btn-outline-light' href='{% url "user_panel:dashboard" %}'>My Account</a>
26+
<a class='nav-link btn btn-outline-light' href='{% url "user_panel:dashboard" %}'>
27+
<i class='fas fa-user'></i>
28+
{{ user.assopy_user.name }}
29+
</a>
3030
{% else %}
3131
<a class='nav-link btn btn-outline-light' href='{% url "accounts:login" %}'>
3232
<i class='fas fa-sign-in-alt'></i>

tests/test_user_login_and_registration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ def test_user_registration(client):
127127
assert template_used(response, "conference/homepage/home_template.html")
128128
# checking if user is logged in.
129129
assert "Joe Doe" in response.content.decode("utf-8")
130-
assert "My Account" in response.content.decode("utf-8")
131130

132131

133132
@mark.django_db

0 commit comments

Comments
 (0)