mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-23 07:43:18 -05:00
Fix diff css style, hooks \r char
This commit is contained in:
parent
963354c5d7
commit
3005c4f6db
2 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ func (h *Hook) Update() error {
|
||||||
if len(strings.TrimSpace(h.Content)) == 0 {
|
if len(strings.TrimSpace(h.Content)) == 0 {
|
||||||
return os.Remove(h.path)
|
return os.Remove(h.path)
|
||||||
}
|
}
|
||||||
return ioutil.WriteFile(h.path, []byte(h.Content), os.ModePerm)
|
return ioutil.WriteFile(h.path, []byte(strings.Replace(h.Content, "\r", "", -1)), os.ModePerm)
|
||||||
}
|
}
|
||||||
|
|
||||||
// ListHooks returns a list of Git hooks of given repository.
|
// ListHooks returns a list of Git hooks of given repository.
|
||||||
|
|
|
@ -74,7 +74,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{range .Diff.Files}}
|
{{range .Diff.Files}}
|
||||||
<div class="panel diff-file-box diff-box file-content" id="diff-{{.Index}}">
|
<div class="panel panel-radius diff-file-box diff-box file-content" id="diff-{{.Index}}">
|
||||||
<div class="panel-header">
|
<div class="panel-header">
|
||||||
<div class="diff-counter count pull-left">
|
<div class="diff-counter count pull-left">
|
||||||
{{if not .IsBin}}
|
{{if not .IsBin}}
|
||||||
|
|
Loading…
Reference in a new issue