
Diff: Fix does not copy file path
@d62acd8f807023193b11b1411050e99d297930e3
--- app/assets/stylesheets/less/_page.less
+++ app/assets/stylesheets/less/_page.less
... | ... | @@ -5298,21 +5298,8 @@ |
5298 | 5298 |
margin-right: 115px; |
5299 | 5299 |
|
5300 | 5300 |
.filename { |
5301 |
- color:transparent; |
|
5302 |
- font-size:0; |
|
5303 |
- |
|
5304 |
- &:before { |
|
5305 |
- content:attr(title); |
|
5306 |
- color:@base-text-color; |
|
5307 |
- font-size:@base-font-size; |
|
5308 |
- cursor:text; |
|
5309 |
- } |
|
5310 |
- } |
|
5311 |
- .pathB { |
|
5312 |
- display:block; |
|
5313 |
- color:transparent; |
|
5314 |
- font-size:0; |
|
5315 |
- .opacity(0); |
|
5301 |
+ color:@base-text-color; |
|
5302 |
+ font-size:@base-font-size; |
|
5316 | 5303 |
} |
5317 | 5304 |
} |
5318 | 5305 |
|
... | ... | @@ -5329,6 +5316,16 @@ |
5329 | 5316 |
overflow-x: auto; |
5330 | 5317 |
overflow-y: hidden; |
5331 | 5318 |
|
5319 |
+ .patch-header { |
|
5320 |
+ .path { |
|
5321 |
+ display:block; |
|
5322 |
+ color:transparent; |
|
5323 |
+ font-size:0; |
|
5324 |
+ .opacity(0); |
|
5325 |
+ height: 0; |
|
5326 |
+ } |
|
5327 |
+ } |
|
5328 |
+ |
|
5332 | 5329 |
table { |
5333 | 5330 |
width: 100%; |
5334 | 5331 |
border-collapse: separate; |
--- app/views/partial_filediff.scala.html
+++ app/views/partial_filediff.scala.html
... | ... | @@ -152,11 +152,14 @@ |
152 | 152 |
</div> |
153 | 153 |
</div> |
154 | 154 |
<div class="diff-partial-file"> |
155 |
- <span class="filename" title="@fileHeader">@if(StringUtils.isNotEmpty(diff.pathA)){--- @diff.pathA}</span> |
|
156 |
- @if(StringUtils.isNotEmpty(diff.pathB)){<span class="pathB">+++ @diff.pathB</span>} |
|
155 |
+ <span class="filename" >@fileHeader</span> |
|
157 | 156 |
</div> |
158 | 157 |
</div> |
159 | 158 |
<div class="diff-partial-code" data-hashcode="@diff.hashCode"> |
159 |
+ <div class="patch-header"> |
|
160 |
+ @if(StringUtils.isNotEmpty(diff.pathA)){<div class="path">--- @diff.pathA</div>} |
|
161 |
+ @if(StringUtils.isNotEmpty(diff.pathB)){<div class="path">+++ @diff.pathB</div>} |
|
162 |
+ </div> |
|
160 | 163 |
<table class="diff-container show-comments" |
161 | 164 |
data-path-a="@diff.pathA" data-path-b="@diff.pathB" |
162 | 165 |
data-commit-a="@diff.commitA" data-commit-b="@diff.commitB" |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?