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