| author | Simon Descarpentries <sid@sopinspace.com> |
| Mon, 21 Oct 2013 16:50:41 +0200 | |
| changeset 554 | 8e116b8ddbc3 |
| parent 553 | bf26fb47a14c |
| parent 552 | ee0c833d1969 |
| child 558 | 5ba711a2bd06 |
| permissions | -rw-r--r-- |
| 0 | 1 |
{% load com %} |
2 |
{% load i18n %} |
|
3 |
||
4 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
5 |
<html> |
|
6 |
||
7 |
<head> |
|
8 |
||
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
9 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
| 0 | 10 |
|
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
11 |
{% include "site/layout/req_yui.html" %} |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
12 |
|
| 0 | 13 |
<script type="text/javascript"> |
14 |
<!-- |
|
|
444
9246b0057a75
Exports to epub only with pandoc 1.9 and upper versions.
gibus
parents:
443
diff
changeset
|
15 |
sv_media_url = "{{ CM_MEDIA_PREFIX|escapejs}}" ; |
|
9246b0057a75
Exports to epub only with pandoc 1.9 and upper versions.
gibus
parents:
443
diff
changeset
|
16 |
sv_pandoc_version = "{{ PANDOC_VERSION|escapejs}}" ; |
| 0 | 17 |
--> |
18 |
</script> |
|
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
19 |
|
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
20 |
{% include "site/layout/req_jquery.html" %} |
| 0 | 21 |
|
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
22 |
<link type="text/css" href="{{ CM_MEDIA_PREFIX }}css/site/text_view_frame.css" rel="stylesheet" /> |
| 0 | 23 |
|
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
24 |
<script type="text/javascript" src="{% if request.GET.prefix %}{{ request.GET.prefix }}{% endif %}{% url django.views.i18n.javascript_catalog %}"></script> |
| 0 | 25 |
{% if CLIENT_DEBUG %} |
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
26 |
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/client/f_message.js"></script> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
27 |
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/client/f_printDialog.js"></script> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
28 |
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/site/f_text_view_frame.js"></script> |
| 0 | 29 |
{% else %} |
| 554 | 30 |
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/client/f_client-min.js?1382366973"></script> |
| 0 | 31 |
{% endif %} |
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
32 |
<style type="text/css"> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
33 |
/* |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
34 |
* TAB-THEME ADJUSTMENTS |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
35 |
*/ |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
36 |
.ui-tabs-nav li { |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
37 |
white-space: nowrap; |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
38 |
} |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
39 |
.ui-tabs-nav li a { |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
40 |
font-size: 1em !important; |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
41 |
padding: 4px 1.5ex 3px !important; |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
42 |
} |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
43 |
.ui-tabs-panel { |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
44 |
font-size: 1em !important; |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
45 |
padding: 8px 1em !important; |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
46 |
} |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
47 |
|
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
48 |
</style> |
| 0 | 49 |
|
50 |
</head> |
|
51 |
<BODY> |
|
|
291
7aec57e4738f
add prefix to use external caller as proxy (calls via api)
raph
parents:
277
diff
changeset
|
52 |
|
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
53 |
<span id="add_comment_btn" class="initially_hidden" title="{% blocktrans %}add a comment{% endblocktrans %}"> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
54 |
<img style="vertical-align: middle;" src="{{ CM_MEDIA_PREFIX }}img/add_plus.png" alt="{% blocktrans %}add a comment{% endblocktrans %}"/> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
55 |
<span>{% blocktrans %}comment{% endblocktrans %}</span> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
56 |
</span> |
| 0 | 57 |
<!-- cf.http://layout.jquery-dev.net/download/example.html --> |
58 |
<!-- TODO check height 600 ... --> |
|
59 |
<DIV id="outer-north" class="ui-layout-north"> |
|
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
60 |
<div style="margin-top:4px;" id="c_slider"></div> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
61 |
</DIV> |
|
553
bf26fb47a14c
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
Simon Descarpentries <sid@sopinspace.com>
parents:
545
diff
changeset
|
62 |
<DIV id="outer-center" class="ui-layout-center" > |
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
63 |
<DIV class="inner-north initially_hidden" > |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
64 |
<ul id="header-nobck"> |
|
553
bf26fb47a14c
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
Simon Descarpentries <sid@sopinspace.com>
parents:
545
diff
changeset
|
65 |
<li><a href="#c_filter">{% blocktrans %}Filter comments{% endblocktrans %}</a></li> |
|
bf26fb47a14c
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
Simon Descarpentries <sid@sopinspace.com>
parents:
545
diff
changeset
|
66 |
<li><a href="#c_preferences">{% blocktrans %}Preferences{% endblocktrans %}</a></li> |
|
bf26fb47a14c
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
Simon Descarpentries <sid@sopinspace.com>
parents:
545
diff
changeset
|
67 |
<li><a href="#c_text_preferences">{% blocktrans %}Text preferences{% endblocktrans %}</a></li> |
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
68 |
</ul> |
|
553
bf26fb47a14c
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
Simon Descarpentries <sid@sopinspace.com>
parents:
545
diff
changeset
|
69 |
<div id="c_filter" class="c_tab"></div> |
|
bf26fb47a14c
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
Simon Descarpentries <sid@sopinspace.com>
parents:
545
diff
changeset
|
70 |
<div id="c_preferences" class="c_tab"></div> |
|
bf26fb47a14c
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
Simon Descarpentries <sid@sopinspace.com>
parents:
545
diff
changeset
|
71 |
<div id="c_text_preferences" class="c_tab"></div> |
|
bf26fb47a14c
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
Simon Descarpentries <sid@sopinspace.com>
parents:
545
diff
changeset
|
72 |
</DIV> |
|
bf26fb47a14c
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
Simon Descarpentries <sid@sopinspace.com>
parents:
545
diff
changeset
|
73 |
<div id="throbber" style="visibility: visible; position: absolute; top: 4%; left: 40%"> |
|
bf26fb47a14c
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
Simon Descarpentries <sid@sopinspace.com>
parents:
545
diff
changeset
|
74 |
<img alt="throbber" src="{{ CM_MEDIA_PREFIX }}img/throbber.gif" /><br />{% blocktrans %}Loading text…{% endblocktrans %} |
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
75 |
</div> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
76 |
{% url text-view-comments-version text.key text_version.key as frame_url %} |
|
553
bf26fb47a14c
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
Simon Descarpentries <sid@sopinspace.com>
parents:
545
diff
changeset
|
77 |
<iframe id="text_view_comments" name="text_view_comments" frameborder="0" onload="$('#throbber').hide ();" width="100%" height="100%" seamless="seamless" class="ui-layout-center" |
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
78 |
src="{% if request.GET.prefix %}{{ request.GET.prefix }}{% endif %}{{ frame_url }}{{ frame_url|url_args }}{{ request.GET.urlencode }}"></iframe> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
79 |
|
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
80 |
<!-- exemple de passage d'arguments <iframe id="text_view_comments" name="text_view_comments" class="ui-layout-center" |
|
553
bf26fb47a14c
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
Simon Descarpentries <sid@sopinspace.com>
parents:
545
diff
changeset
|
81 |
width="100%" height="100%" frameborder="0" scrolling="auto" src="{% url text-view-comments text.key %}?filter_name=aa&filter_tag=toto"></iframe> --> |
|
bf26fb47a14c
To allow scrolling in Safari mobile, we set the content of text_view_comments frame in a jQuery UI layout.
Simon Descarpentries <sid@sopinspace.com>
parents:
545
diff
changeset
|
82 |
|
| 0 | 83 |
</DIV> |
84 |
<div style="display: none;"> |
|
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
85 |
<div id="dialog_h"></div> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
86 |
<div id="dialog_print_export" title=""> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
87 |
<!-- <p id="validateTips">All form fields are required.</p> --> |
| 230 | 88 |
|
89 |
{% url text-export text.key "FoRmAt" "DoWnLoAd" "WhIcHCoMmEnT" "WiThCoLoR" as export_url %} |
|
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
90 |
<form name="print_export_form" id="print_export_form" method="post" action="" target_action="{% if request.GET.prefix %}{{ request.GET.prefix }}{% else %}{% endif %}{{ export_url }}{{ export_url|url_args }}{{ request.GET.urlencode }}"> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
91 |
<fieldset> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
92 |
<label for="p_comments">{% blocktrans %}Which comments?{% endblocktrans %}</label> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
93 |
<select name="p_comments" id="p_comments" /> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
94 |
</select> |
| 0 | 95 |
|
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
96 |
<label id="how" for="p_method"></label> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
97 |
<select name="p_method" id="p_method"/> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
98 |
</select> |
| 0 | 99 |
|
|
536
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
100 |
<label id="p_color_label" for="p_color">{% blocktrans %}How should comments' scope be shown in text?{% endblocktrans %}</label> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
101 |
<select name="p_color" id="p_color"/> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
102 |
</select> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
103 |
</fieldset> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
104 |
|
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
105 |
<input type="hidden" name="filteredIds" id="filteredIds" value="" /> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
106 |
<input type="hidden" name="print_export_action" id="print_export_action" value="" /> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
107 |
</form> |
|
0c625ce49a81
- updating jQuery (1.3.2 -> 1.10.2), jQuery UI, jQuery modules
Simon Descarpentries <sid@sopinspace.com>
parents:
534
diff
changeset
|
108 |
</div> |
| 0 | 109 |
</div> |
110 |
</BODY> |
|
| 375 | 111 |
</html> |