| author | amit |
| Fri, 15 Oct 2010 15:59:28 +0530 | |
| changeset 2 | f5e18f8ed036 |
| parent 0 | 54f784230511 |
| permissions | -rw-r--r-- |
|
2
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
1 |
<style type="text/css"> |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
2 |
.comment {
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
3 |
font-size: 90%; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
4 |
} |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
5 |
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
6 |
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
7 |
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
8 |
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
9 |
.comment_body {
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
10 |
background: #eeeeff; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
11 |
} |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
12 |
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
13 |
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
14 |
.comment_header {
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
15 |
opacity: 0.75; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
16 |
} |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
17 |
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
18 |
.comment_id {
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
19 |
float: right; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
20 |
opacity: 0.3; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
21 |
font-size: 60%; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
22 |
} |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
23 |
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
24 |
.comment_name {
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
25 |
font-weight: bolder; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
26 |
} |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
27 |
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
28 |
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
29 |
.comment_date {
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
30 |
opacity: 0.75; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
31 |
} |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
32 |
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
33 |
.comment_thanks {
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
34 |
color: darkblue; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
35 |
margin-left: 1em; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
36 |
font-style: italic; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
37 |
font-weight: bolder; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
38 |
} |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
39 |
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
40 |
.comment_error {
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
41 |
padding-left: 1em; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
42 |
font-weight: bolder; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
43 |
font-size: 80%; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
44 |
color: darkred; |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
45 |
} |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
46 |
</style> |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
47 |
|
|
0
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
48 |
{% ifequal length 1 %}
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
49 |
<a class="commenttoggle" id="toggle_{{ id }}"
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
50 |
onclick="return toggleComment('{{ id }}')"
|
|
2
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
51 |
href="comments: show / hide">{{ length }} comments</a>
|
|
0
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
52 |
{% else %}
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
53 |
{% if length %}
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
54 |
<a class="commenttoggle" id="toggle_{{ id }}"
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
55 |
onclick="return toggleComment('{{ id }}')"
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
56 |
href="comments: show / hide">{{ length }} comments</a>
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
57 |
{% else %}
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
58 |
<a class="commenttoggle" id="toggle_{{ id }}"
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
59 |
onclick="return toggleComment('{{ id }}')"
|
|
2
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
60 |
href="comments: show / hide">0 comments</a> |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
61 |
<span class="comment" {% if not newid %} style="display: none;" {% endif %}>
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
62 |
<span class="comment_body">Be the first to comment on this paragraph!</span> |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
63 |
</span> |
|
0
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
64 |
{% endif %}
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
65 |
{% endifequal %}
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
66 |
{% for c in query %}
|
|
2
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
67 |
<span class="{% ifequal c.id newid %}new_{% endifequal %}comment"
|
|
0
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
68 |
{% if not newid %} style="display: none;" {% endif %}
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
69 |
id="comment{{ c.id }}">
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
70 |
<a name="comment{{ c.id }}"/>
|
|
2
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
71 |
<span class="comment_header"> |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
72 |
</span> |
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
73 |
<div class="comment_body">{{ forloop.counter }} {{ c.submitter_name }} {{ c.comment|escape|linebreaks }}</div>
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
74 |
</span> |
|
0
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
75 |
{% endfor %}
|
|
2
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
76 |
<form class="comment" id="form_{{ paragraph_id }}" action="/submit/{{ paragraph_id }}/"
|
|
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
77 |
method="post" > |
|
0
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
78 |
<table> |
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
79 |
<tbody> |
|
2
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
80 |
<tr><td align="right" valign="top">Comment<br></td> |
|
0
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
81 |
<td>{{ form.comment }}</td></tr>
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
82 |
<tr><td align="right">Your name</td><td>{{ form.name }}
|
|
2
f5e18f8ed036
Changes to account for a new way of keeping ids ... Uses the whole path rather than just file name
amit
parents:
0
diff
changeset
|
83 |
<span class="comment_help"><b>Required</b> so we can give you credit</a></span></td></tr> |
|
0
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
84 |
<tr><td align="right">Your URL</td><td>{{ form.url }}
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
85 |
<span class="comment_help"><b>Optional</b> link to blog, home page, |
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
86 |
<i>etc</i>.</span></td></tr> |
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
87 |
<tr><td align="right">Remember you?</td><td>{{ form.remember }}</td></tr>
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
88 |
<tr><td/><td><input name="submit" type="submit" |
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
89 |
value="Submit Comment"/><span class="comment_error">{{ error }}</span></td></tr>
|
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
90 |
</tbody> |
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
91 |
</table> |
|
54f784230511
Initial commit of django based commenting system for sphinx. Already has
amit
parents:
diff
changeset
|
92 |
</form> |