From 79243aece38c95c63c496d03723fa18160975e92 Mon Sep 17 00:00:00 2001 From: Bartuccio Antoine Date: Sun, 7 Jul 2019 18:51:36 +0200 Subject: [PATCH] pedagogy: better display for uv_details --- core/static/core/style.scss | 15 +++++++++++---- pedagogy/templates/pedagogy/uv_detail.jinja | 3 ++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/core/static/core/style.scss b/core/static/core/style.scss index 92daa21e..ba635201 100644 --- a/core/static/core/style.scss +++ b/core/static/core/style.scss @@ -1936,9 +1936,16 @@ $pedagogy-white-text: #f0f0f0; } .author-info { - color: $pedagogy-white-text; - text-align: center; - font-weight: bold; + + a { + color: $pedagogy-white-text; + text-align: center; + font-weight: bold; + } + + a:hover { + color: $pedagogy-light-blue; + } padding-right: 33%; padding: 5px; @@ -1949,7 +1956,7 @@ $pedagogy-white-text: #f0f0f0; .report { background-color: $pedagogy-orange; - clip-path: polygon(0 0%, 0 100%, 40% 100%, 30% 0); + clip-path: polygon(0 0%, 0 100%, 300px 100%, 250px 0); width : 33%; & a { diff --git a/pedagogy/templates/pedagogy/uv_detail.jinja b/pedagogy/templates/pedagogy/uv_detail.jinja index 1122b26a..80df651f 100644 --- a/pedagogy/templates/pedagogy/uv_detail.jinja +++ b/pedagogy/templates/pedagogy/uv_detail.jinja @@ -1,4 +1,5 @@ {% extends "core/base.jinja" %} +{% from "core/macros.jinja" import user_profile_link %} {% from "pedagogy/macros.jinja" import display_star %} {% block title %} @@ -159,7 +160,7 @@

{% trans %}Report this comment{% endtrans %}

{{ comment.publish_date.strftime('%d/%m/%Y') }}

-

{{ comment.author }}

+

{{ user_profile_link(comment.author) }}