# HG changeset patch # User gibus # Date 1358756992 -3600 # Node ID 5a8e8313289849425ceffc38a523cff13a9a5945 # Parent 65baad712962f3e407bed24413451688224a24a6 Preselect embeded code to copy. diff -r 65baad712962 -r 5a8e83132898 src/cm/templates/site/text_embed.html --- a/src/cm/templates/site/text_embed.html Mon Jan 14 10:43:21 2013 +0100 +++ b/src/cm/templates/site/text_embed.html Mon Jan 21 09:29:52 2013 +0100 @@ -4,7 +4,7 @@ {% load local_perms %} {% block title %} -{% blocktrans %}Text notifications{% endblocktrans %} +{% blocktrans %}Embed text{% endblocktrans %} {% endblock %} {% block main %} @@ -15,6 +15,10 @@ @@ -23,17 +27,13 @@

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

-{% blocktrans %}Copy this code into your site to display text with comments.{% endblocktrans %} {% blocktrans %}Users will also be able to add comments from your site depending on anonymous users' roles.{% endblocktrans %} -(?) -
-
- - +

{% blocktrans %}Copy this code into your site to display text with comments.{% endblocktrans %} {% blocktrans %}Users will also be able to add comments from your site depending on anonymous users' roles.{% endblocktrans %} +(?)

+ {% if not anonymous_can_view_text %} {% if can_manage_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 %} +

{% 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 %} {% endif %}