Comment when/author link styling changes

This commit is contained in:
Christopher Allan Webber 2013-04-13 12:06:19 -05:00
parent 05ad187b86
commit 64308aca3f
2 changed files with 23 additions and 2 deletions

View File

@ -360,6 +360,25 @@ textarea#description, textarea#bio {
font-size: 0.9em; 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 { .comment_content {
margin-left: 8px; margin-left: 8px;
margin-top: 8px; margin-top: 8px;

View File

@ -117,13 +117,15 @@
<div class="comment_author"> <div class="comment_author">
<img src="{{ request.staticdirect('/images/icon_comment.png') }}" /> <img src="{{ request.staticdirect('/images/icon_comment.png') }}" />
<a href="{{ request.urlgen('mediagoblin.user_pages.user_home', <a href="{{ request.urlgen('mediagoblin.user_pages.user_home',
user=comment_author.username) }}"> user=comment_author.username) }}"
class="comment_authorlink">
{{- comment_author.username -}} {{- comment_author.username -}}
</a> </a>
<a href="{{ request.urlgen('mediagoblin.user_pages.media_home.view_comment', <a href="{{ request.urlgen('mediagoblin.user_pages.media_home.view_comment',
comment=comment.id, comment=comment.id,
user=media.get_uploader.username, user=media.get_uploader.username,
media=media.slug_or_id) }}#comment"> media=media.slug_or_id) }}#comment"
class="comment_whenlink">
<span title='{{- comment.created.strftime("%I:%M%p %Y-%m-%d") -}}'> <span title='{{- comment.created.strftime("%I:%M%p %Y-%m-%d") -}}'>
{%- trans formatted_time=timesince(comment.created) -%} {%- trans formatted_time=timesince(comment.created) -%}
{{ formatted_time }} ago {{ formatted_time }} ago