Add navigation to detail
This commit is contained in:
parent
35cca26719
commit
a01459d4d3
2 changed files with 5 additions and 1 deletions
|
@ -20,3 +20,7 @@
|
|||
flex-grow: 1;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
.message {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
{% block content %}
|
||||
{% for message in messages %}
|
||||
<div class="message">
|
||||
<div class="message" onclick="window.location.href = '/{{ message.id }}/';">
|
||||
<div class="picture-preview">
|
||||
{% if message.media_files.first %}
|
||||
<img src="{{ message.media_files.first.file.url }}" alt="Photo">
|
||||
|
|
Loading…
Reference in a new issue