diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-10-28 03:05:41 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-10-28 03:05:41 +0800 |
commit | fb19d9f4e2c552ac81c9ff0e8aaff6f0e0686fc3 (patch) | |
tree | 73011c8124b926f48c0b79b580468a9d357e270f | |
parent | 141cb35dc5e8154f336e08ec7a38e150128577d6 (diff) | |
download | gitlab-ce-fb19d9f4e2c552ac81c9ff0e8aaff6f0e0686fc3.tar.gz |
Use multi-line conditions in view, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7034#note_17522557
-rw-r--r-- | app/views/projects/merge_requests/branch_from.html.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/merge_requests/branch_from.html.haml b/app/views/projects/merge_requests/branch_from.html.haml index f99f1946a5e..3837c4b388d 100644 --- a/app/views/projects/merge_requests/branch_from.html.haml +++ b/app/views/projects/merge_requests/branch_from.html.haml @@ -1 +1,2 @@ -= commit_to_html(@commit, @ref, @source_project) if @commit +- if @commit + = commit_to_html(@commit, @ref, @source_project) |