| author | gibus |
| Wed, 11 Sep 2013 23:13:01 +0200 | |
| changeset 532 | 0bad3613f59d |
| parent 529 | 5eeed336b992 |
| child 534 | 2ee166f109ae |
| permissions | -rw-r--r-- |
| 0 | 1 |
{% load com %} |
2 |
{% load i18n %} |
|
3 |
||
4 |
<!-- TODO factorize with base.html for style and jquery etc... --> |
|
5 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|
6 |
<html> |
|
7 |
||
8 |
<head> |
|
9 |
||
10 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|
11 |
||
12 |
<!-- TODO factorize with base.html etc...--> |
|
|
532
0bad3613f59d
Reverse to YUI 3.0.0 since with YUI.3.10.3, comment content including words 'paragraph' or 'section' do not show up on Firefox, this is weird and has to be investigated.
gibus
parents:
529
diff
changeset
|
13 |
<link rel="stylesheet" type="text/css" href="{{ CM_MEDIA_PREFIX }}js/lib/yui/{{ YUI_VERSION }}/build/cssreset/reset-min.css"> |
|
0bad3613f59d
Reverse to YUI 3.0.0 since with YUI.3.10.3, comment content including words 'paragraph' or 'section' do not show up on Firefox, this is weird and has to be investigated.
gibus
parents:
529
diff
changeset
|
14 |
<link rel="stylesheet" type="text/css" href="{{ CM_MEDIA_PREFIX }}js/lib/yui/{{ YUI_VERSION }}/build/cssfonts/fonts-min.css"> |
|
0bad3613f59d
Reverse to YUI 3.0.0 since with YUI.3.10.3, comment content including words 'paragraph' or 'section' do not show up on Firefox, this is weird and has to be investigated.
gibus
parents:
529
diff
changeset
|
15 |
<link rel="stylesheet" type="text/css" href="{{ CM_MEDIA_PREFIX }}js/lib/yui/{{ YUI_VERSION }}/build/cssbase/base-min.css"> |
| 0 | 16 |
|
17 |
<!-- TODO factorize with base.html for jquery etc... --> |
|
18 |
<script type="text/javascript"> |
|
19 |
<!-- |
|
|
444
9246b0057a75
Exports to epub only with pandoc 1.9 and upper versions.
gibus
parents:
443
diff
changeset
|
20 |
sv_media_url = "{{ CM_MEDIA_PREFIX|escapejs}}" ; |
|
9246b0057a75
Exports to epub only with pandoc 1.9 and upper versions.
gibus
parents:
443
diff
changeset
|
21 |
sv_pandoc_version = "{{ PANDOC_VERSION|escapejs}}" ; |
| 0 | 22 |
--> |
23 |
</script> |
|
| 160 | 24 |
<link type="text/css" href="{{ CM_MEDIA_PREFIX }}js/lib/jquery/css/smoothness/jquery-ui-1.7.2.custom.css" rel="stylesheet" /> |
25 |
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/lib/jquery/js/jquery-1.3.2.min.js"></script> |
|
26 |
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/lib/jquery/js/jquery-ui-1.7.2.custom.min.js"></script> |
|
27 |
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/lib/jquery/js/layout/jquery.layout.min.js"></script> |
|
28 |
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/lib/jquery/js/cookie/jquery.cookie.js"></script><!-- not minified --> |
|
| 0 | 29 |
|
| 160 | 30 |
<!-- <script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/lib/bgiframe_2.1.1/jquery.bgiframe.min.js"></script> --> |
| 0 | 31 |
|
| 160 | 32 |
<link type="text/css" href="{{ CM_MEDIA_PREFIX }}css/site/text_view_frame.css" rel="stylesheet" /> |
| 0 | 33 |
|
|
291
7aec57e4738f
add prefix to use external caller as proxy (calls via api)
raph
parents:
277
diff
changeset
|
34 |
<script type="text/javascript" src="{% if request.GET.prefix %}{{ request.GET.prefix }}{% endif %}{% url django.views.i18n.javascript_catalog %}"></script> |
| 0 | 35 |
{% if CLIENT_DEBUG %} |
| 160 | 36 |
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/client/f_message.js"></script> |
37 |
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/client/f_printDialog.js"></script> |
|
38 |
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/site/f_text_view_frame.js"></script> |
|
| 0 | 39 |
{% else %} |
|
532
0bad3613f59d
Reverse to YUI 3.0.0 since with YUI.3.10.3, comment content including words 'paragraph' or 'section' do not show up on Firefox, this is weird and has to be investigated.
gibus
parents:
529
diff
changeset
|
40 |
<script type="text/javascript" src="{{ CM_MEDIA_PREFIX }}js/client/f_client-min.js?1378933841"></script> |
| 0 | 41 |
{% endif %} |
42 |
<style type="text/css"> |
|
43 |
/* |
|
44 |
* TAB-THEME ADJUSTMENTS |
|
45 |
*/ |
|
46 |
.ui-tabs-nav li { |
|
47 |
white-space: nowrap; |
|
48 |
} |
|
49 |
.ui-tabs-nav li a { |
|
50 |
font-size: 1em !important; |
|
51 |
padding: 4px 1.5ex 3px !important; |
|
52 |
} |
|
53 |
.ui-tabs-panel { |
|
54 |
font-size: 1em !important; |
|
55 |
padding: 8px 1em !important; |
|
56 |
} |
|
57 |
</style> |
|
| 386 | 58 |
<script type="text/javascript"> |
59 |
<!-- |
|
60 |
function iframe_onload() { |
|
61 |
var throbber = document.getElementById('throbber'); |
|
62 |
throbber.style.display = "none"; |
|
63 |
} |
|
64 |
--> |
|
65 |
</script> |
|
| 0 | 66 |
|
67 |
</head> |
|
68 |
<BODY> |
|
|
291
7aec57e4738f
add prefix to use external caller as proxy (calls via api)
raph
parents:
277
diff
changeset
|
69 |
|
|
391
284692d9d504
add_comment_button should be hidden with initially_hidden css class if can_create_comment permission is false => do not set this css property directly on html element.
gibus
parents:
390
diff
changeset
|
70 |
<span id="add_comment_btn" class="initially_hidden" title="{% blocktrans %}add a comment{% endblocktrans %}"> |
| 376 | 71 |
<img style="vertical-align: middle;" src="{{ CM_MEDIA_PREFIX }}img/add_plus.png" alt="{% blocktrans %}add a comment{% endblocktrans %}"/> |
| 375 | 72 |
<span>{% blocktrans %}comment{% endblocktrans %}</span> |
| 380 | 73 |
</span> |
| 0 | 74 |
<!-- cf.http://layout.jquery-dev.net/download/example.html --> |
75 |
<!-- TODO check height 600 ... --> |
|
76 |
<DIV id="outer-north" class="ui-layout-north"> |
|
77 |
<div style="margin-top:4px;" id="c_slider"></div> |
|
78 |
</DIV> |
|
79 |
<DIV class="outer-center" > |
|
80 |
<DIV class="inner-north initially_hidden" > |
|
81 |
<ul id="header-nobck"> |
|
82 |
<li><a href="#c_filter">{% blocktrans %}Filter comments{% endblocktrans %}</a></li> |
|
83 |
<li><a href="#c_preferences">{% blocktrans %}Preferences{% endblocktrans %}</a></li> |
|
84 |
<li><a href="#c_text_preferences">{% blocktrans %}Text preferences{% endblocktrans %}</a></li> |
|
85 |
</ul> |
|
86 |
<div id="c_filter" class="c_tab"> |
|
87 |
</div> |
|
88 |
<div id="c_preferences" class="c_tab"> |
|
89 |
</div> |
|
90 |
<div id="c_text_preferences" class="c_tab"> |
|
91 |
</div> |
|
92 |
</DIV> |
|
| 388 | 93 |
<div id="throbber" style="visibility: visible; position: absolute; top: 4%; left: 40%"> |
| 386 | 94 |
<img alt="throbber" src="{{ CM_MEDIA_PREFIX }}img/throbber.gif" /><br />{% blocktrans %}Loading text…{% endblocktrans %} |
95 |
</div> |
|
| 230 | 96 |
{% url text-view-comments-version text.key text_version.key as frame_url %} |
97 |
<iframe id="text_view_comments" name="text_view_comments" class="ui-layout-center" |
|
| 0 | 98 |
width="100%" height="100%" frameborder="0" scrolling="auto" |
|
291
7aec57e4738f
add prefix to use external caller as proxy (calls via api)
raph
parents:
277
diff
changeset
|
99 |
src="{% if request.GET.prefix %}{{ request.GET.prefix }}{% else %}{% endif %}{{ frame_url }}{{ frame_url|url_args }}{{ request.GET.urlencode }}"></iframe> |
|
7aec57e4738f
add prefix to use external caller as proxy (calls via api)
raph
parents:
277
diff
changeset
|
100 |
|
| 0 | 101 |
|
102 |
<!-- exemple de passage d'arguments <iframe id="text_view_comments" name="text_view_comments" class="ui-layout-center" |
|
103 |
width="100%" height="100%" frameborder="0" scrolling="auto" |
|
104 |
src="{% url text-view-comments text.key %}?filter_name=aa&filter_tag=toto"></iframe> |
|
105 |
--> |
|
106 |
</DIV> |
|
107 |
<div style="display: none;"> |
|
108 |
<div id="dialog_h"></div> |
|
109 |
<div id="dialog_print_export" title=""> |
|
110 |
<!-- <p id="validateTips">All form fields are required.</p> --> |
|
| 230 | 111 |
|
112 |
{% url text-export text.key "FoRmAt" "DoWnLoAd" "WhIcHCoMmEnT" "WiThCoLoR" as export_url %} |
|
|
291
7aec57e4738f
add prefix to use external caller as proxy (calls via api)
raph
parents:
277
diff
changeset
|
113 |
<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 }}"> |
| 0 | 114 |
<fieldset> |
|
190
faf3a87a7d73
minor FIX : export dialog : wrong 'choose file format' label
rbernard
parents:
184
diff
changeset
|
115 |
<label for="p_comments">{% blocktrans %}Which comments?{% endblocktrans %}</label> |
| 0 | 116 |
<select name="p_comments" id="p_comments" /> |
117 |
</select> |
|
118 |
||
|
190
faf3a87a7d73
minor FIX : export dialog : wrong 'choose file format' label
rbernard
parents:
184
diff
changeset
|
119 |
<label id="how" for="p_method"></label> |
| 0 | 120 |
<select name="p_method" id="p_method"/> |
121 |
</select> |
|
122 |
||
|
190
faf3a87a7d73
minor FIX : export dialog : wrong 'choose file format' label
rbernard
parents:
184
diff
changeset
|
123 |
<label id="p_color_label" for="p_color">{% blocktrans %}How should comments' scope be shown in text?{% endblocktrans %}</label> |
| 0 | 124 |
<select name="p_color" id="p_color"/> |
125 |
</select> |
|
126 |
</fieldset> |
|
127 |
||
128 |
<input type="hidden" name="filteredIds" id="filteredIds" value="" /> |
|
129 |
<input type="hidden" name="print_export_action" id="print_export_action" value="" /> |
|
130 |
</form> |
|
131 |
</div> |
|
132 |
</div> |
|
133 |
</BODY> |
|
| 375 | 134 |
</html> |