summaryrefslogtreecommitdiffstats
path: root/templates/repo/diff.tmpl
diff options
context:
space:
mode:
authorAdam Strzelecki <ono@java.pl>2015-12-07 00:18:12 +0100
committerAdam Strzelecki <ono@java.pl>2015-12-07 01:50:45 +0100
commite2ca53029e0c4c28c0796d3d55bfecf28c132d2e (patch)
treef3815745e988911a34edb7524b69048ee4f9c17c /templates/repo/diff.tmpl
parentb5f6206a659eaa76382774675f2e3f2664d0f501 (diff)
downloadgitea-e2ca53029e0c4c28c0796d3d55bfecf28c132d2e.tar.gz
gitea-e2ca53029e0c4c28c0796d3d55bfecf28c132d2e.zip
Render commit msg as header + verbatim description
Most commit in Git are expected to follow standard of single header line, followed by description paragraphs, separated by empty line from previous block. Previously Gogs were treating everything as single header. Now we are trying to render only first line as header, but following lines (description chunks) as a verbatim.
Diffstat (limited to 'templates/repo/diff.tmpl')
-rw-r--r--templates/repo/diff.tmpl14
1 files changed, 6 insertions, 8 deletions
diff --git a/templates/repo/diff.tmpl b/templates/repo/diff.tmpl
index ba1322e437..18de976ebc 100644
--- a/templates/repo/diff.tmpl
+++ b/templates/repo/diff.tmpl
@@ -5,14 +5,12 @@
{{if .IsDiffCompare }}
{{template "repo/commits_table" .}}
{{else}}
- <h4 class="ui top attached info header">
- <div class="ui right">
- <a class="ui blue tiny button" href="{{EscapePound .SourcePath}}">
- {{.i18n.Tr "repo.diff.browse_source"}}
- </a>
- </div>
- {{RenderCommitMessage .Commit.Message $.RepoLink $.Repository.ComposeMetas}}
- </h4>
+ <div class="ui top attached info clearing segment">
+ <a class="ui floated right blue tiny button" href="{{EscapePound .SourcePath}}">
+ {{.i18n.Tr "repo.diff.browse_source"}}
+ </a>
+ {{RenderCommitMessage true .Commit.Message $.RepoLink $.Repository.ComposeMetas}}
+ </div>
<div class="ui attached info segment">
{{if .Author}}
<img class="ui avatar image" src="{{.Author.AvatarLink}}" />