src/cm/templates/site/text_embed.html
changeset 63 0a610af4033f
child 126 b79d7ad83a8d
equal deleted inserted replaced
62:381538cb3a8b 63:0a610af4033f
       
     1 {% extends "site/layout/base_text.html" %}
       
     2 {% load com %}
       
     3 {% load i18n %}
       
     4 {% load local_perms %}
       
     5 
       
     6 {% block title %}
       
     7 {% blocktrans %}Text notifications{% endblocktrans %}
       
     8 {% endblock %}
       
     9 
       
    10 {% block main %}
       
    11 {% get_local_perm request can_manage_workspace as can_manage_workspace %}
       
    12 {% get_local_perm request can_view_unapproved_comment as can_view_unapproved_comment %}
       
    13 
       
    14 <script type="text/javascript">
       
    15 <!--
       
    16 tb_conf['current_tab'] = 'embed';
       
    17 -->
       
    18 </script>
       
    19 
       
    20 <div id="text_embed" class="tab-meta">   
       
    21 
       
    22 <form id="embed" enctype="multipart/form-data" action="." method="post">
       
    23 
       
    24 <h2 class="title_first">{% blocktrans %}Embed text{% endblocktrans %}</h2>
       
    25 {% 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 %}
       
    26 (<a title="{% blocktrans %}Help{% endblocktrans %}" target="_blank" href="{% url help %}#embed">?</a>)
       
    27 <br/>
       
    28 <br/>
       
    29 <input style="width:100%;background-color:#DDDDDD;" value="{{ embed_code }}" type="text" readonly="true"></input>
       
    30 </textarea>
       
    31 {% if not anonymous_can_view_text %}
       
    32 <br/>
       
    33 <span style="color:#F00;">{% blocktrans %}Warning:{% endblocktrans %}</span>{% blocktrans %}You won't successfully embed the text before you give anonymous users a role allowing them to view the text.{% endblocktrans %}</span>
       
    34 {% endif %}
       
    35 </form>
       
    36 </div>
       
    37 
       
    38 
       
    39 {% endblock %}
       
    40