From 157c60267e0c0e464f89779a190d8b2d11d5a4be Mon Sep 17 00:00:00 2001 From: Jef van Schendel Date: Fri, 4 Nov 2011 01:54:41 +0100 Subject: [PATCH] Several small changes (reordering/restyling) for media descriptions and comments --- mediagoblin/static/css/base.css | 6 +++- mediagoblin/static/images/icon_comment.png | Bin 0 -> 283 bytes .../mediagoblin/user_pages/media.html | 28 ++++++------------ 3 files changed, 14 insertions(+), 20 deletions(-) create mode 100644 mediagoblin/static/images/icon_comment.png 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 0000000000000000000000000000000000000000..76860a92bd0ab52278b5e295c6f0e879946397a1 GIT binary patch literal 283 zcmeAS@N?(olHy`uVBq!ia0vp^JV4CN!3HF~3v%Lt6icy_X9x!n)NrJ90QsB+9+AZi z42;qs%-H+g?(yEr+qAXP8FD1G)j8!4co8J;eV zAsQ3+_9^lmau9JzpS3EE(R2OAlU_11jO}W3m=0=gP?;h1X1!A(L)UBBZJe`ZeY6*@ zO?>iX@0kl{uBrGlO#3l+`V!`|Z#*~2G%_+wnw6u)!=Q3HN6Y4kz0;h7$9Wt~omYHX z_j;Ra;F};<}!!PC{xWt~$(69AdxWe)%V literal 0 HcmV?d00001 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") }}
-- 2.25.1