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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
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
Hide 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 {
}
.text-expander
{
background
:
#
ddd
;
background
:
#
eee
;
color
:
#555
;
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
;
margin-left
:
4px
;
&
:hover
{
background-color
:
#
ccc
;
background-color
:
#
ddd
;
}
}
}
...
...
@@ -218,10 +211,4 @@ li.commit {
@extend
.cgray
;
}
}
&
.open
{
.commit-row-description
{
display
:
block
;
}
}
}
app/views/projects/commits/_commit.html.haml
View file @
fd76f497
%li
.commit
.commit-row-title
{
"data-toggle"
=>
"dropdown"
}
%li
.commit
.js-toggle-container
.commit-row-title
=
link_to
commit
.
short_id
(
8
),
project_commit_path
(
project
,
commit
),
class:
"commit_short_id"
%span
.str-truncated
=
link_to_gfm
commit
.
title
,
project_commit_path
(
project
,
commit
.
id
),
class:
"commit-row-message"
-
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"
.notes_count
...
...
@@ -16,7 +16,7 @@
=
notes
.
count
-
if
commit
.
description?
.commit-row-description
.commit-row-description
.js-toggle-content
=
simple_format
(
commit
.
description
)
.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