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 { hr {
color: black; color: black;
} }
a {
text-decoration: none;
color: black;
}

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

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

Loading…
Cancel
Save