X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=mediagoblin%2Ftemplates%2Fmediagoblin%2Fuser_pages%2Fmedia.html;h=a9c71c8e1f1e17127bfb7102b121ca42f4a444e6;hb=330f409ee91ad142a70617cf05a68916ef6c591e;hp=58b9cdce1808fc7a0742373e904c5d5ce1617467;hpb=6432755db3e5bcb2cdfa7720b5d14bfaaebc57be;p=mediagoblin.git diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 58b9cdce..a9c71c8e 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -25,27 +25,35 @@ {% block mediagoblin_head %} + + + + {% template_hook("location_head") %} {% template_hook("media_head") %} {% endblock mediagoblin_head %} - {% block mediagoblin_content %} -

+

+

{%- trans user_url=request.urlgen( 'mediagoblin.user_pages.user_home', - user=media.get_uploader.username), - username=media.get_uploader.username -%} + user=media.get_actor.username), + username=media.get_actor.username -%} ❖ Browsing media by {{username}} {%- endtrans -%}

- {% include "mediagoblin/utils/prev_next.html" %} -
-
- {% block mediagoblin_media %} +
+ {% include "mediagoblin/utils/prev_next.html" %} +
+
+
+ {% block mediagoblin_media %} +
{% set display_media = request.app.public_store.file_url( media.get_display_media()[1]) %} {# if there's a medium file size, that means the medium size @@ -53,7 +61,7 @@ #} {% if media.media_files.has_key('medium') %} + media.media_files['original']) }}" class="lightbox"> {% trans media_title=media.title -%}
@@ -65,48 +73,62 @@
                alt= {% endif %} - {% endblock %} -
+
+ {% endblock %} + + {% if request.user and request.user.has_privilege('commenter') %} +
+ {% if app_config['allow_comments'] %} + + {% trans %}Add a comment{% endtrans %} + + {% include "mediagoblin/utils/comment-subscription.html" %} + + {% endif %} {% if request.user %} -
{{ wtforms_util.render_divs(comment_form) }}
{{ csrf_token }}
+ +
+
{% endif %} {{ render_pagination(request, pagination, media.url_for_self(request.urlgen)) }} + {% else %} +
{% endif %}
-
- {% trans date=media.created.strftime("%Y-%m-%d"), formatted_time=timesince(media.created) -%} -

Added on

-

{{ formatted_time }}

- {%- endtrans %} + +
+ + +
+

{% trans %}Added{% endtrans %}

+

+ {%- trans formatted_time=timesince(media.created) -%} + {{ formatted_time }} ago + {%- endtrans -%} +

+ + {% block mediagoblin_after_added_sidebar %} + {% endblock %} + {% if media.tags %} {% include "mediagoblin/utils/tags.html" %} {% endif %} {% include "mediagoblin/utils/collections.html" %} + {% if app_config.allow_reporting %} + {% include "mediagoblin/utils/report.html" %} + {% endif %} + {% include "mediagoblin/utils/license.html" %} {% include "mediagoblin/utils/exif.html" %} - + {%- if media.attachment_files|count %}

{% trans %}Attachments{% endtrans %}

+ {%- set model = media %} + {% template_hook("location_info") %} + {% template_hook("media_sideinfo") %} + +
+
{% endblock %}