Skip to content
Snippets Groups Projects
Unverified Commit 844f8fd2 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Show only first line of commit message on dashboard

parent 6055c615
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -127,4 +127,10 @@ module EventsHelper
text = truncate(text, length: 150)
sanitize(markdown(text), tags: %w(a img b pre p))
end
def event_commit_title(message)
escape_once(truncate(message.split("\n").first, length: 70))
rescue
"--broken encoding"
end
end
Loading
Loading
@@ -2,4 +2,4 @@
.commit-row-title
= link_to commit[:id][0..8], project_commit_path(project, commit[:id]), class: "commit_short_id", alt: ''
 
= gfm escape_once(truncate(commit[:message], length: 70)) rescue "--broken encoding"
= gfm event_commit_title(commit[:message])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment