diff -r 381538cb3a8b -r 0a610af4033f src/cm/templates/site/text_embed.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/templates/site/text_embed.html Mon Dec 14 13:54:47 2009 +0100 @@ -0,0 +1,40 @@ +{% extends "site/layout/base_text.html" %} +{% load com %} +{% load i18n %} +{% load local_perms %} + +{% block title %} +{% blocktrans %}Text notifications{% endblocktrans %} +{% endblock %} + +{% block main %} +{% get_local_perm request can_manage_workspace as can_manage_workspace %} +{% get_local_perm request can_view_unapproved_comment as can_view_unapproved_comment %} + + + +
+ +
+ +

{% blocktrans %}Embed text{% endblocktrans %}

+{% blocktrans %}Copy this code into your site to display text with comments. Users will also be able to add comments from your site depending an anonymous users' roles.{% endblocktrans %} +(?) +
+
+ + +{% if not anonymous_can_view_text %} +
+{% blocktrans %}Warning:{% endblocktrans %}{% blocktrans %}You won't successfully embed the text before you give anonymous users a role allowing them to view the text.{% endblocktrans %} +{% endif %} +
+
+ + +{% endblock %} +