Adding link to profil from post's pic

pull/22/head
Aurian JAULT 10 months ago
parent e1ca5d7a36
commit 81efb8aa97

@ -33,3 +33,8 @@ p {
hr {
color: black;
}
a {
text-decoration: none;
color: black;
}

@ -10,7 +10,9 @@
<div id="post-wrapper">
<div id="post">
<div id="post-info">
<a href="{{ path('profil_show', {'id': post.profil.id}) }}">
<img src="https://api.dicebear.com/8.x/big-smile/svg?seed={{ post.profil.name }}" width="50px">
</a>
<span>{{ post.profil.name }}</span>
{# <span>- {{ post.dateCreated }}</span> #}
<span>- Il y a 3 jours</span>

@ -1,17 +1,19 @@
{% block body %}
<a href="{{ path('display_post', {'id': post.id}) }}">
<div id="post-wrapper">
<div id="post">
<div id="post-info">
<a href="{{ path('profil_show', {'id': post.profil.id}) }}">
<img src="https://api.dicebear.com/8.x/big-smile/svg?seed={{ post.profil.name }}" width="40px">
</a>
<span>{{ post.profil.name }}</span>
{# <span>- {{ post.dateCreated }}</span> #}
<span>- Il y a 3 jours</span>
</div>
<a href="{{ path('display_post', {'id': post.id}) }}">
<h1 id="post-title">{{ post.title }}</h1>
<p>{{ post.text|u.truncate(150, true, '...') }}</p>
</a>
</div>
</div>
</a>
{% endblock %}

Loading…
Cancel
Save