BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
844f8fd2
Unverified
Commit
844f8fd2
authored
Nov 01, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show only first line of commit message on dashboard
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
6055c615
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
1 deletion
+7
-1
events_helper.rb
app/helpers/events_helper.rb
+6
-0
_commit.html.haml
app/views/events/_commit.html.haml
+1
-1
No files found.
app/helpers/events_helper.rb
View file @
844f8fd2
...
...
@@ -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
app/views/events/_commit.html.haml
View file @
844f8fd2
...
...
@@ -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
e
scape_once
(
truncate
(
commit
[
:message
],
length:
70
))
rescue
"--broken encoding"
=
gfm
e
vent_commit_title
(
commit
[
:message
])
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment