File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 7
7
< a href ="{% url 'post-edit' post.id %} "> < i class ="fa-regular fa-pen-to-square "> </ i > </ a >
8
8
</ div >
9
9
{% endif %}
10
- < h3 class ="font-bold "> < a href ="{% url 'profile' post.author.profile.pk %} "> @{{post.author.username}} {{ post.author.name }} </ a > < span > {{ post.created_on|timesince }}</ span > </ h3 >
10
+ < div style ="vertical-align: middle; ">
11
+ < img src ="{{ post.author.profile.picture.url }} " alt ="" style ="width: 50px; height: 50px; border-radius: 50px; float:left; ">
12
+ </ div >
13
+ < h3 class ="font-bold mt-2 ">
14
+ < a href ="{% url 'profile' post.author.profile.pk %} " class ="space-x-4 "> @{{post.author.username}} {{ post.author.name }}
15
+ </ a >
16
+ < span > {{ post.created_on|timesince }}</ span >
17
+ </ h3 >
18
+ < br >
19
+
11
20
< p > < a href ="{% url 'post-detail' post.id %} "> {{ post.body }}</ a > </ p >
12
21
{% if post.image %}
13
22
< img src ="{{ post.image.url }} " alt ="" style ="height: 50vh; max-width: 50%; margin-top: 10px; border-radius: 10px; ">
Original file line number Diff line number Diff line change 30
30
< h3 class ="font-bold "> < a href ="{% url 'profile' post.author.pk %} "> @{{post.author.username}} {{ post.author.name }} </ a > < span > {{ post.created_on|timesince }}</ span > </ h3 >
31
31
</ div >
32
32
< p class ="mt-4 "> < a href ="{% url 'post-detail' post.pk %} "> {{ post.body }}</ a > </ p >
33
+ {% if post.image %}
34
+ < img src ="{{ post.image.url }} " alt ="" style ="height: 50vh;max-width: 50%;border-radius: 10px; margin-top: 10px; ">
35
+ {% endif %}
33
36
< div class ="flex flex-row space-x-12 mt-8 mx-6 ">
34
37
< form action ="{% url 'post-like' post.pk %} " method ="POST ">
35
38
{% csrf_token %}
You can’t perform that action at this time.
0 commit comments