Skip to content

Commit a439530

Browse files
Bugfix/login profile button (#1764)
1 parent e31d64f commit a439530

File tree

2 files changed

+38
-5
lines changed

2 files changed

+38
-5
lines changed

home/templates/home/tags/footer.html

+37-4
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,48 @@
88
{% endfor %}
99
{% if request.user.is_anonymous %}
1010
{% url 'account_login' as login_url %}
11-
<!-- {% primary_button title='Log in / Create account' href=login_url icon_path='icons/login.svg' extra_classnames='login-create-account-btn' %} -->
11+
<div class="mobile-only">
12+
{% primary_button title='Log in / Create account' href=login_url icon_path='icons/login.svg' extra_classnames='login-create-account-btn' %}
13+
</div>
1214
{% else %}
1315
{% comments_moderation_button %}
14-
15-
{% url 'user_profile' as profile_url %}
16-
<!-- {% primary_button title='Profile' href=profile_url icon_path='icons/profile.svg' %} -->
16+
<div class="mobile-only">
17+
{% url 'user_profile' as profile_url %}
18+
{% primary_button title='Profile' href=profile_url icon_path='icons/profile.svg' %}
19+
</div>
1720

1821
{% url 'account_logout' as logout_url %}
1922
{% primary_button title='Log out' href=logout_url icon_path='icons/arrow_icon_left.svg' extra_classnames='logout-btn' %}
2023
{% endif %}
2124
</nav>
2225
</footer>
26+
27+
<style>
28+
.mobile-only {
29+
display: none;
30+
}
31+
32+
@media (max-width: 768px) and (max-width: 1225px) {
33+
.mobile-only {
34+
display: block;
35+
}
36+
}
37+
38+
@media (min-width: 769px) and (max-width: 1024px) {
39+
.mobile-only {
40+
display: block;
41+
}
42+
}
43+
44+
@media (min-width: 1025px) and (max-width: 1225px) {
45+
.mobile-only {
46+
display: block;
47+
}
48+
}
49+
50+
@media (min-width: 1386px) {
51+
.mobile-only {
52+
display: none;
53+
}
54+
}
55+
</style>

iogt/settings/production.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
},
3434
}
3535

36-
SITE_VERSION = '2.13.11'
36+
SITE_VERSION = '2.13.12'
3737

3838
try:
3939
from .local import *

0 commit comments

Comments
 (0)