From 64308aca3f332bd6a1d880721aae3125707bcda8 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Sat, 13 Apr 2013 12:06:19 -0500 Subject: [PATCH] Comment when/author link styling changes --- mediagoblin/static/css/base.css | 19 +++++++++++++++++++ .../mediagoblin/user_pages/media.html | 6 ++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 8df9f2e1..ca80c1a7 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -360,6 +360,25 @@ textarea#description, textarea#bio { font-size: 0.9em; } +a.comment_authorlink { + text-decoration: none; + padding-right: 5px; + font-weight: bold; + padding-left: 2px; +} + +a.comment_authorlink:hover { + text-decoration: underline; +} + +a.comment_whenlink { + text-decoration: none; +} + +a.comment_whenlink:hover { + text-decoration: underline; +} + .comment_content { margin-left: 8px; margin-top: 8px; diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 88fc8f0b..7dea3f09 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -117,13 +117,15 @@
+ user=comment_author.username) }}" + class="comment_authorlink"> {{- comment_author.username -}} + media=media.slug_or_id) }}#comment" + class="comment_whenlink"> {%- trans formatted_time=timesince(comment.created) -%} {{ formatted_time }} ago -- 2.25.1