mirror of
https://github.com/go-gitea/gitea.git
synced 2024-12-22 17:34:03 +03:00
#1078 not show bin when rename a file
This commit is contained in:
parent
bc82157216
commit
0af035c37e
2
gogs.go
2
gogs.go
@ -17,7 +17,7 @@ import (
|
||||
"github.com/gogits/gogs/modules/setting"
|
||||
)
|
||||
|
||||
const APP_VER = "0.6.22.1102 Beta"
|
||||
const APP_VER = "0.6.22.1103 Beta"
|
||||
|
||||
func init() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
|
@ -263,7 +263,7 @@ func ActionContent2Commits(act Actioner) *PushCommits {
|
||||
|
||||
func DiffTypeToStr(diffType int) string {
|
||||
diffTypes := map[int]string{
|
||||
1: "add", 2: "modify", 3: "del",
|
||||
1: "add", 2: "modify", 3: "del", 4: "rename",
|
||||
}
|
||||
return diffTypes[diffType]
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
"\/css\/dropzone-4.0.1.css": {
|
||||
"fileType": 16,
|
||||
"ignore": 0,
|
||||
"ignoreWasSetByUser": 0,
|
||||
"ignoreWasSetByUser": 1,
|
||||
"inputAbbreviatedPath": "\/css\/dropzone-4.0.1.css",
|
||||
"outputAbbreviatedPath": "No Output Path",
|
||||
"outputPathIsOutsideProject": 0,
|
||||
@ -74,11 +74,11 @@
|
||||
"outputPathIsOutsideProject": 0,
|
||||
"outputPathIsSetByUser": 0
|
||||
},
|
||||
"\/css\/semantic-2.1.3.min.css": {
|
||||
"\/css\/semantic-2.1.5.min.css": {
|
||||
"fileType": 16,
|
||||
"ignore": 0,
|
||||
"ignoreWasSetByUser": 0,
|
||||
"inputAbbreviatedPath": "\/css\/semantic-2.1.3.min.css",
|
||||
"inputAbbreviatedPath": "\/css\/semantic-2.1.5.min.css",
|
||||
"outputAbbreviatedPath": "No Output Path",
|
||||
"outputPathIsOutsideProject": 0,
|
||||
"outputPathIsSetByUser": 0
|
||||
@ -204,12 +204,12 @@
|
||||
"outputStyle": 1,
|
||||
"syntaxCheckerStyle": 1
|
||||
},
|
||||
"\/js\/libs\/clipboard-1.3.1.min.js": {
|
||||
"\/js\/libs\/clipboard-1.5.3.min.js": {
|
||||
"fileType": 64,
|
||||
"ignore": 0,
|
||||
"ignoreWasSetByUser": 0,
|
||||
"inputAbbreviatedPath": "\/js\/libs\/clipboard-1.3.1.min.js",
|
||||
"outputAbbreviatedPath": "\/js\/libs\/min\/clipboard-1.3.1.min-min.js",
|
||||
"inputAbbreviatedPath": "\/js\/libs\/clipboard-1.5.3.min.js",
|
||||
"outputAbbreviatedPath": "\/js\/libs\/min\/clipboard-1.5.3.min-min.js",
|
||||
"outputPathIsOutsideProject": 0,
|
||||
"outputPathIsSetByUser": 0,
|
||||
"outputStyle": 1,
|
||||
@ -281,12 +281,12 @@
|
||||
"outputPathIsSetByUser": 0,
|
||||
"processed": 0
|
||||
},
|
||||
"\/js\/semantic-2.1.3.min.js": {
|
||||
"\/js\/semantic-2.1.5.min.js": {
|
||||
"fileType": 64,
|
||||
"ignore": 0,
|
||||
"ignoreWasSetByUser": 0,
|
||||
"inputAbbreviatedPath": "\/js\/semantic-2.1.3.min.js",
|
||||
"outputAbbreviatedPath": "\/js\/min\/semantic-2.1.3.min-min.js",
|
||||
"inputAbbreviatedPath": "\/js\/semantic-2.1.5.min.js",
|
||||
"outputAbbreviatedPath": "\/js\/min\/semantic-2.1.5.min-min.js",
|
||||
"outputPathIsOutsideProject": 0,
|
||||
"outputPathIsSetByUser": 0,
|
||||
"outputStyle": 1,
|
||||
|
@ -2288,6 +2288,10 @@ ol.linenums {
|
||||
.repository .diff-file-box .code-diff tbody tr:hover pre {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
.repository .diff-file-box.file-content img {
|
||||
max-width: 100%;
|
||||
padding: 5px 5px 0 5px;
|
||||
}
|
||||
.repository .code-view {
|
||||
overflow: auto;
|
||||
overflow-x: auto;
|
||||
|
@ -584,6 +584,12 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
&.file-content {
|
||||
img {
|
||||
max-width: 100%;
|
||||
padding: 5px 5px 0 5px;
|
||||
}
|
||||
}
|
||||
}
|
||||
.code-view {
|
||||
|
@ -1 +1 @@
|
||||
0.6.22.1102 Beta
|
||||
0.6.22.1103 Beta
|
@ -57,8 +57,9 @@
|
||||
</div>
|
||||
</h4>
|
||||
<div class="ui attached table segment">
|
||||
{{if not $file.IsRenamed}}
|
||||
{{$isImage := (call $.IsImageFile $file.Name)}}
|
||||
{{if $isImage}}
|
||||
{{if and $isImage}}
|
||||
<div class="center">
|
||||
<img src="{{$.RawPath}}/{{EscapePound .Name}}">
|
||||
</div>
|
||||
@ -85,6 +86,7 @@
|
||||
</table>
|
||||
</div>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
<br>
|
||||
|
Loading…
Reference in New Issue
Block a user