equal
deleted
inserted
replaced
8 {% endblock %} |
8 {% endblock %} |
9 |
9 |
10 {% block main %} |
10 {% block main %} |
11 {% get_local_perm request can_manage_workspace as can_manage_workspace %} |
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 %} |
12 {% get_local_perm request can_view_unapproved_comment as can_view_unapproved_comment %} |
|
13 {% get_local_text_perm request text can_manage_text as can_manage_text %} |
13 |
14 |
14 <script type="text/javascript"> |
15 <script type="text/javascript"> |
15 <!-- |
16 <!-- |
16 tb_conf['current_tab'] = 'embed'; |
17 tb_conf['current_tab'] = 'embed'; |
17 --> |
18 --> |
20 <div id="text_embed" class="tab-meta"> |
21 <div id="text_embed" class="tab-meta"> |
21 |
22 |
22 <form id="embed" enctype="multipart/form-data" action="." method="post"> |
23 <form id="embed" enctype="multipart/form-data" action="." method="post"> |
23 |
24 |
24 <h2 class="title_first">{% blocktrans %}Embed text{% endblocktrans %}</h2> |
25 <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 {% 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 %} |
26 (<a title="{% blocktrans %}Help{% endblocktrans %}" target="_blank" href="{% url help %}#embed">?</a>) |
27 (<a title="{% blocktrans %}Help{% endblocktrans %}" target="_blank" href="{% url help %}#embed">?</a>) |
27 <br/> |
28 <br/> |
28 <br/> |
29 <br/> |
29 <input style="width:100%;background-color:#DDDDDD;" value="{{ embed_code }}" type="text" readonly="true"></input> |
30 <input style="width:100%;background-color:#DDDDDD;" value="{{ embed_code }}" type="text" readonly="true"></input> |
30 </textarea> |
31 </textarea> |
|
32 |
31 {% if not anonymous_can_view_text %} |
33 {% if not anonymous_can_view_text %} |
|
34 {% if can_manage_text %} |
32 <br/> |
35 <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> |
36 <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> |
|
37 {% endif %} |
34 {% endif %} |
38 {% endif %} |
35 </form> |
39 </form> |
36 </div> |
40 </div> |
37 |
41 |
38 |
42 |