# HG changeset patch # User Mads Kiilerich # Date 2015-05-17 21:47:33 # Node ID f9a581561184aa075a0f0d57822fbdc064f762b3 # Parent abad971d21d1191a93b22db20cd009678c5e4aad comments: inline pointless inline template function It was badly named and required an explanation, it wasn't a function, it was short, and it didn't really add much abstraction. diff --git a/kallithea/templates/changeset/changeset_file_comment.html b/kallithea/templates/changeset/changeset_file_comment.html --- a/kallithea/templates/changeset/changeset_file_comment.html +++ b/kallithea/templates/changeset/changeset_file_comment.html @@ -107,36 +107,30 @@ -## generates inlines taken from c.comments var -<%def name="inlines()"> -
- ${comment_count(c.inline_cnt, len(c.comments))} -
- %for path, lines in c.inline_comments: - % for line,comments in lines.iteritems(): - - %endfor - %endfor - - ## generate inline comments and the main ones <%def name="generate_comments()">
-
- ## generate inlines for this changeset - ${inlines()} -
+
+ ${comment_count(c.inline_cnt, len(c.comments))} +
+
+ %for path, lines in c.inline_comments: + %for line, comments in lines.iteritems(): + + %endfor + %endfor +
- %for co in c.comments: + %for co in c.comments:
${comment_block(co)}
- %endfor + %endfor