Commit 7584bd55 authored by Baptiste Mouterde's avatar Baptiste Mouterde Committed by ikoalaz
Browse files

comment: fix indent error, fix name, add no-js field

parent 4f132d39
......@@ -7,10 +7,10 @@ else:
%>
<% if not hasattr(comment,'anchor') and hasattr(comment,'start'):
setattr(comment,'anchor','l%ss' %comment.start)
setattr(comment,'anchor','l%ss' %comment.start)
if hasattr(comment,'anchor') and comment.package_version.commit_id:
if comment.file == None :
link=url(controller='source_browser',action='index',packageName=comment.package_version.package.name,revision=comment.package_version.commit_id[:8],fileName="")+'#%s'%comment.anchor
link=url(controller='source_browser',action='index',packageName=comment.package_version.package.name,revision=comment.package_version.commit_id[:8],fileName="")+'#%s'%comment.anchor
else:
link=url(controller='source_browser',action='index',packageName=comment.package_version.package.name,revision=comment.package_version.commit_id[:8],fileName=comment.file)+'#%s'%comment.anchor
......@@ -30,22 +30,28 @@ else:
<tr>
%if 'user_id' in session and not main_page:
<td>
<button class="answer ${id}" id="answer${comment.id}" value="${comment.id}">answer!
<button class="answer ${id}" style='display:None' id="answer${comment.id}"
value="${comment.id}">answer!
</button>
</td>
%if comment.vote:
<td>
<button class="debexup ${id}" id="up${comment.id}" value='up'></button>
<button class="debexup ${id}" style='display:None' id="up${comment.id}"
value='up'></button>
</td>
<td>
<button class="debexdown ${id}" id="down${comment.id}" value='down'></button>
<button class="debexdown ${id}" style='display:None' id="down${comment.id}"
value='down'></button>
</td>
%endif
%endif
<td>
<span class='score'> score : ${comment.score} </span>
</td>
<td class='no-js'>
<span class='score'>id : ${comment.id}</span>
</td>
</tr>
</table>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment