Add navigation to detail

This commit is contained in:
Gabriel Augendre 2021-01-24 16:07:14 +01:00
parent 35cca26719
commit a01459d4d3
2 changed files with 5 additions and 1 deletions

View file

@ -20,3 +20,7 @@
flex-grow: 1; flex-grow: 1;
margin-left: 1em; margin-left: 1em;
} }
.message {
cursor: pointer;
}

View file

@ -7,7 +7,7 @@
{% block content %} {% block content %}
{% for message in messages %} {% for message in messages %}
<div class="message"> <div class="message" onclick="window.location.href = '/{{ message.id }}/';">
<div class="picture-preview"> <div class="picture-preview">
{% if message.media_files.first %} {% if message.media_files.first %}
<img src="{{ message.media_files.first.file.url }}" alt="Photo"> <img src="{{ message.media_files.first.file.url }}" alt="Photo">