summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDaniel Gerhardt <code@dgerhardt.net>2015-07-26 11:01:29 +0200
committerDaniel Gerhardt <code@dgerhardt.net>2015-07-29 16:16:19 +0200
commit15f17f7916427e10300b443f787256a9f26b5820 (patch)
treeca887e4ee5a4423d5ce5ffaf19951c0271b8dda8 /app/views
parentf1db513a69503e652ab26cc4f985d9c6588c65cb (diff)
downloadgitlab-ci-15f17f7916427e10300b443f787256a9f26b5820.tar.gz
Truncate commit messages after subject line in table
Commit messages are now additionally truncated after the first line. Before, a commit message's body was attached behind the subject which made messages hardly readable in some cases.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/commits/_commit.html.haml3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/views/commits/_commit.html.haml b/app/views/commits/_commit.html.haml
index 7fae74e..a273f09 100644
--- a/app/views/commits/_commit.html.haml
+++ b/app/views/commits/_commit.html.haml
@@ -11,7 +11,7 @@
%strong #{commit.short_sha}
%td.build-message
- %span= truncate(commit.git_commit_message, length: 50)
+ %span= truncate_first_line(commit.git_commit_message)
%td.build-branch
- unless @ref
@@ -30,4 +30,3 @@
%td.coverage
- if commit.coverage
#{commit.coverage}%
-