Show More
@@ -699,7 +699,7 b' class DiffProcessor(object):' | |||||
699 | if enable_comments and change['action'] != Action.CONTEXT: |
|
699 | if enable_comments and change['action'] != Action.CONTEXT: | |
700 | _html.append('''<a href="#"><span class="icon-comment-add"></span></a>''') |
|
700 | _html.append('''<a href="#"><span class="icon-comment-add"></span></a>''') | |
701 |
|
701 | |||
702 |
_html.append('''</span></td><td class="comment-toggle tooltip" title="Toggle Comment |
|
702 | _html.append('''</span></td><td class="comment-toggle tooltip" title="Toggle Comment Thread"><i class="icon-comment"></i></td>\n''') | |
703 |
|
703 | |||
704 | ########################################################### |
|
704 | ########################################################### | |
705 | # OLD LINE NUMBER |
|
705 | # OLD LINE NUMBER |
@@ -76,7 +76,7 b' def test_diffprocessor_as_html_with_comm' | |||||
76 | expected_html = textwrap.dedent(''' |
|
76 | expected_html = textwrap.dedent(''' | |
77 | <table class="code-difftable"> |
|
77 | <table class="code-difftable"> | |
78 | <tr class="line context"> |
|
78 | <tr class="line context"> | |
79 |
<td class="add-comment-line"><span class="add-comment-content"></span></td><td class="comment-toggle tooltip" title="Toggle Comment |
|
79 | <td class="add-comment-line"><span class="add-comment-content"></span></td><td class="comment-toggle tooltip" title="Toggle Comment Thread"><i class="icon-comment"></i></td> | |
80 | <td class="lineno old">...</td> |
|
80 | <td class="lineno old">...</td> | |
81 | <td class="lineno new">...</td> |
|
81 | <td class="lineno new">...</td> | |
82 | <td class="code no-comment"> |
|
82 | <td class="code no-comment"> | |
@@ -85,7 +85,7 b' def test_diffprocessor_as_html_with_comm' | |||||
85 | </td> |
|
85 | </td> | |
86 | </tr> |
|
86 | </tr> | |
87 | <tr class="line unmod"> |
|
87 | <tr class="line unmod"> | |
88 |
<td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment |
|
88 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment Thread"><i class="icon-comment"></i></td> | |
89 | <td id="setuppy_o2" class="lineno old"><a href="#setuppy_o2" class="tooltip" |
|
89 | <td id="setuppy_o2" class="lineno old"><a href="#setuppy_o2" class="tooltip" | |
90 | title="Click to select line">2</a></td> |
|
90 | title="Click to select line">2</a></td> | |
91 | <td id="setuppy_n2" class="lineno new"><a href="#setuppy_n2" class="tooltip" |
|
91 | <td id="setuppy_n2" class="lineno new"><a href="#setuppy_n2" class="tooltip" | |
@@ -96,7 +96,7 b' def test_diffprocessor_as_html_with_comm' | |||||
96 | </td> |
|
96 | </td> | |
97 | </tr> |
|
97 | </tr> | |
98 | <tr class="line unmod"> |
|
98 | <tr class="line unmod"> | |
99 |
<td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment |
|
99 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment Thread"><i class="icon-comment"></i></td> | |
100 | <td id="setuppy_o3" class="lineno old"><a href="#setuppy_o3" class="tooltip" |
|
100 | <td id="setuppy_o3" class="lineno old"><a href="#setuppy_o3" class="tooltip" | |
101 | title="Click to select line">3</a></td> |
|
101 | title="Click to select line">3</a></td> | |
102 | <td id="setuppy_n3" class="lineno new"><a href="#setuppy_n3" class="tooltip" |
|
102 | <td id="setuppy_n3" class="lineno new"><a href="#setuppy_n3" class="tooltip" | |
@@ -107,7 +107,7 b' def test_diffprocessor_as_html_with_comm' | |||||
107 | </td> |
|
107 | </td> | |
108 | </tr> |
|
108 | </tr> | |
109 | <tr class="line unmod"> |
|
109 | <tr class="line unmod"> | |
110 |
<td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment |
|
110 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment Thread"><i class="icon-comment"></i></td> | |
111 | <td id="setuppy_o4" class="lineno old"><a href="#setuppy_o4" class="tooltip" |
|
111 | <td id="setuppy_o4" class="lineno old"><a href="#setuppy_o4" class="tooltip" | |
112 | title="Click to select line">4</a></td> |
|
112 | title="Click to select line">4</a></td> | |
113 | <td id="setuppy_n4" class="lineno new"><a href="#setuppy_n4" class="tooltip" |
|
113 | <td id="setuppy_n4" class="lineno new"><a href="#setuppy_n4" class="tooltip" | |
@@ -118,7 +118,7 b' def test_diffprocessor_as_html_with_comm' | |||||
118 | </td> |
|
118 | </td> | |
119 | </tr> |
|
119 | </tr> | |
120 | <tr class="line del"> |
|
120 | <tr class="line del"> | |
121 |
<td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment |
|
121 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment Thread"><i class="icon-comment"></i></td> | |
122 | <td id="setuppy_o5" class="lineno old"><a href="#setuppy_o5" class="tooltip" |
|
122 | <td id="setuppy_o5" class="lineno old"><a href="#setuppy_o5" class="tooltip" | |
123 | title="Click to select line">5</a></td> |
|
123 | title="Click to select line">5</a></td> | |
124 | <td class="lineno new"><a href="#setuppy_n" class="tooltip" |
|
124 | <td class="lineno new"><a href="#setuppy_n" class="tooltip" | |
@@ -129,7 +129,7 b' def test_diffprocessor_as_html_with_comm' | |||||
129 | </td> |
|
129 | </td> | |
130 | </tr> |
|
130 | </tr> | |
131 | <tr class="line add"> |
|
131 | <tr class="line add"> | |
132 |
<td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment |
|
132 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment Thread"><i class="icon-comment"></i></td> | |
133 | <td class="lineno old"><a href="#setuppy_o" class="tooltip" |
|
133 | <td class="lineno old"><a href="#setuppy_o" class="tooltip" | |
134 | title="Click to select line"></a></td> |
|
134 | title="Click to select line"></a></td> | |
135 | <td id="setuppy_n5" class="lineno new"><a href="#setuppy_n5" class="tooltip" |
|
135 | <td id="setuppy_n5" class="lineno new"><a href="#setuppy_n5" class="tooltip" | |
@@ -140,7 +140,7 b' def test_diffprocessor_as_html_with_comm' | |||||
140 | </td> |
|
140 | </td> | |
141 | </tr> |
|
141 | </tr> | |
142 | <tr class="line unmod"> |
|
142 | <tr class="line unmod"> | |
143 |
<td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment |
|
143 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment Thread"><i class="icon-comment"></i></td> | |
144 | <td id="setuppy_o6" class="lineno old"><a href="#setuppy_o6" class="tooltip" |
|
144 | <td id="setuppy_o6" class="lineno old"><a href="#setuppy_o6" class="tooltip" | |
145 | title="Click to select line">6</a></td> |
|
145 | title="Click to select line">6</a></td> | |
146 | <td id="setuppy_n6" class="lineno new"><a href="#setuppy_n6" class="tooltip" |
|
146 | <td id="setuppy_n6" class="lineno new"><a href="#setuppy_n6" class="tooltip" | |
@@ -151,7 +151,7 b' def test_diffprocessor_as_html_with_comm' | |||||
151 | </td> |
|
151 | </td> | |
152 | </tr> |
|
152 | </tr> | |
153 | <tr class="line unmod"> |
|
153 | <tr class="line unmod"> | |
154 |
<td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment |
|
154 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment Thread"><i class="icon-comment"></i></td> | |
155 | <td id="setuppy_o7" class="lineno old"><a href="#setuppy_o7" class="tooltip" |
|
155 | <td id="setuppy_o7" class="lineno old"><a href="#setuppy_o7" class="tooltip" | |
156 | title="Click to select line">7</a></td> |
|
156 | title="Click to select line">7</a></td> | |
157 | <td id="setuppy_n7" class="lineno new"><a href="#setuppy_n7" class="tooltip" |
|
157 | <td id="setuppy_n7" class="lineno new"><a href="#setuppy_n7" class="tooltip" | |
@@ -162,7 +162,7 b' def test_diffprocessor_as_html_with_comm' | |||||
162 | </td> |
|
162 | </td> | |
163 | </tr> |
|
163 | </tr> | |
164 | <tr class="line unmod"> |
|
164 | <tr class="line unmod"> | |
165 |
<td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment |
|
165 | <td class="add-comment-line"><span class="add-comment-content"><a href="#"><span class="icon-comment-add"></span></a></span></td><td class="comment-toggle tooltip" title="Toggle Comment Thread"><i class="icon-comment"></i></td> | |
166 | <td id="setuppy_o8" class="lineno old"><a href="#setuppy_o8" class="tooltip" |
|
166 | <td id="setuppy_o8" class="lineno old"><a href="#setuppy_o8" class="tooltip" | |
167 | title="Click to select line">8</a></td> |
|
167 | title="Click to select line">8</a></td> | |
168 | <td id="setuppy_n8" class="lineno new"><a href="#setuppy_n8" class="tooltip" |
|
168 | <td id="setuppy_n8" class="lineno new"><a href="#setuppy_n8" class="tooltip" |
General Comments 0
You need to be logged in to leave comments.
Login now