diff --git a/rhodecode/public/css/code-block.less b/rhodecode/public/css/code-block.less
--- a/rhodecode/public/css/code-block.less
+++ b/rhodecode/public/css/code-block.less
@@ -743,9 +743,10 @@ input.filediff-collapse-state {
.pill-group {
.pill {
opacity: .8;
+ margin-right: 3px;
+
&:first-child {
border-radius: @border-radius 0 0 @border-radius;
- margin-right: 3px;
}
&:last-child {
border-radius: 0 @border-radius @border-radius 0;
diff --git a/rhodecode/templates/codeblocks/diffs.mako b/rhodecode/templates/codeblocks/diffs.mako
--- a/rhodecode/templates/codeblocks/diffs.mako
+++ b/rhodecode/templates/codeblocks/diffs.mako
@@ -383,19 +383,16 @@ from rhodecode.lib.diffs import NEW_FILE
%endif
-
+ ## anchor link
+ ¶
+
+
+
+ ## ops pills
%if filediff.limited_diff:
limited diff
%endif
- %if RENAMED_FILENODE in filediff.patch['stats']['ops']:
- renamed
- %endif
-
- %if COPIED_FILENODE in filediff.patch['stats']['ops']:
- copied
- %endif
-
%if NEW_FILENODE in filediff.patch['stats']['ops']:
created
%if filediff['target_mode'].startswith('120'):
@@ -405,6 +402,14 @@ from rhodecode.lib.diffs import NEW_FILE
%endif
%endif
+ %if RENAMED_FILENODE in filediff.patch['stats']['ops']:
+ renamed
+ %endif
+
+ %if COPIED_FILENODE in filediff.patch['stats']['ops']:
+ copied
+ %endif
+
%if DEL_FILENODE in filediff.patch['stats']['ops']:
removed
%endif
@@ -414,23 +419,17 @@ from rhodecode.lib.diffs import NEW_FILE
${nice_mode(filediff['source_mode'])} ➡ ${nice_mode(filediff['target_mode'])}
%endif
-
- ¶
-
-
%if BIN_FILENODE in filediff.patch['stats']['ops']:
binary
%if MOD_FILENODE in filediff.patch['stats']['ops']:
- modified
+ modified
%endif
%endif
- %if filediff.patch['stats']['added']:
- +${filediff.patch['stats']['added']}
- %endif
- %if filediff.patch['stats']['deleted']:
- -${filediff.patch['stats']['deleted']}
- %endif
+
+ ${('+' if filediff.patch['stats']['added'] else '')}${filediff.patch['stats']['added']}
+ ${((h.safe_int(filediff.patch['stats']['deleted']) or 0) * -1)}
+
%def>