##// END OF EJS Templates
diffs: show copy-to-clipboard next to diff files
marcink -
r2120:6cd52f8c default
parent child Browse files
Show More
@@ -665,8 +665,9 b' input.filediff-collapse-state {'
665 665 width: 0;
666 666 height: 0;
667 667 border-style: solid;
668 border-width: 6.5px 0 6.5px 11.3px;
669 border-color: transparent transparent transparent #ccc;
668 border-width: 4.5px 0 4.5px 9.3px;
669 border-color: transparent transparent transparent #aaa;
670 margin: 6px 0px;
670 671 }
671 672 .filediff-menu {
672 673 display: none;
@@ -679,8 +680,10 b' input.filediff-collapse-state {'
679 680 width: 0;
680 681 height: 0;
681 682 border-style: solid;
682 border-width: 11.3px 6.5px 0 6.5px;
683 border-color: #ccc transparent transparent transparent;
683 border-width: 9.3px 4.5px 0 4.5px;
684 border-color: #aaa transparent transparent transparent;
685 margin: 6px 0px;
686
684 687 }
685 688 .filediff-menu {
686 689 display: block;
@@ -326,22 +326,28 b' from rhodecode.lib.diffs import NEW_FILE'
326 326 ## file was renamed, or copied
327 327 %if RENAMED_FILENODE in filediff.patch['stats']['ops']:
328 328 <strong>${filediff.target_file_path}</strong><del>${filediff.source_file_path}</del>
329 <% final_path = filediff.target_file_path %>
329 330 %elif COPIED_FILENODE in filediff.patch['stats']['ops']:
330 331 <strong>${filediff.target_file_path}</strong>${filediff.source_file_path}
332 <% final_path = filediff.target_file_path %>
331 333 %endif
332 334 %else:
333 335 ## file was modified
334 336 <strong>${filediff.source_file_path}</strong>
337 <% final_path = filediff.source_file_path %>
335 338 %endif
336 339 %else:
337 340 %if filediff.source_file_path:
338 341 ## file was deleted
339 342 <strong>${filediff.source_file_path}</strong>
343 <% final_path = filediff.source_file_path %>
340 344 %else:
341 345 ## file was added
342 346 <strong>${filediff.target_file_path}</strong>
347 <% final_path = filediff.target_file_path %>
343 348 %endif
344 349 %endif
350 <i style="color: #aaa" class="tooltip icon-clipboard clipboard-action" data-clipboard-text="${final_path}" title="${_('Copy the full path')}" onclick="return false;"></i>
345 351 </span>
346 352 <span class="pill-group" style="float: left">
347 353 %if filediff.limited_diff:
General Comments 0
You need to be logged in to leave comments. Login now