Browse Source

Fix diff css style, hooks \r char

tags/v1.2.0-rc1
Unknwon 11 years ago
parent
commit
3005c4f6db
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      modules/git/hooks.go
  2. +1
    -1
      templates/repo/diff.tmpl

+ 1
- 1
modules/git/hooks.go View File

@@ -83,7 +83,7 @@ func (h *Hook) Update() error {
if len(strings.TrimSpace(h.Content)) == 0 {
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.


+ 1
- 1
templates/repo/diff.tmpl View File

@@ -74,7 +74,7 @@
</div>

{{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="diff-counter count pull-left">
{{if not .IsBin}}


Loading…
Cancel
Save