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
Boxiang Sun
gitlab-ce
Commits
fd76f497
Commit
fd76f497
authored
Feb 26, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix commit description expand
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
f1e1e5bf
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
20 deletions
+7
-20
app/assets/stylesheets/sections/commits.scss
app/assets/stylesheets/sections/commits.scss
+3
-16
app/views/projects/commits/_commit.html.haml
app/views/projects/commits/_commit.html.haml
+4
-4
No files found.
app/assets/stylesheets/sections/commits.scss
View file @
fd76f497
...
@@ -170,20 +170,13 @@ li.commit {
...
@@ -170,20 +170,13 @@ li.commit {
}
}
.text-expander
{
.text-expander
{
background
:
#
ddd
;
background
:
#
eee
;
color
:
#555
;
color
:
#555
;
padding
:
0
5px
;
padding
:
0
5px
;
line-height
:
6px
;
height
:
12px
;
font-size
:
12px
;
font-weight
:
bold
;
vertical-align
:
middle
;
display
:
inline-block
;
border-radius
:
1px
;
text-decoration
:
none
;
cursor
:
pointer
;
cursor
:
pointer
;
margin-left
:
4px
;
&
:hover
{
&
:hover
{
background-color
:
#
ccc
;
background-color
:
#
ddd
;
}
}
}
}
}
}
...
@@ -218,10 +211,4 @@ li.commit {
...
@@ -218,10 +211,4 @@ li.commit {
@extend
.cgray
;
@extend
.cgray
;
}
}
}
}
&
.open
{
.commit-row-description
{
display
:
block
;
}
}
}
}
app/views/projects/commits/_commit.html.haml
View file @
fd76f497
%li
.commit
%li
.commit
.js-toggle-container
.commit-row-title
{
"data-toggle"
=>
"dropdown"
}
.commit-row-title
=
link_to
commit
.
short_id
(
8
),
project_commit_path
(
project
,
commit
),
class:
"commit_short_id"
=
link_to
commit
.
short_id
(
8
),
project_commit_path
(
project
,
commit
),
class:
"commit_short_id"
%span
.str-truncated
%span
.str-truncated
=
link_to_gfm
commit
.
title
,
project_commit_path
(
project
,
commit
.
id
),
class:
"commit-row-message"
=
link_to_gfm
commit
.
title
,
project_commit_path
(
project
,
commit
.
id
),
class:
"commit-row-message"
-
if
commit
.
description?
-
if
commit
.
description?
%
span
.label-default.text-expander.js-details-target
...
%
a
.label-default.text-expander.js-toggle-button
...
=
link_to
"Browse Code »"
,
project_tree_path
(
project
,
commit
),
class:
"pull-right"
=
link_to
"Browse Code »"
,
project_tree_path
(
project
,
commit
),
class:
"pull-right"
.notes_count
.notes_count
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
=
notes
.
count
=
notes
.
count
-
if
commit
.
description?
-
if
commit
.
description?
.commit-row-description
.commit-row-description
.js-toggle-content
=
simple_format
(
commit
.
description
)
=
simple_format
(
commit
.
description
)
.commit-row-info
.commit-row-info
...
...
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