]> source.dussan.org Git - gitea.git/commit
Render the Code view on the server (minus syntax highlighting) (#2942)
authorRory McNamara <psychomario@users.noreply.github.com>
Tue, 9 Aug 2016 19:35:20 +0000 (20:35 +0100)
committer无闻 <u@gogs.io>
Tue, 9 Aug 2016 19:35:20 +0000 (12:35 -0700)
commitc8b45ecc2762a9d64dbe83cafd68b137661448a5
treedf16d7b1b41d3fcade098cfe550cc61955d048c6
parent9e8a8867ea3b4c977b436951a28d84e0c2ad2e4b
Render the Code view on the server (minus syntax highlighting) (#2942)

* render code view server side

* remove debug print

* fix multiline selection bug

* change string concatenation to bytes.Buffer for efficiency

* Fix newlines added by previous for hljs

* fix selection highlighting

* make css changes in .less
public/css/gogs.css
public/js/gogs.js
public/less/_repository.less
routers/repo/view.go
templates/repo/view_file.tmpl