Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions base/templates/base/room.html
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,15 @@ <h3>{{room.name}}</h3>

</div>
<div class="room__message">
<form action="" method="POST">
{% csrf_token %}
<input name="body" placeholder="Write your message here..." />
</form>
{% if request.user.is_authenticated %}
<form action="" method="POST">
{% csrf_token %}
<input name="body" placeholder="Write your message here..." />
</form>
{% else %}
<p class="room__login__message"> <a href="{% url 'login' %}">Log in </a> to write your message </p>
{% endif %}

</div>
</div>
<!-- Room End -->
Expand Down
5 changes: 5 additions & 0 deletions static/styles/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down