Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
mentors.debian.net
debexpo
Commits
7584bd55
Commit
7584bd55
authored
Aug 11, 2012
by
Baptiste Mouterde
Committed by
ikoalaz
Aug 11, 2012
Browse files
comment: fix indent error, fix name, add no-js field
parent
4f132d39
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/templates/comments/comment.mako
View file @
7584bd55
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment