diff --git a/mediagoblin/templates/mediagoblin/root.html b/mediagoblin/templates/mediagoblin/root.html
index e3ca9726..43d973d1 100644
--- a/mediagoblin/templates/mediagoblin/root.html
+++ b/mediagoblin/templates/mediagoblin/root.html
@@ -24,30 +24,21 @@
{% trans %}Explore{% endtrans %}
{% else %}
-
{% trans %}Hi there, media lover! MediaGoblin is...{% endtrans %}
-
- - {% trans %}The perfect place for your media!{% endtrans %}
- - {% trans %}A place for people to collaborate and show off original and derived creations!{% endtrans %}
- - {% trans %}Free, as in freedom. (We’re a GNU project, after all.){% endtrans %}
- - {% trans %}Aiming to make the world a better place through decentralization and (eventually, coming soon!) federation!{% endtrans %}
- - {% trans %}Built for extensibility. (Multiple media types coming soon to the software, including video support!){% endtrans %}
- - {% trans %}Powered by people like you. (You can help us improve this software!){% endtrans %}
-
-
+
{% trans %}Hi there, welcome to this MediaGoblin site!{% endtrans %}
+
{% trans %}Your finest source for all goblin-related media.{% endtrans %}
+
{% trans %}To add your own media, place comments, save your favourites and more, you can log in with your MediaGoblin account.{% endtrans %}
{% if allow_registration %}
-
{% trans %}Excited to join us?{% endtrans %}
+
{% trans %}Don't have one yet? It's easy!{% endtrans %}
{% trans register_url=request.urlgen('mediagoblin.auth.register') -%}
-
+
or
{%- endtrans %}
{% endif %}
-
-
{% endif %}
{% trans %}Most recent media{% endtrans %}
diff --git a/mediagoblin/templates/mediagoblin/user_pages/gallery.html b/mediagoblin/templates/mediagoblin/user_pages/gallery.html
index df931d9c..b066dd71 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/gallery.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/gallery.html
@@ -26,29 +26,30 @@
user=user.username) }}">
{% endblock mediagoblin_head %}
+{% block title %}
+ {%- trans username=user.username -%}
+ {{ username }}'s media
+ {%- endtrans %} — {{ super() }}
+{% endblock %}
+
{% block mediagoblin_content -%}
- {% if user %}
-
- {%- trans username=user.username,
- user_url=request.urlgen(
- 'mediagoblin.user_pages.user_home',
- user=user.username) -%}
- {{ username }}'s media
- {%- endtrans %}
-
+
+ {%- trans username=user.username,
+ user_url=request.urlgen(
+ 'mediagoblin.user_pages.user_home',
+ user=user.username) -%}
+ {{ username }}'s media
+ {%- endtrans %}
+
-
- {{ object_gallery(request, media_entries, pagination) }}
-
+
+ {{ object_gallery(request, media_entries, pagination) }}
+
-
- {% set feed_url = request.urlgen(
- 'mediagoblin.user_pages.atom_feed',
- user=user.username) %}
- {% include "mediagoblin/utils/feed_link.html" %}
-
- {% else %}
- {# This *should* not occur as the view makes sure we pass in a user. #}
-
{% trans %}Sorry, no such user found.{% endtrans %}
- {% endif %}
+
+ {% set feed_url = request.urlgen(
+ 'mediagoblin.user_pages.atom_feed',
+ user=user.username) %}
+ {% include "mediagoblin/utils/feed_link.html" %}
+
{% endblock %}
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html
index 5e1b73de..de5db815 100644
--- a/mediagoblin/templates/mediagoblin/user_pages/media.html
+++ b/mediagoblin/templates/mediagoblin/user_pages/media.html
@@ -20,6 +20,8 @@
{% import "/mediagoblin/utils/wtforms.html" as wtforms_util %}
{% from "mediagoblin/utils/pagination.html" import render_pagination %}
+{% block title %}{{ media.title }} — {{ super() }}{% endblock %}
+
{% block mediagoblin_content %}
{% if media %}
@@ -47,67 +49,61 @@
-
+ {% 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 %}
-
+
+ {% if request.user and comments.count() %}
+
{% trans %}Post a comment{% endtrans %}
{% endif %}
-
{% if comments %}
{% for comment in comments %}
{% set comment_author = comment.author() %}
{% if pagination.active_id == comment._id %}
-
Temporary button holder
+{% trans %}Actions{% endtrans %}
{% set edit_url = request.urlgen('mediagoblin.edit.edit_media', user= media.uploader().username, @@ -155,7 +151,7 @@ {% endif %} {% if app_config['allow_attachments'] - and (media['uploader'] == request.user['_id'] + and (media['uploader'] == request.user._id or request.user['is_admin']) %}
{{ form.confirm }} - {{ _(form.confirm.label.text) }} +
{% trans %}Here's a spot to tell others about yourself.{% endtrans %} @@ -102,7 +113,7 @@ {% else %}
{% trans -%} diff --git a/mediagoblin/templates/mediagoblin/utils/pagination.html b/mediagoblin/templates/mediagoblin/utils/pagination.html index 0df3bfea..84336103 100644 --- a/mediagoblin/templates/mediagoblin/utils/pagination.html +++ b/mediagoblin/templates/mediagoblin/utils/pagination.html @@ -21,7 +21,7 @@ {# only display if {{pagination}} is defined #} {% if pagination and pagination.pages > 1 %} {% if not base_url %} - {% set base_url = request.path_info %} + {% set base_url = request.full_path %} {% endif %} {% if preserve_get_params %} diff --git a/mediagoblin/templates/mediagoblin/utils/tags.html b/mediagoblin/templates/mediagoblin/utils/tags.html index 87e6a85f..b3211bd9 100644 --- a/mediagoblin/templates/mediagoblin/utils/tags.html +++ b/mediagoblin/templates/mediagoblin/utils/tags.html @@ -23,7 +23,7 @@
{{ error }}
{% endfor %} {%- endif %} {% if field.description -%} -{{ _(field.description) }}
{%- endif %}