Commit | Line | Data |
---|---|---|
d49cf0e2 CFD |
1 | {# |
2 | # GNU MediaGoblin -- federated, autonomous media hosting | |
cf29e8a8 | 3 | # Copyright (C) 2011, 2012 MediaGoblin contributors. See AUTHORS. |
d49cf0e2 CFD |
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 | ||
38bf03c6 CAW |
20 | {% from "mediagoblin/utils/object_gallery.html" import object_gallery %} |
21 | ||
d49cf0e2 CFD |
22 | {% block mediagoblin_head %} |
23 | <link rel="alternate" type="application/atom+xml" | |
24 | href="{{ request.urlgen( | |
4765a52b | 25 | 'mediagoblin.user_pages.atom_feed', |
d49cf0e2 CFD |
26 | user=user.username) }}"> |
27 | {% endblock mediagoblin_head %} | |
28 | ||
ab566890 CAW |
29 | {% block title %} |
30 | {%- trans username=user.username -%} | |
31 | {{ username }}'s media | |
32 | {%- endtrans %} — {{ super() }} | |
33 | {% endblock %} | |
34 | ||
d49cf0e2 | 35 | {% block mediagoblin_content -%} |
7fc25d27 | 36 | <h1> |
b9d1d137 CAW |
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 %} | |
7fc25d27 | 55 | </h1> |
d49cf0e2 | 56 | |
3ea6a305 | 57 | {{ object_gallery(request, media_entries, pagination) }} |
f2c0bf3e | 58 | |
3ea6a305 JS |
59 | {% set feed_url = request.urlgen('mediagoblin.user_pages.atom_feed', |
60 | user=user.username) %} | |
61 | {% include "mediagoblin/utils/feed_link.html" %} | |
62 | ||
d49cf0e2 | 63 | {% endblock %} |