aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authorJessica Tallon <jessica@megworld.co.uk>2014-10-07 10:01:38 +0100
committerJessica Tallon <jessica@megworld.co.uk>2014-10-07 10:01:38 +0100
commit9a1fc423ac298c2ddf078d91ea1302c135285781 (patch)
treec3a42caff8b46803a3af48cdd3afbdeb11427e29 /mediagoblin/templates
parent670cdef79c39262fa0844a91777b8c69751bab01 (diff)
parent2b1916182d36043c2dbce7c2718e8e1d1a976429 (diff)
downloadmediagoblin-9a1fc423ac298c2ddf078d91ea1302c135285781.tar.lz
mediagoblin-9a1fc423ac298c2ddf078d91ea1302c135285781.tar.xz
mediagoblin-9a1fc423ac298c2ddf078d91ea1302c135285781.zip
Merge branch '905-activities'
Add Activity and Generator models which allow for activities to be created. This now works with the feed API.
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/federation/activity.html42
1 files changed, 42 insertions, 0 deletions
diff --git a/mediagoblin/templates/mediagoblin/federation/activity.html b/mediagoblin/templates/mediagoblin/federation/activity.html
new file mode 100644
index 00000000..14377a48
--- /dev/null
+++ b/mediagoblin/templates/mediagoblin/federation/activity.html
@@ -0,0 +1,42 @@
+{#
+# GNU MediaGoblin -- federated, autonomous media hosting
+# Copyright (C) 2014 MediaGoblin contributors. See AUTHORS.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program. If not, see <http://www.gnu.org/licenses/>.
+#}
+{%- extends "mediagoblin/base.html" %}
+
+{% block mediagoblin_head %}
+ {% template_hook("media_head") %}
+{% endblock mediagoblin_head %}
+
+{% block mediagoblin_content %}
+<div class="media_pane eleven columns">
+ <h2 class="media_title">
+ {% if activity.title %}{{ activity.title }}{% endif %}
+ </h2>
+ {% autoescape False %}
+ <p> {{ activity.content }} </p>
+ {% endautoescape %}
+
+ <div class="media_sidebar">
+ {% block mediagoblin_after_added_sidebar %}
+ <a href="{{ activity.url(request) }}"
+ class="button_action"
+ id="button_reportmedia">
+ View {{ activity.get_object.object_type }}
+ </a>
+ {% endblock %}
+ </div>
+{% endblock %} \ No newline at end of file