##// END OF EJS Templates
diffs: made pills display on single side. Better UX and readability.
dan -
r3116:4d442652 default
parent child Browse files
Show More
@@ -743,9 +743,10 b' input.filediff-collapse-state {'
743 743 .pill-group {
744 744 .pill {
745 745 opacity: .8;
746 margin-right: 3px;
747
746 748 &:first-child {
747 749 border-radius: @border-radius 0 0 @border-radius;
748 margin-right: 3px;
749 750 }
750 751 &:last-child {
751 752 border-radius: 0 @border-radius @border-radius 0;
@@ -383,19 +383,16 b' from rhodecode.lib.diffs import NEW_FILE'
383 383 %endif
384 384 <i style="color: #aaa" class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${final_path}" title="${_('Copy the full path')}" onclick="return false;"></i>
385 385 </span>
386 <span class="pill-group" style="float: left">
386 ## anchor link
387 <a class="pill filediff-anchor" href="#a_${h.FID('', filediff.patch['filename'])}"></a>
388
389 <span class="pill-group" style="float: right">
390
391 ## ops pills
387 392 %if filediff.limited_diff:
388 393 <span class="pill tooltip" op="limited" title="The stats for this diff are not complete">limited diff</span>
389 394 %endif
390 395
391 %if RENAMED_FILENODE in filediff.patch['stats']['ops']:
392 <span class="pill" op="renamed">renamed</span>
393 %endif
394
395 %if COPIED_FILENODE in filediff.patch['stats']['ops']:
396 <span class="pill" op="copied">copied</span>
397 %endif
398
399 396 %if NEW_FILENODE in filediff.patch['stats']['ops']:
400 397 <span class="pill" op="created">created</span>
401 398 %if filediff['target_mode'].startswith('120'):
@@ -405,6 +402,14 b' from rhodecode.lib.diffs import NEW_FILE'
405 402 %endif
406 403 %endif
407 404
405 %if RENAMED_FILENODE in filediff.patch['stats']['ops']:
406 <span class="pill" op="renamed">renamed</span>
407 %endif
408
409 %if COPIED_FILENODE in filediff.patch['stats']['ops']:
410 <span class="pill" op="copied">copied</span>
411 %endif
412
408 413 %if DEL_FILENODE in filediff.patch['stats']['ops']:
409 414 <span class="pill" op="removed">removed</span>
410 415 %endif
@@ -414,23 +419,17 b' from rhodecode.lib.diffs import NEW_FILE'
414 419 ${nice_mode(filediff['source_mode'])}${nice_mode(filediff['target_mode'])}
415 420 </span>
416 421 %endif
417 </span>
418 422
419 <a class="pill filediff-anchor" href="#a_${h.FID('', filediff.patch['filename'])}"></a>
420
421 <span class="pill-group" style="float: right">
422 423 %if BIN_FILENODE in filediff.patch['stats']['ops']:
423 424 <span class="pill" op="binary">binary</span>
424 425 %if MOD_FILENODE in filediff.patch['stats']['ops']:
425 <span class="pill" op="modified">modified</span>
426 <span class="pill" op="modified">modified</span>
426 427 %endif
427 428 %endif
428 %if filediff.patch['stats']['added']:
429 <span class="pill" op="added">+${filediff.patch['stats']['added']}</span>
430 %endif
431 %if filediff.patch['stats']['deleted']:
432 <span class="pill" op="deleted">-${filediff.patch['stats']['deleted']}</span>
433 %endif
429
430 <span class="pill" op="added">${('+' if filediff.patch['stats']['added'] else '')}${filediff.patch['stats']['added']}</span>
431 <span class="pill" op="deleted">${((h.safe_int(filediff.patch['stats']['deleted']) or 0) * -1)}</span>
432
434 433 </span>
435 434
436 435 </%def>
General Comments 0
You need to be logged in to leave comments. Login now