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
61411c5e
Commit
61411c5e
authored
Aug 16, 2012
by
Baptiste Mouterde
Committed by
ikoalaz
Aug 16, 2012
Browse files
comments: add check for empty comments
parent
f9bcd683
Changes
1
Hide whitespace changes
Inline
Side-by-side
debexpo/templates/index/index.mako
View file @
61411c5e
...
...
@@ -31,7 +31,7 @@
<p>If you are curious about <em>Debexpo</em>, the software which is running this site, you can <a
href="http://wiki.debian.org/Debexpo">read more about Debexpo on the Debian Wiki</a>.</p>
<h3>best comment </h3>
%if hasattr(c,'best_comment'):
%if hasattr(c,'best_comment')
and c.best_comment is not None
:
<% comment=c.best_comment %>
<% id=c.best_comment.package_version_id %>
...
...
@@ -40,7 +40,7 @@
%endif
<h3>last comment</h3>
%if hasattr(c,'last_comment'):
%if hasattr(c,'last_comment')
and c.last_comment is not None
:
<% comment=c.last_comment %>
<%include file='../comments/comments.mako'args='id=1,package_version_id=c.last_comment.package_version_id,comment=c.last_comment'/>
...
...
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