diff --git a/pylons_app/templates/files/file_diff.html b/pylons_app/templates/files/file_diff.html --- a/pylons_app/templates/files/file_diff.html +++ b/pylons_app/templates/files/file_diff.html @@ -22,50 +22,38 @@ <%def name="css()"> - + -
<%def name="main()"> - -
-
- ${h.pygmentize(c.diff,linenos=True,anchorlinenos=True,cssclass="code-diff")} -
+ +
+
+ ${h.link_to(c.f_path,h.url('files_home',repo_name=c.repo_name,revision=c.diff2.split(':')[1],f_path=c.f_path))}
-
-
-
- - %for x in c.diff_2[0]['chunks']: - %for y in x: - - - - - - %endfor$ - %endfor -
-
-
-                                    ${y['new_lineno']}
-                                
-
-
-
-
-                                    ${y['old_lineno']}
-                                
-
-
-
-
-	                               
-	                               ${y}
-	                               
-	                           
-
-
-
-
+
+ %if c.no_changes: + ${_('No changes')} + %else: + + %for diff in c.diff_files: + %for x in diff['chunks']: + %for y in x: + + + + + + %endfor$ + %endfor + %endfor +
+
${y['new_lineno']}
+
+
${y['old_lineno']}
+
+
${y['line']|n}
+
+ %endif +
+
\ No newline at end of file