Commit 406d51bb authored by SpinShare's avatar SpinShare

added links to reviews

parent 68ab6126
...@@ -117,6 +117,8 @@ ...@@ -117,6 +117,8 @@
background: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.1);
border-radius: 4px; border-radius: 4px;
padding: 20px; padding: 20px;
display: block;
transition: 0.2s ease-in-out opacity;
} }
.section-user-detail .reviews .review-list .review .metadata { .section-user-detail .reviews .review-list .review .metadata {
display: grid; display: grid;
...@@ -144,16 +146,14 @@ ...@@ -144,16 +146,14 @@
display: block; display: block;
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
transition: 0.2s ease-in-out opacity;
}
.section-user-detail .reviews .review-list .review .metadata .text .username:hover {
opacity: 0.6;
} }
.section-user-detail .reviews .review-list .review .metadata .text .subline { .section-user-detail .reviews .review-list .review .metadata .text .subline {
display: grid; display: grid;
grid-gap: 5px; grid-gap: 5px;
grid-template-columns: auto 1fr; grid-template-columns: auto 1fr;
align-items: center; align-items: center;
color: #fff;
text-decoration: none;
} }
.section-user-detail .reviews .review-list .review .metadata .text .subline i.positive { .section-user-detail .reviews .review-list .review .metadata .text .subline i.positive {
color: #62d38a; color: #62d38a;
...@@ -168,8 +168,11 @@ ...@@ -168,8 +168,11 @@
margin-top: 15px; margin-top: 15px;
line-height: 1.5em; line-height: 1.5em;
word-break: normal; word-break: normal;
overflow: hidden; color: #fff;
transition: 1s ease max-height; text-decoration: none;
}
.section-user-detail .reviews .review-list .review:hover {
opacity: 0.4;
} }
.section-user-detail .spinplays { .section-user-detail .spinplays {
padding: 50px; padding: 50px;
......
...@@ -134,6 +134,8 @@ ...@@ -134,6 +134,8 @@
background: rgba(255,255,255,0.1); background: rgba(255,255,255,0.1);
border-radius: 4px; border-radius: 4px;
padding: 20px; padding: 20px;
display: block;
transition: 0.2s ease-in-out opacity;
& .metadata { & .metadata {
display: grid; display: grid;
...@@ -163,17 +165,14 @@ ...@@ -163,17 +165,14 @@
display: block; display: block;
color: #fff; color: #fff;
text-decoration: none; text-decoration: none;
transition: 0.2s ease-in-out opacity;
&:hover {
opacity: 0.6;
}
} }
& .subline { & .subline {
display: grid; display: grid;
grid-gap: 5px; grid-gap: 5px;
grid-template-columns: auto 1fr; grid-template-columns: auto 1fr;
align-items: center; align-items: center;
color: #fff;
text-decoration: none;
& i.positive { color: #62d38a; } & i.positive { color: #62d38a; }
& i.negative { color: #f73c56; } & i.negative { color: #f73c56; }
...@@ -189,8 +188,12 @@ ...@@ -189,8 +188,12 @@
margin-top: 15px; margin-top: 15px;
line-height: 1.5em; line-height: 1.5em;
word-break: normal; word-break: normal;
overflow: hidden; color: #fff;
transition: 1s ease max-height; text-decoration: none;
}
&:hover {
opacity: 0.4;
} }
} }
} }
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
{% if reviews|length > 0 %} {% if reviews|length > 0 %}
<div class="review-list"> <div class="review-list">
{% for review in reviews %} {% for review in reviews %}
<div class="review"> <a href="{{ path('song.detail', {songId: review.song.id, tab: 'reviews'}) }}" class="review">
<div class="metadata"> <div class="metadata">
<a href="{{ path('user.detail', {userId: review.user.id}) }}" class="avatar" style="background-image: url({{ asset('uploads/avatar/' ~ review.user.coverReference ~ '?t=' ~ date().timestamp) }}), url({{ asset("assets/img/defaultAvatar.jpg") }});"></a> <div class="avatar" style="background-image: url({{ asset('uploads/avatar/' ~ review.user.coverReference ~ '?t=' ~ date().timestamp) }}), url({{ asset("assets/img/defaultAvatar.jpg") }});"></div>
<div class="text"> <div class="text">
<a href="{{ path('user.detail', {userId: review.user.id}) }}" class="username">{{ review.user.username }}</a> <div class="username">{{ review.user.username }}</div>
<div class="subline"> <div class="subline">
<i class="mdi {{ review.recommended ? 'mdi-thumb-up positive' : 'mdi-thumb-down negative' }}"></i> <i class="mdi {{ review.recommended ? 'mdi-thumb-up positive' : 'mdi-thumb-down negative' }}"></i>
<span>{{ review.reviewDate|date("dS F Y") }}</span> <span>{{ review.reviewDate|date("dS F Y") }}</span>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
{% if review.comment != "" %} {% if review.comment != "" %}
<div class="comment">{{ review.comment|nl2br }}</div> <div class="comment">{{ review.comment|nl2br }}</div>
{% endif %} {% endif %}
</div> </a>
{% endfor %} {% endfor %}
</div> </div>
{% else %} {% else %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment