${diff|n}
- %if path.rsplit('.')[-1] in ['png', 'gif', 'jpg', 'bmp']:
+ %if filename.rsplit('.')[-1] in ['png', 'gif', 'jpg', 'bmp']:
Show images
- %if change =='M':
-
Press to swap images
+ %if op == 'M':
+
Press to swap images
%endif
- %if change in 'DM':
-
![]()
+ %if op in 'DM':
+
![]()
%endif
- %if change in 'AM':
-
![]()
+ %if op in 'AM':
+
![]()
%endif
%endif
@@ -72,58 +72,58 @@
%for fid, ch, f, stat in files:
<%
- op, filenode_path, diff = changes[fid]
+ op, filename, diff = changes[fid]
%>
-
-
-
-
+
+
+
+
${diff|n}
- %if filenode_path.rsplit('.')[-1] in ['png', 'gif', 'jpg', 'bmp']:
+ %if filename.rsplit('.')[-1] in ['png', 'gif', 'jpg', 'bmp']:
Show images
%if op == 'M':
-
Press to swap images
+
Press to swap images
%endif
%if op in 'DM':
-
![]()
+
![]()
%endif
%if op in 'AM':
-
![]()
+
![]()
%endif
%endif