I just added the attribution for the clipboard image to the code.
[mediagoblin:mediagoblin.git] / mediagoblin / templates / mediagoblin / admin / report.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 {%- block mediagoblin_content %}
21 {% if not report %}
22   Sorry, no such report found.
23 {% else %}
24   <h2> Report #{{ report.id }}</h2>
25   {% if comment %}
26     Reported comment:
27     {% set reported_user = comment.get_author %}
28     <div id="comment-{{ comment.id }}"
29         class="comment_wrapper">
30       <div class="comment_author">
31         <img src="{{ request.staticdirect('/images/icon_comment.png') }}" />
32             <a href="{{ request.urlgen('mediagoblin.admin.users_detail',
33                             user=comment.get_author.username) }}"
34                class="comment_authorlink">
35           {{- reported_user.username -}}
36         </a>
37         <a href="{{ request.urlgen('mediagoblin.user_pages.media_home.view_comment',
38                         comment=comment.id,
39                         user=comment.get_media_entry.get_uploader.username,
40                         media=comment.get_media_entry.slug_or_id) }}#comment"
41            class="comment_whenlink">
42           <span title='{{- comment.created.strftime("%I:%M%p %Y-%m-%d") -}}'>
43             {%- trans formatted_time=timesince(comment.created) -%}
44               {{ formatted_time }} ago
45             {%- endtrans -%}
46           </span></a>:
47       </div>
48       <div class=comment_content>
49         {% autoescape False %}
50           {{ comment.content_html }}
51         {% endautoescape %}
52       </div>
53     </div>
54   {% elif media_entry %}
55     <div class="media_thumbnail">
56       <a href="request.urlgen('mediagoblin.user_pages.media_home'),
57                                                               user=media_entry.get_uploader.username,
58                                                               media=media_entry.slug_or_id)"><img src="{{ media_entry.thumb_url}}"/></a>
59       <a href="request.urlgen('mediagoblin.user_pages.media_home'),
60                     user=media_entry.get_uploader.username,
61                     media=media_entry.slug_or_id)" class=thumb_entry_title>{{ media_entry.title }}</a>
62     </div>
63     <div class=clear></div>
64   {% endif %}
65   Reason for report:
66   <div id="report-{{ report.id }}"
67        class="report_wrapper">
68     <div class="report_author">
69         <img src="{{ request.staticdirect('/images/icon_clipboard.png') }}" 
70              alt="Under a GNU LGPL v.3 or Creative Commons BY-SA 3.0 license. Distributed by the GNOME project http://www.gnome.org" />
71         <a href="{{ request.urlgen('mediagoblin.admin.users_detail',
72                         user=report.reporter.username) }}"
73            class="report_authorlink">
74         {{- report.reporter.username -}}
75         </a>
76         <a href="{{ request.urlgen('mediagoblin.admin.reports_detail',
77                         report_id=report.id) }}"
78            class="report_whenlink">
79           <span title='{{- report.created.strftime("%I:%M%p %Y-%m-%d") -}}'>
80             {%- trans formatted_time=timesince(report.created) -%}
81               {{ formatted_time }} ago
82             {%- endtrans -%}
83           </span>
84         </a>
85     </div>
86     <div class="report_content">
87       {{ report.report_content }}
88     </div>
89   </div>
90 {% endif %}
91 {% endblock %}