Merge pull request 'PostController' (#25) from PostController into master

Reviewed-on: #25
pull/28/head
remrem 10 months ago
commit edfec6a350

@ -9,6 +9,16 @@
a { a {
text-decoration: none; text-decoration: none;
color: black; color: black;
img {
margin-right: 5px;
}
}
.profile {
display: flex;
flex-direction: rows;
align-items: center;
} }
&.nightmare { &.nightmare {

@ -2,11 +2,10 @@
<div id="post-wrapper" class="{% if post.dream %}nightmare{% endif %}"> <div id="post-wrapper" class="{% if post.dream %}nightmare{% endif %}">
<div id="post"> <div id="post">
<div id="post-info"> <div id="post-info">
<a href="{{ path('profil_show', {'id': post.profil.id}) }}"> <a class="profile" 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"> <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.profil.name }}</span>
{# <span>- {{ post.dateCreated }}</span> #} </a>
<span>-</span> <span>-</span>
<span>{{ post.createdAt|date('l, F j, Y') }}</span> <span>{{ post.createdAt|date('l, F j, Y') }}</span>
</div> </div>

Loading…
Cancel
Save