From dc2105fbb8620cb85d4ec082eddd22ac2e1c8d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sybren=20A=2E=20St=C3=BCvel?= Date: Wed, 10 Oct 2018 16:54:36 +0200 Subject: [PATCH] Enabled badges in comments --- src/styles/_comments.sass | 17 +++++++++++++++++ src/templates/nodes/custom/comment/_macros.pug | 9 ++------- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/src/styles/_comments.sass b/src/styles/_comments.sass index 71dd697c..68062966 100644 --- a/src/styles/_comments.sass +++ b/src/styles/_comments.sass @@ -499,3 +499,20 @@ $comments-width-max: 710px .comment-reply-meta button.comment-action-cancel display: inline-block + + +.comment-badges ul.blender-id-badges + list-style: none + padding: 0 + margin: 4px 0 0 0 + + li + margin: 2px 0 !important + + li, li a, li img + padding: 0 !important + li + display: inline + img + width: 16px + height: 16px diff --git a/src/templates/nodes/custom/comment/_macros.pug b/src/templates/nodes/custom/comment/_macros.pug index 7c8e473f..6e39647c 100644 --- a/src/templates/nodes/custom/comment/_macros.pug +++ b/src/templates/nodes/custom/comment/_macros.pug @@ -6,16 +6,11 @@ .comment-avatar img(src="{{ comment._user.email | gravatar }}", alt="{{ comment._user.full_name }}") - + .comment-badges + | {{ comment._user.badges_html|safe }} .comment-content .comment-body p.comment-author {{ comment._user.full_name }} - | {# - //- TODO(Pablo): due to the broad styling done on the .comment-content class the - //- styling for the badges that I put in _project.sass isn't applied properly here. - | {{ comment._user.badges_html|safe }} - | #} - span {{comment.properties | markdowned('content') }} | {# TODO(Pablo): Markdown preview when editing #}