diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 0dadacd0..b026a819 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -245,8 +245,12 @@ text-align: center; font-size: 0.9em; } +.comment_content { + margin-bottom: 30px; +} + .comment_content p { - margin-bottom: 4px; + margin-bottom: 0px; } /* media galleries */ diff --git a/mediagoblin/static/images/icon_comment.png b/mediagoblin/static/images/icon_comment.png new file mode 100644 index 00000000..76860a92 Binary files /dev/null and b/mediagoblin/static/images/icon_comment.png differ diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 11fa72cf..17beffb2 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -47,28 +47,22 @@

{{ media.title }}

- + {% autoescape False %} +

{{ media.description_html }}

+ {% endautoescape %}

{% trans date=media.created.strftime("%Y-%m-%d"), user_url=request.urlgen( 'mediagoblin.user_pages.user_home', user=media.uploader().username), username=media.uploader().username -%} - Uploaded on {{ date }} by {{ username }} + By {{ username }} on {{ date }} {%- endtrans %}

- - {% autoescape False %} -

{{ media.description_html }}

- {% endautoescape %} - -
-

{% trans %}Comments{% endtrans %}

- +

{% if request.user %}

{% trans %}Post a comment{% endtrans %}

{% endif %} - {% if comments %} {% for comment in comments %} {% set comment_author = comment.author() %} @@ -79,14 +73,10 @@
{% endif %} -
- {% autoescape False %} - {{ comment.content_html }} +
{% autoescape False %}{{ comment.content_html }} {% endautoescape %} -
- -
— - + {{ comment_author['username'] }} {% trans %}at{% endtrans %} @@ -94,7 +84,7 @@ comment = comment['_id'], user = media.uploader().username, media = media._id) }}#comment"> - {{ comment.created.strftime("%Y-%m-%d %I:%M%p") }} + {{ comment.created.strftime("%I:%M%p %Y-%m-%d") }}