0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 02:44:05 +01:00
This commit is contained in:
Unknwon 2015-08-20 15:57:51 +08:00
parent 78b717f202
commit ac616c07de
2 changed files with 8 additions and 1 deletions

View file

@ -71,6 +71,13 @@ func parseTreeData(tree *Tree, data []byte) ([]*TreeEntry, error) {
step = bytes.IndexByte(data[pos:], '\n')
entry.name = string(data[pos : pos+step])
// In case entry name is surrounded by double quotes(it happens only in git-shell).
if entry.name[0] == '"' {
entry.name = string(data[pos+1 : pos+step-1])
entry.name = strings.Replace(entry.name, `\"`, `"`, -1)
}
pos += step + 1
entries = append(entries, entry)
}

View file

@ -102,7 +102,7 @@
</div>
{{end}}
{{if or $.IsRepositoryAdmin (eq .Poster.Id $.SignedUserID)}}
<a class="edit-content item" href="#" data-type="comment"><i class="octicon octicon-pencil"></i></a>
<a class="edit-content item" href="#"><i class="octicon octicon-pencil"></i></a>
{{end}}
</div>
</div>