Changing translations to say "amount of time ago", basically
[mediagoblin.git] / mediagoblin / templates / mediagoblin / user_pages / gallery.html
1 {#
2 # GNU MediaGoblin -- federated, autonomous media hosting
3 # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS.
4 #
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Affero General Public License for more details.
14 #
15 # You should have received a copy of the GNU Affero General Public License
16 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 #}
18 {% extends "mediagoblin/base.html" %}
19
20 {% from "mediagoblin/utils/object_gallery.html" import object_gallery %}
21
22 {% block mediagoblin_head %}
23 <link rel="alternate" type="application/atom+xml"
24 href="{{ request.urlgen(
25 'mediagoblin.user_pages.atom_feed',
26 user=user.username) }}">
27 {% endblock mediagoblin_head %}
28
29 {% block title %}
30 {%- trans username=user.username -%}
31 {{ username }}'s media
32 {%- endtrans %} &mdash; {{ super() }}
33 {% endblock %}
34
35 {% block mediagoblin_content -%}
36 <h1>
37 {% if tag %}
38 {%- trans username=user.username,
39 user_url=request.urlgen(
40 'mediagoblin.user_pages.user_home',
41 user=user.username),
42 tag_url=request.urlgen(
43 'mediagoblin.listings.tags_listing',
44 tag=tag) -%}
45 <a href="{{ user_url }}">{{ username }}</a>'s media with tag <a href="{{ tag_url }}">{{ tag }}</a>
46 {%- endtrans %}
47 {% else %}
48 {%- trans username=user.username,
49 user_url=request.urlgen(
50 'mediagoblin.user_pages.user_home',
51 user=user.username) -%}
52 <a href="{{ user_url }}">{{ username }}</a>'s media
53 {%- endtrans %}
54 {% endif %}
55 </h1>
56
57 {{ object_gallery(request, media_entries, pagination) }}
58
59 {% set feed_url = request.urlgen('mediagoblin.user_pages.atom_feed',
60 user=user.username) %}
61 {% include "mediagoblin/utils/feed_link.html" %}
62
63 {% endblock %}