src/cm/templates/site/text_notifications.html
changeset 2 bc4b7b630f6a
parent 0 40c8f766c9b8
child 3 37e2aafd30d3
equal deleted inserted replaced
1:089bd48ac50e 2:bc4b7b630f6a
    68     });
    68     });
    69 }) ;
    69 }) ;
    70 --> 
    70 --> 
    71 </script>
    71 </script>
    72 
    72 
    73 <h2>{% blocktrans %}Embed the text{% endblocktrans %}</h2>
    73 <h2>{% blocktrans %}Embed text{% endblocktrans %}</h2>
       
    74 {% 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 %}
    74 (<a title="{% blocktrans %}Help{% endblocktrans %}" target="_blank" href="{% url help %}#embed">?</a>)
    75 (<a title="{% blocktrans %}Help{% endblocktrans %}" target="_blank" href="{% url help %}#embed">?</a>)
    75 <br />
       
    76 {% 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 %}
       
    77 <br/>
    76 <br/>
    78 <br/>
    77 <br/>
    79 <textarea rows="4" cols="80" readonly="true">
    78 <input style="width:100%;background-color:#DDDDDD;" value="{{ embed_code }}" type="text" readonly="true"></input>
    80 <iframe frameborder="0" src="{{ SITE_URL }}{% url text-view-comments-frame text.key %}" style="height: 166px; width: 99.9%; position: relative; top: 0px;"> 
       
    81 </iframe>
       
    82 </textarea>
    79 </textarea>
    83 {% if not anonymous_can_view_text %}
    80 {% if not anonymous_can_view_text %}
    84 <br/>
    81 <br/>
    85 {% url text-share text.key as text_users_link %} 
    82 {% url text-share text.key as text_users_link %} 
    86 <span style="color:#F00;">{% blocktrans %}Warning:{% endblocktrans %}</span>{% blocktrans %}You won't be able to successfully embed the text before you <a href='{{ text_users_link }}'>give anonymous users</a> a role allowing them to view the text{% endblocktrans %}</span>
    83 <span style="color:#F00;">{% blocktrans %}Warning:{% endblocktrans %}</span>{% blocktrans %}You won't successfully embed the text before you <a href='{{ text_users_link }}'>give anonymous users</a> a role allowing them to view the text{% endblocktrans %}</span>
    87 {% endif %}
    84 {% endif %}
    88 </form>
    85 </form>
    89 </div>
    86 </div>
    90 
    87 
    91 
    88