From d4a1d9f82a06fccb0b9d892b09b3271f85717f94 Mon Sep 17 00:00:00 2001 From: Tony Tsang Date: Fri, 5 Dec 2014 10:33:22 +0800 Subject: [PATCH] Display multi-line commit message on commit diff page. --- public/ng/css/gogs.css | 3 +++ public/ng/less/gogs/repository.less | 5 +++++ templates/repo/diff.tmpl | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/public/ng/css/gogs.css b/public/ng/css/gogs.css index dad84583d7..63cbd5b273 100644 --- a/public/ng/css/gogs.css +++ b/public/ng/css/gogs.css @@ -1510,6 +1510,9 @@ The register and sign-in page style .commit-list .message span { max-width: 500px; } +.commit-message { + white-space: pre-wrap; +} .diff-head-box { margin-top: 10px; } diff --git a/public/ng/less/gogs/repository.less b/public/ng/less/gogs/repository.less index 4eef314b50..4b7301be5d 100644 --- a/public/ng/less/gogs/repository.less +++ b/public/ng/less/gogs/repository.less @@ -535,6 +535,11 @@ } } } + +.commit-message { + white-space: pre-wrap; +} + .diff-head-box { margin-top: 10px; .panel-body { diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl index 8e6b1b0796..61164c0de0 100644 --- a/templates/repo/diff.tmpl +++ b/templates/repo/diff.tmpl @@ -17,7 +17,7 @@
{{.i18n.Tr "repo.diff.browse_source"}} -

{{.Commit.Message}}

+

{{.Commit.Message}}