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
a89c6a71
Commit
a89c6a71
authored
May 07, 2018
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'improve-commit-message-body-rendering' into 'master'
Improved commit message body rendering See merge request gitlab-org/gitlab-ce!18725
parents
f50d8079
eb41bb66
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
21 additions
and
25 deletions
+21
-25
commits.scss
app/assets/stylesheets/pages/commits.scss
+8
-17
_commit_box.html.haml
app/views/projects/commit/_commit_box.html.haml
+1
-1
_commit.html.haml
app/views/projects/commits/_commit.html.haml
+4
-4
_new_compare.html.haml
.../projects/merge_requests/creations/_new_compare.html.haml
+2
-2
_info.html.haml
app/views/projects/pipelines/_info.html.haml
+1
-1
improve-commit-message-body-rendering.yml
...logs/unreleased/improve-commit-message-body-rendering.yml
+5
-0
No files found.
app/assets/stylesheets/pages/commits.scss
View file @
a89c6a71
...
...
@@ -2,7 +2,6 @@
background
:
none
;
border
:
0
;
padding
:
0
;
margin-top
:
10px
;
word-break
:
normal
;
white-space
:
pre-wrap
;
}
...
...
@@ -21,10 +20,6 @@
margin
:
0
;
color
:
$gl-text-color
;
}
.commit-description
{
margin-top
:
15px
;
}
}
.commit-hash-full
{
...
...
@@ -178,7 +173,7 @@
.commit-detail
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
start
;
flex-grow
:
1
;
}
...
...
@@ -268,20 +263,16 @@
.commit-row-description
{
font-size
:
14px
;
padding
:
10px
15px
;
margin
:
10px
0
;
background
:
$gray-light
;
padding
:
0
0
0
$gl-padding-8
;
border
:
0
;
display
:
none
;
white-space
:
pre-wrap
;
word-break
:
normal
;
pre
{
border
:
0
;
background
:
inherit
;
padding
:
0
;
margin
:
0
;
white-space
:
pre-wrap
;
}
color
:
$gl-text-color-secondary
;
background
:
none
;
font-family
:
inherit
;
border-left
:
2px
solid
$theme-gray-300
;
border-radius
:
unset
;
a
{
color
:
$gl-text-color
;
...
...
app/views/projects/commit/_commit_box.html.haml
View file @
a89c6a71
...
...
@@ -54,7 +54,7 @@
%h3
.commit-title
=
markdown_field
(
@commit
,
:title
)
-
if
@commit
.
description
.
present?
%pre
.commit-description
.commit-description
<
=
preserve
(
markdown_field
(
@commit
,
:description
))
.info-well
...
...
app/views/projects/commits/_commit.html.haml
View file @
a89c6a71
...
...
@@ -36,16 +36,16 @@
-
if
commit
.
description?
%button
.text-expander.hidden-xs.js-toggle-button
{
type:
"button"
}
...
-
if
commit
.
description?
%pre
.commit-row-description.js-toggle-content
=
preserve
(
markdown_field
(
commit
,
:description
))
.commiter
-
commit_author_link
=
commit_author_link
(
commit
,
avatar:
false
,
size:
24
)
-
commit_timeago
=
time_ago_with_tooltip
(
commit
.
authored_date
,
placement:
'bottom'
)
-
commit_text
=
_
(
'%{commit_author_link} authored %{commit_timeago}'
)
%
{
commit_author_link:
commit_author_link
,
commit_timeago:
commit_timeago
}
#{
commit_text
.
html_safe
}
-
if
commit
.
description?
%pre
.commit-row-description.js-toggle-content.prepend-top-8.append-bottom-8
=
preserve
(
markdown_field
(
commit
,
:description
))
.commit-actions.flex-row.hidden-xs
-
if
request
.
xhr?
=
render
partial:
'projects/commit/signature'
,
object:
commit
.
signature
...
...
app/views/projects/merge_requests/creations/_new_compare.html.haml
View file @
a89c6a71
...
...
@@ -4,7 +4,7 @@
=
form_for
[
@project
.
namespace
.
becomes
(
Namespace
),
@project
,
@merge_request
],
url:
project_new_merge_request_path
(
@project
),
method: :get
,
html:
{
class:
"merge-request-form form-inline js-requires-input"
}
do
|
f
|
.hide.alert.alert-danger.mr-compare-errors
.js-merge-request-new-compare.row
{
'data-source-branch-url'
:
project_new_merge_request_branch_from_path
(
@source_project
),
'data-target-branch-url'
:
project_new_merge_request_branch_to_path
(
@source_project
)
}
.col-
md
-6
.col-
lg
-6
.panel.panel-default.panel-new-merge-request
.panel-heading
Source branch
...
...
@@ -31,7 +31,7 @@
.text-center
=
icon
(
'spinner spin'
,
class:
'js-source-loading'
)
%ul
.list-unstyled.mr_source_commit
.col-
md
-6
.col-
lg
-6
.panel.panel-default.panel-new-merge-request
.panel-heading
Target branch
...
...
app/views/projects/pipelines/_info.html.haml
View file @
a89c6a71
...
...
@@ -5,7 +5,7 @@
%h3
.commit-title
=
markdown
(
@commit
.
title
,
pipeline: :single_line
)
-
if
@commit
.
description
.
present?
%pre
.commit-description
.commit-description
<
=
preserve
(
markdown
(
@commit
.
description
,
pipeline: :single_line
))
.info-well
...
...
changelogs/unreleased/improve-commit-message-body-rendering.yml
0 → 100644
View file @
a89c6a71
---
title
:
Improve commit message body rendering and fix responsive compare panels
merge_request
:
18725
author
:
Constance Okoghenun
type
:
changed
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