diff --git a/base/templates/base/room.html b/base/templates/base/room.html index 713378d43..e405b903a 100644 --- a/base/templates/base/room.html +++ b/base/templates/base/room.html @@ -113,10 +113,15 @@

{{room.name}}

-
- {% csrf_token %} - -
+ {% if request.user.is_authenticated %} +
+ {% csrf_token %} + +
+ {% else %} +

Log in to write your message

+ {% endif %} +
diff --git a/static/styles/style.css b/static/styles/style.css index 180678d84..216f6ede9 100644 --- a/static/styles/style.css +++ b/static/styles/style.css @@ -1046,7 +1046,12 @@ a { margin-bottom: 4rem; height: 64%; } +.room__login__message{ + background: var(--color-dark-light); + padding: 0.5rem 1.5rem; + border-radius: 0.7rem; +} .threads h3 { text-transform: uppercase; font-weight: 500;