mirror of https://github.com/gogs/gogs.git
css: not include line numbers in diff selection (#4584)
Changed template file in order to make CSS work properly.pull/4633/head
parent
3a6623104f
commit
c970c4ee41
2
gogs.go
2
gogs.go
|
@ -16,7 +16,7 @@ import (
|
||||||
"github.com/gogits/gogs/pkg/setting"
|
"github.com/gogits/gogs/pkg/setting"
|
||||||
)
|
)
|
||||||
|
|
||||||
const APP_VER = "0.11.24.0627"
|
const APP_VER = "0.11.25.0714"
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
setting.AppVer = APP_VER
|
setting.AppVer = APP_VER
|
||||||
|
|
|
@ -2140,6 +2140,9 @@ footer .ui.language .menu {
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
}
|
}
|
||||||
|
.repository .diff-file-box .code-diff .lines-num::before {
|
||||||
|
content: attr(data-line-number);
|
||||||
|
}
|
||||||
.repository .diff-file-box .code-diff .lines-num.lines-num-old,
|
.repository .diff-file-box .code-diff .lines-num.lines-num-old,
|
||||||
.repository .diff-file-box .code-diff .lines-num.lines-num-new {
|
.repository .diff-file-box .code-diff .lines-num.lines-num-new {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
|
@ -1057,6 +1057,10 @@
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
user-select: none;
|
user-select: none;
|
||||||
|
|
||||||
|
&::before {
|
||||||
|
content: attr(data-line-number);
|
||||||
|
}
|
||||||
|
|
||||||
&.lines-num-old, &.lines-num-new {
|
&.lines-num-old, &.lines-num-new {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
&:hover {
|
&:hover {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
0.11.24.0627
|
0.11.25.0714
|
|
@ -8,16 +8,8 @@
|
||||||
{{/* {{if gt $j 0}}<span class="fold octicon octicon-fold"></span>{{end}} */}}
|
{{/* {{if gt $j 0}}<span class="fold octicon octicon-fold"></span>{{end}} */}}
|
||||||
</td>
|
</td>
|
||||||
{{else}}
|
{{else}}
|
||||||
<td class="lines-num lines-num-old" {{if $line.LeftIdx}}id="diff-{{$file.Index}}L{{$line.LeftIdx}}"{{end}}>
|
<td class="lines-num lines-num-old" {{if $line.LeftIdx}} id="diff-{{$file.Index}}L{{$line.LeftIdx}}" data-line-number="{{$line.LeftIdx}}"{{end}}></td>
|
||||||
{{if $line.LeftIdx}}
|
<td class="lines-num lines-num-new" {{if $line.RightIdx}} id="diff-{{$file.Index}}R{{$line.RightIdx}}" data-line-number="{{$line.RightIdx}}"{{end}}></td>
|
||||||
<span>{{$line.LeftIdx}}</span>
|
|
||||||
{{end}}
|
|
||||||
</td>
|
|
||||||
<td class="lines-num lines-num-new" {{if $line.RightIdx}}id="diff-{{$file.Index}}R{{$line.RightIdx}}"{{end}}>
|
|
||||||
{{if $line.RightIdx}}
|
|
||||||
<span>{{$line.RightIdx}}</span>
|
|
||||||
{{end}}
|
|
||||||
</td>
|
|
||||||
{{end}}
|
{{end}}
|
||||||
<td class="lines-code">
|
<td class="lines-code">
|
||||||
<pre><code class="{{if $highlightClass}}language-{{$highlightClass}}{{else}}nohighlight{{end}}">{{$section.ComputedInlineDiffFor $line}}</code></pre>
|
<pre><code class="{{if $highlightClass}}language-{{$highlightClass}}{{else}}nohighlight{{end}}">{{$section.ComputedInlineDiffFor $line}}</code></pre>
|
||||||
|
|
Loading…
Reference in New Issue