Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
3951eb62
Commit
3951eb62
authored
Jul 17, 2017
by
Takuya Noguchi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use only CSS to truncate commit message in blame
parent
d9ed329b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
2 deletions
+16
-2
app/assets/stylesheets/framework/files.scss
app/assets/stylesheets/framework/files.scss
+10
-0
app/views/projects/blame/show.html.haml
app/views/projects/blame/show.html.haml
+2
-2
changelogs/unreleased/35163-url-in-commit-message-can-be-broken-in-blame.yml
...ed/35163-url-in-commit-message-can-be-broken-in-blame.yml
+4
-0
No files found.
app/assets/stylesheets/framework/files.scss
View file @
3951eb62
...
@@ -163,8 +163,18 @@
...
@@ -163,8 +163,18 @@
td
.blame-commit
{
td
.blame-commit
{
padding
:
5px
10px
;
padding
:
5px
10px
;
min-width
:
400px
;
min-width
:
400px
;
max-width
:
400px
;
background
:
$gray-light
;
background
:
$gray-light
;
border-left
:
3px
solid
;
border-left
:
3px
solid
;
.commit-row-title
{
display
:
flex
;
}
.item-title
{
flex
:
1
;
margin-right
:
0
.5em
;
}
}
}
@for
$i
from
0
through
5
{
@for
$i
from
0
through
5
{
...
...
app/views/projects/blame/show.html.haml
View file @
3951eb62
...
@@ -21,8 +21,8 @@
...
@@ -21,8 +21,8 @@
.commit
.commit
=
author_avatar
(
commit
,
size:
36
)
=
author_avatar
(
commit
,
size:
36
)
.commit-row-title
.commit-row-title
%s
trong
%s
pan
.item-title.str-truncated-100
=
link_to_gfm
truncate
(
commit
.
title
,
length:
35
),
project_commit_path
(
@project
,
commit
.
id
),
class:
"cdark"
=
link_to_gfm
commit
.
title
,
project_commit_path
(
@project
,
commit
.
id
),
class:
"cdark"
,
title:
commit
.
title
.pull-right
.pull-right
=
link_to
commit
.
short_id
,
project_commit_path
(
@project
,
commit
),
class:
"commit-sha"
=
link_to
commit
.
short_id
,
project_commit_path
(
@project
,
commit
),
class:
"commit-sha"
...
...
changelogs/unreleased/35163-url-in-commit-message-can-be-broken-in-blame.yml
0 → 100644
View file @
3951eb62
---
title
:
Use only CSS to truncate commit message in blame
merge_request
:
12900
author
:
Takuya Noguchi
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