Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

Commit

Permalink
Diff: Fix does not copy file path
Browse files Browse the repository at this point in the history
  • Loading branch information
insanehong committed Apr 11, 2015
1 parent e4acd2e commit d62acd8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
27 changes: 12 additions & 15 deletions app/assets/stylesheets/less/_page.less
Original file line number Diff line number Diff line change
Expand Up @@ -5298,21 +5298,8 @@ label.issue-item-row {
margin-right: 115px;

.filename {
color:transparent;
font-size:0;

&:before {
content:attr(title);
color:@base-text-color;
font-size:@base-font-size;
cursor:text;
}
}
.pathB {
display:block;
color:transparent;
font-size:0;
.opacity(0);
color:@base-text-color;
font-size:@base-font-size;
}
}

Expand All @@ -5329,6 +5316,16 @@ label.issue-item-row {
overflow-x: auto;
overflow-y: hidden;

.patch-header {
.path {
display:block;
color:transparent;
font-size:0;
.opacity(0);
height: 0;
}
}

table {
width: 100%;
border-collapse: separate;
Expand Down
7 changes: 5 additions & 2 deletions app/views/partial_filediff.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -152,11 +152,14 @@
</div>
</div>
<div class="diff-partial-file">
<span class="filename" title="@fileHeader">@if(StringUtils.isNotEmpty(diff.pathA)){--- @diff.pathA}</span>
@if(StringUtils.isNotEmpty(diff.pathB)){<span class="pathB">+++ @diff.pathB</span>}
<span class="filename" >@fileHeader</span>
</div>
</div>
<div class="diff-partial-code" data-hashcode="@diff.hashCode">
<div class="patch-header">
@if(StringUtils.isNotEmpty(diff.pathA)){<div class="path">--- @diff.pathA</div>}
@if(StringUtils.isNotEmpty(diff.pathB)){<div class="path">+++ @diff.pathB</div>}
</div>
<table class="diff-container show-comments"
data-path-a="@diff.pathA" data-path-b="@diff.pathB"
data-commit-a="@diff.commitA" data-commit-b="@diff.commitB"
Expand Down

0 comments on commit d62acd8

Please sign in to comment.