aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authorJef van Schendel <jefvanschendel@gmail.com>2011-06-29 13:53:17 +0200
committerJef van Schendel <jefvanschendel@gmail.com>2011-06-29 13:53:17 +0200
commitd022d9f93f9486d547e3954788c9d881bd62fd2c (patch)
treeeca68d5b4e866f7f5ed5b5e3d8364c8605f5a3e1 /mediagoblin/templates
parenta4e4d775485f51eb4a2c3c30c624bd364b0c6504 (diff)
parentb0d835fcd0f46025eee6c839e9bf26f513543898 (diff)
downloadmediagoblin-d022d9f93f9486d547e3954788c9d881bd62fd2c.tar.lz
mediagoblin-d022d9f93f9486d547e3954788c9d881bd62fd2c.tar.xz
mediagoblin-d022d9f93f9486d547e3954788c9d881bd62fd2c.zip
Merge remote-tracking branch 'gitorious/master'
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/base.html2
-rw-r--r--mediagoblin/templates/mediagoblin/utils/messages.html32
2 files changed, 34 insertions, 0 deletions
diff --git a/mediagoblin/templates/mediagoblin/base.html b/mediagoblin/templates/mediagoblin/base.html
index 2b47a14c..58de7325 100644
--- a/mediagoblin/templates/mediagoblin/base.html
+++ b/mediagoblin/templates/mediagoblin/base.html
@@ -51,6 +51,8 @@
</div>
</div>
{% endblock %}
+
+ {% include "mediagoblin/utils/messages.html" %}
<div class="container_12 mediagoblin_content">
<div class="grid_12">
diff --git a/mediagoblin/templates/mediagoblin/utils/messages.html b/mediagoblin/templates/mediagoblin/utils/messages.html
new file mode 100644
index 00000000..52d03daa
--- /dev/null
+++ b/mediagoblin/templates/mediagoblin/utils/messages.html
@@ -0,0 +1,32 @@
+{#
+# GNU MediaGoblin -- federated, autonomous media hosting
+# Copyright (C) 2011 Free Software Foundation, Inc
+#
+# 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/>.
+#}
+
+{# Display any queued messages #}
+{% set messages = fetch_messages(request) %}
+{% if messages %}
+<div class="container_12 mediagoblin_messages">
+ <div class="grid_12">
+ <ul class="mediagoblin_messages">
+ {% for msg in messages %}
+ <li class="message_{{ msg.level }}">{{ msg.text }}</li>
+ {% endfor %}
+ </ul>
+ </div>
+</div>
+{% endif %}
+